private void paintUpperThumb(Graphics g){
  Rectangle knobBounds=upperThumbRect;
  int w=knobBounds.width;
  int h=knobBounds.height;
  Graphics2D g2d=(Graphics2D)g.create();
  Shape thumbShape=createThumbShape(w - 1,h - 1,true);
  g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
  g2d.translate(knobBounds.x,knobBounds.y);
  g2d.setColor(Color.LIGHT_GRAY);
  g2d.fill(thumbShape);
  g2d.setColor(Color.GRAY);
  g2d.draw(thumbShape);
  g2d.dispose();
}

private void paintUpperThumb ( Graphics g ) { Rectangle knobBounds = upperThumbRect ; int w = knobBounds . width ; int h = knobBounds . height ; Graphics2D g2d = ( Graphics2D ) g . create ( ) ; Shape thumbShape = createThumbShape ( w - 1 , h - 1 , true ) ; g2d . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_ON ) ; g2d . translate ( knobBounds . x , knobBounds . y ) ; g2d . setColor ( Color . LIGHT_GRAY ) ; g2d . fill ( thumbShape ) ; g2d . setColor ( Color . GRAY ) ; g2d . draw ( thumbShape ) ; g2d . dispose ( ) ; }
paints the thumb for the upper value using the specified graphics object .
