@Override protected void paintTrack(Graphics g,JComponent bar,Rectangle trackBounds){
  g.setColor(style.getHighLightColor());
  g.fillRect(trackBounds.x,trackBounds.y,trackBounds.width,trackBounds.height);
  g.setColor(style.getShadowColor());
  int width=trackBounds.width;
  int height=trackBounds.height;
  if (scrollbar.getOrientation() == JScrollBar.HORIZONTAL) {
    height--;
  }
 else {
    width--;
  }
  g.drawRect(trackBounds.x,trackBounds.y,width,height);
}

@ Override protected void paintTrack ( Graphics g , JComponent bar , Rectangle trackBounds ) { g . setColor ( style . getHighLightColor ( ) ) ; g . fillRect ( trackBounds . x , trackBounds . y , trackBounds . width , trackBounds . height ) ; g . setColor ( style . getShadowColor ( ) ) ; int width = trackBounds . width ; int height = trackBounds . height ; if ( scrollbar . getOrientation ( ) == JScrollBar . HORIZONTAL ) { height -- ; } else { width -- ; } g . drawRect ( trackBounds . x , trackBounds . y , width , height ) ; }
paints the background flat area of the scroll bar .
