Source of BankAccountTest.java


  1: //BankAccountTest.java
  2: //Adapted from an example by Tony Sintes.
  3: //This Driver hooks the model and view together 
  4: //and then places the view into a frame for display.

  6: import javax.swing.JFrame;

  8: public class BankAccountTest
  9: {
 10:     public static void main(String [] args)
 11:     {
 12:         BankAccountModel model = new BankAccountModel(10000.00);
 13:         BankAccountView  view  = new BankAccountView(model);

 15:         JFrame frame = new JFrame();
 16:         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
 17:         frame.getContentPane().add(view);
 18:         frame.pack();
 19:         frame.setVisible(true);
 20:     }
 21: }