/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package MVC; import javax.swing.JPanel; /** * * @author bvz */ public class ChoiceMVC extends javax.swing.JFrame { ChoiceModel model = new ChoiceModel(); /** * Creates new form ChoiceMVC */ public ChoiceMVC() { initComponents(); } private void initComponents() { JPanel buttonView = new ButtonView(model); javax.swing.JSpinner spinnerView = new SpinnerView(model); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); getContentPane().setLayout(new java.awt.GridLayout(0, 1)); getContentPane().add(buttonView); getContentPane().add(spinnerView); pack(); } /** * @param args the command line arguments */ public static void main(String args[]) { /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new ChoiceMVC().setVisible(true); } }); } }