import javax.swing.JFrame; public class CalcApplication { //... Create model, view, and controller. They are // created once here and passed to the parts that // need them so there is only one copy of each. public static void main(String[] args) { CalcView view = new CalcView(); CalcModel model = new CalcModel(); CalcController controller = new CalcController(model, view); JFrame frame = new JFrame(); frame.setContentPane(view); frame.pack(); frame.setTitle("Simple Calc - MVC"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } }