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

1    package addBk.address; 
2     
3    import java.awt.*; 
4     
5    public class CheckBoxPanel 
6            extends Panel { 
7        Checkbox name_cb = 
8                new Checkbox("In Name", true); 
9     
10       Checkbox address_cb = 
11               new Checkbox("In Address", true); 
12    
13       Checkbox info_cb = 
14               new Checkbox("In Info.", true); 
15    
16       Checkbox phone_cb = 
17               new Checkbox("In Phone"); 
18    
19       Button b = new Button("Find"); 
20    
21       CheckBoxPanel() { 
22           setLayout( 
23                   new GridLayout(0, 1)); 
24           add(name_cb); 
25           add(address_cb); 
26           add(info_cb); 
27           add(phone_cb); 
28           add(b); 
29       } 
30    
31   }