public RgbFilterEditor(){
  panel.setLayout(layout);
  panel.setBorder(new CompoundBorder(new TitledBorder("RGB Filter Editor"),new EmptyBorder(BORDER_SPACING,BORDER_SPACING,BORDER_SPACING,BORDER_SPACING)));
  JLabel redLabel=new JLabel("Red");
  JLabel greenLabel=new JLabel("Green");
  JLabel blueLabel=new JLabel("Blue");
  JLabel lowerLabel=new JLabel("Output Lower Bound");
  JLabel upperLabel=new JLabel("Output Upper Bound");
  add(redLabel,red);
  add(greenLabel,green);
  add(blueLabel,blue);
  add(lowerLabel,lower);
  add(upperLabel,upper);
}

public RgbFilterEditor ( ) { panel . setLayout ( layout ) ; panel . setBorder ( new CompoundBorder ( new TitledBorder ( "RGB Filter Editor" ) , new EmptyBorder ( BORDER_SPACING , BORDER_SPACING , BORDER_SPACING , BORDER_SPACING ) ) ) ; JLabel redLabel = new JLabel ( "Red" ) ; JLabel greenLabel = new JLabel ( "Green" ) ; JLabel blueLabel = new JLabel ( "Blue" ) ; JLabel lowerLabel = new JLabel ( "Output Lower Bound" ) ; JLabel upperLabel = new JLabel ( "Output Upper Bound" ) ; add ( redLabel , red ) ; add ( greenLabel , green ) ; add ( blueLabel , blue ) ; add ( lowerLabel , lower ) ; add ( upperLabel , upper ) ; }
creates a new instance .
