g.setColor(borderColor);
if(MetalLookAndFeel.getCurrentTheme() instanceof OceanTheme) g.setColor(UIManager.getColor("MenuBar.borderColor")); else g.setColor(MetalLookAndFeel.getControlShadow());
    public void paintBorder(Component c, Graphics g, int x, int y, int w,        int h)    {      g.setColor(borderColor);      g.drawLine(x, y + h - 1, x + w, y + h - 1);    }