g.setColor(thumbColor); g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width, thumbBounds.height);   int hAdj = 1; int wAdj = 1;
  protected void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)  {    // a disabled scrollbar has no thumb in the metal look and feel    if (!c.isEnabled())      return;        // first we fill the background    g.setColor(thumbColor);    g.fillRect(thumbBounds.x, thumbBounds.y, thumbBounds.width,               thumbBounds.height);    // draw the outer dark line    int hAdj = 1;    int wAdj = 1;    if (scrollbar.getOrientation() == HORIZONTAL)      hAdj++;    else      wAdj++;        g.setColor(new Color(102, 102, 153));    g.drawRect(thumbBounds.x, thumbBounds.y, thumbBounds.width - wAdj,               thumbBounds.height - hAdj);    // draw the inner light line    g.setColor(thumbHighlightColor);    g.drawLine(thumbBounds.x + 1, thumbBounds.y + 1,               thumbBounds.x + thumbBounds.width - 2,               thumbBounds.y + 1);    g.drawLine(thumbBounds.x + 1, thumbBounds.y + 1,               thumbBounds.x + 1,               thumbBounds.y + thumbBounds.height - 2);    // draw the shadow line    UIDefaults def = UIManager.getLookAndFeelDefaults();    g.setColor(def.getColor("ScrollBar.shadow"));    g.drawLine(thumbBounds.x + 1, thumbBounds.y + thumbBounds.height,               thumbBounds.x + thumbBounds.width,               thumbBounds.y + thumbBounds.height);    // draw the pattern    MetalUtils.fillMetalPattern(c, g, thumbBounds.x + 3, thumbBounds.y + 3,                                thumbBounds.width - 6, thumbBounds.height - 6,                                thumbHighlightColor, new Color(102, 102, 153));  }