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

1    package gui.htmlconverter; 
2     
3    import java.awt.*; 
4     
5    public class ColorControlPanel extends Panel { 
6     
7        ColorControlField ccf0, ccf1, ccf2, ccf3; 
8        J2Html parent; 
9     
10       ColorControlPanel(J2Html mf) { 
11           parent = mf; 
12           ccf0 = new ColorControlField(this, "Main Text:"); 
13           ccf0.c0.select("Black"); 
14           ccf0.c1.setEnabled(false); 
15           ccf1 = new ColorControlField(this, "Comments:"); 
16           ccf1.c0.select("Black"); 
17           ccf1.c1.select("Italic"); 
18           ccf2 = new ColorControlField(this, "Strings:"); 
19           ccf2.c0.select("Black"); 
20           ccf2.c1.select("Plain"); 
21           ccf3 = new ColorControlField(this, "Keywords:"); 
22           ccf3.c0.select("Black"); 
23           ccf3.c1.select("Bold"); 
24    
25           setLayout(new GridLayout(4, 1)); 
26           add(ccf0); 
27           add(ccf1); 
28           add(ccf2); 
29           add(ccf3); 
30       } 
31    
32   } 
33