/Users/lyon/j4p/src/addBk/addressBook/AddressPanel.java
|
1 package addBk.addressBook;
2
3 //AddressPanel.javaAddressPanel.java
4
5
6 import java.awt.*;
7 import java.awt.event.TextEvent;
8 import java.awt.event.TextListener;
9
10 public class AddressPanel extends Panel
11 implements TextListener {
12 TextArea t0 =
13 new TextArea("1313 Mocking Bird Lane");
14 TextArea t1 =
15 new TextArea("Notes on John");
16
17 public void textValueChanged(
18 TextEvent e) {
19 //System.out.println(e);
20 AddressBookMediator display =
21 new AddressBookMediator();
22 display.setEditFlag();
23 }
24
25 AddressPanel() {
26 setLayout(
27 new GridLayout(0, 1));
28 add(t0);
29 add(t1);
30 t0.addTextListener(this);
31 t1.addTextListener(this);
32 }
33 }
34