//***************************************************************************** // ColorPanel.java // // Summer 1999, 2000 // Geetika Tewari, Victoria Manfredi and Christie Rice // // //***************************************************************************** import java.awt.*; import java.awt.event.*; import java.lang.*; import java.io.*; import java.util.*; public class ColorPanel extends Panel { ColorFrame cf; // Parent ColorButtonPanel cbp; // Components on ColorPanel ColorRGBPanel rgbp; // int width, height; // Dimensions of panel //******************************** // // constructor // //******************************** public ColorPanel(ColorFrame cff) { super(); cf = cff; cbp = new ColorButtonPanel(cf); rgbp = new ColorRGBPanel(cf, cbp); height = cf.getSize().height; width = cf.getSize().width/2; setSize(width,height); setBackground(Color.white); setLayout(new GridLayout(2,1,5,5)); // rows, columns, horizontal // spacing, vertical spacing add(cbp); add(rgbp); }// end constructor }//end class ColorPanel