UIDefaults def = UIManager.getLookAndFeelDefaults(); g.setColor(def.getColor("ScrollBar.shadow"));
g.setColor(UIManager.getColor("ScrollBar.shadow"));
  private void paintThumbHorizontal(Graphics g, JComponent c,           Rectangle thumbBounds)   {    int x = thumbBounds.x;    int y = thumbBounds.y;    int w = thumbBounds.width;    int h = thumbBounds.height;        // first we fill the background    g.setColor(thumbColor);    if (isFreeStanding)      g.fillRect(x, y, w, h - 1);    else      g.fillRect(x, y, w, h);        // then draw the dark box    g.setColor(thumbLightShadowColor);    if (isFreeStanding)      g.drawRect(x, y, w - 1, h - 2);    else      {        g.drawLine(x, y, x + w - 1, y);        g.drawLine(x, y, x, y + h - 1);        g.drawLine(x + w - 1, y, x + w - 1, y + h -1);      }    // then the highlight    g.setColor(thumbHighlightColor);    if (isFreeStanding)      {        g.drawLine(x + 1, y + 1, x + w - 3, y + 1);        g.drawLine(x + 1, y + 1, x + 1, y + h - 3);      }    else      {        g.drawLine(x + 1, y + 1, x + w - 3, y + 1);        g.drawLine(x + 1, y + 1, x + 1, y + h - 1);      }    // draw the shadow line    UIDefaults def = UIManager.getLookAndFeelDefaults();    g.setColor(def.getColor("ScrollBar.shadow"));    g.drawLine(x + w, y + 1, x + w, y + h - 1);  }