/Users/lyon/j4p/src/gui/touchtone/TouchToneReadout.java
|
1 package gui.touchtone;
2
3
4 public class TouchToneReadout extends gui.ClosableJFrame {
5 private java.awt.Container c = getContentPane();
6 private javax.swing.JPanel keyPadPanel = new javax.swing.JPanel();
7
8 private TouchToneModel ttc = new TouchToneModel();
9 private TouchToneButtonPad tt = new TouchToneButtonPad(keyPadPanel, ttc);
10
11 public static void main(String args[]) {
12 new TouchToneReadout();
13 }
14
15 private gui.run.RunTextFieldOld readOut = new gui.run.RunTextFieldOld() {
16 public void run() {
17 ttc.setStateString(getText());
18 }
19 };
20
21 public TouchToneReadout() {
22 super("TouchToneReadout");
23 ttc.setTextField(readOut);
24 setSize(200, 200);
25 c.setLayout(new java.awt.BorderLayout());
26 c.add(readOut, java.awt.BorderLayout.NORTH);
27 c.add(keyPadPanel, java.awt.BorderLayout.CENTER);
28 setVisible(true);
29 }
30 }