private void fillInternalShadow(Graphics2D g,Shape s,boolean paintRightShadow){
  Rectangle bounds=s.getBounds();
  int x=bounds.x;
  int y=bounds.y;
  int w=bounds.width;
  int h=bounds.height;
  s=shapeGenerator.createRectangle(x,y,w,2);
  g.setPaint(getTopShadowGradient(s));
  g.fill(s);
  s=shapeGenerator.createRectangle(x,y,1,h);
  g.setPaint(getLeftShadowGradient(s));
  g.fill(s);
  if (paintRightShadow) {
    s=shapeGenerator.createRectangle(x + w - 1,y,1,h);
    g.setPaint(getRightShadowGradient(s));
    g.fill(s);
  }
}

private void fillInternalShadow ( Graphics2D g , Shape s , boolean paintRightShadow ) { Rectangle bounds = s . getBounds ( ) ; int x = bounds . x ; int y = bounds . y ; int w = bounds . width ; int h = bounds . height ; s = shapeGenerator . createRectangle ( x , y , w , 2 ) ; g . setPaint ( getTopShadowGradient ( s ) ) ; g . fill ( s ) ; s = shapeGenerator . createRectangle ( x , y , 1 , h ) ; g . setPaint ( getLeftShadowGradient ( s ) ) ; g . fill ( s ) ; if ( paintRightShadow ) { s = shapeGenerator . createRectangle ( x + w - 1 , y , 1 , h ) ; g . setPaint ( getRightShadowGradient ( s ) ) ; g . fill ( s ) ; } }
fill a rectangular shadow .
