{ g.setColor(borderColorDark); g.drawLine(x, y, x + w, y); g.setColor(borderColorLight); g.drawLine(x, y + h - 1, x + w, y + h - 1); }
{ g.setColor(dark); g.drawLine(x, y, x + w, y); g.setColor(light); g.drawLine(x, y + h - 1, x + w, y + h - 1); } else {  g.setColor(light); g.drawLine(x, y, x, y + h); }
    public void paintBorder(Component c, Graphics g, int x, int y, int w,        int h)    {      if (c instanceof JMenu) {        JMenu menu = (JMenu) c;        if (menu.isSelected())        {          g.setColor(borderColorDark);          g.drawLine(x, y, x, y + h);          g.drawLine(x, y, x + w, y);          g.drawLine(x + w - 2, y + 1, x + w - 2, y + h);          g.setColor(borderColorLight);          g.drawLine(x + w - 1, y + 1, x + w - 1, y + h);        }      }      else if (c instanceof JMenuItem)      {        JMenuItem item = (JMenuItem) c;        if (item.isArmed())         {          g.setColor(borderColorDark);          g.drawLine(x, y, x + w, y);          g.setColor(borderColorLight);          g.drawLine(x, y + h - 1, x + w, y + h - 1);        }                }    }