super.paintComponent(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow());
Color savedColor = g.getColor(); if (isPalette) paintPalette(g);
  public void paintComponent(Graphics g)  {    // probably need to check the isPalette flag here, if true pass over to    // paintPalette(Graphics)    super.paintComponent(g);    Dimension d = getSize();    if (frame.isSelected())      g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow());    else      g.setColor(MetalLookAndFeel.getControlDarkShadow());    g.drawLine(0, d.height - 1, d.width - 1, d.height - 1);  }