/** * Sets the foreground color in all components of this panel. * @param color the foreground color. */ public void setForeground(Color color) { super.setForeground(color); if (_mosaic!=null) _mosaic.setForeground(color); if (_colorBar!=null) _colorBar.setForeground(color); if (_title!=null) _title.setForeground(color); }
_colorBar = new ColorBar(label); _colorBar.setFont(getFont()); _colorBar.setForeground(getForeground()); _colorBar.setBackground(getBackground()); if (_colorBarFormat!=null)