MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(),
MetalUtils.paintGradient(g, 0, 0, c.getWidth(), height - 2,
  public void update(Graphics g, JComponent c)  {    if (c.isOpaque() && UIManager.get("MenuBar.gradient") != null)      {        MetalUtils.paintGradient(g, 0, 0, c.getWidth(), c.getHeight(),                                 SwingConstants.VERTICAL, "MenuBar.gradient");        paint(g, c);      }    else      super.update(g, c);  }