/Users/lyon/j4p/src/addBk/address/TextButtonPanel.java

1    package addBk.address; 
2     
3    import javax.swing.*; 
4    import java.awt.*; 
5     
6    public class TextButtonPanel 
7            extends JPanel implements 
8            AddressSettable { 
9     
10       DialPanel dp = 
11               new DialPanel(); 
12       TextFieldPanel tfp = 
13               new TextFieldPanel(); 
14       NavigationPanel np = 
15               new NavigationPanel(); 
16    
17       TextButtonPanel() { 
18           setLayout( 
19                   new BorderLayout()); 
20           add(np, "East"); 
21           add(tfp, "Center"); 
22           add(dp, "West"); 
23       } 
24    
25       public void setAddress(AddressRecord a) { 
26           tfp.setAddress(a); 
27       } 
28    
29   }