/Users/lyon/j4p/src/gui/htmlconverter/ColorControlField.java

1    package gui.htmlconverter; 
2     
3    import java.awt.*; 
4     
5    public class ColorControlField extends Panel { 
6     
7        Choice c0, c1; 
8        ColorControlPanel parent; 
9     
10       ColorControlField(ColorControlPanel ccp, String s) { 
11           parent = ccp; 
12           c0 = new Choice(); 
13           c0.addItem("Red"); 
14           c0.addItem("Green"); 
15           c0.addItem("Blue"); 
16           c0.addItem("Yellow"); 
17           c0.addItem("Magenta"); 
18           c0.addItem("Cyan"); 
19           c0.addItem("Black"); 
20           c0.addItem("White"); 
21    
22           c1 = new Choice(); 
23           c1.addItem("Plain"); 
24           c1.addItem("Bold"); 
25           c1.addItem("Italic"); 
26    
27           setLayout(new GridLayout(1, 3, 10, 10)); 
28           add(new Label(s, Label.LEFT)); 
29           add(c0); 
30           add(c1); 
31       } 
32    
33   } 
34