/Users/lyon/j4p/src/gui/touchtone/TouchToneFrame.java

1    package gui.touchtone; 
2     
3     
4    public class TouchToneFrame extends gui.ClosableJFrame { 
5        java.awt.Container c = getContentPane(); 
6        javax.swing.JPanel leftPad = new javax.swing.JPanel(); 
7        javax.swing.JPanel rightPad = new javax.swing.JPanel(); 
8        TouchToneModel ttc = new TouchToneModel(); 
9     
10       TouchToneFrame() { 
11           super("TouchToneFrame"); 
12           new javax.swing.JPanel(); 
13           new TouchToneButtonPad(leftPad, ttc); 
14           new TouchToneButtonPad(rightPad, ttc); 
15           c.add(leftPad); 
16           c.add(rightPad); 
17           c.setLayout(new java.awt.FlowLayout()); 
18           setSize(200, 200); 
19           setVisible(true); 
20       } 
21    
22       public static void main(String args[]) { 
23           new TouchToneFrame(); 
24       } 
25    
26   }