protected void paint3DRectLighting(Graphics2D g2,int x,int y,int width,int height){
  g2.setColor(Color.white);
  g2.drawLine(x + 1,y + 1,x + 1,y + height - 1);
  g2.drawLine(x + 1,y + 1,x + width - 1,y + 1);
  g2.setColor(Color.gray);
  g2.drawLine(x + 1,y + height - 1,x + width - 1,y + height - 1);
  g2.drawLine(x + width - 1,y + 1,x + width - 1,y + height - 1);
  g2.setColor(Color.darkGray);
  g2.drawLine(x,y + height,x + width,y + height);
  g2.drawLine(x + width,y,x + width,y + height);
}

protected void paint3DRectLighting ( Graphics2D g2 , int x , int y , int width , int height ) { g2 . setColor ( Color . white ) ; g2 . drawLine ( x + 1 , y + 1 , x + 1 , y + height - 1 ) ; g2 . drawLine ( x + 1 , y + 1 , x + width - 1 , y + 1 ) ; g2 . setColor ( Color . gray ) ; g2 . drawLine ( x + 1 , y + height - 1 , x + width - 1 , y + height - 1 ) ; g2 . drawLine ( x + width - 1 , y + 1 , x + width - 1 , y + height - 1 ) ; g2 . setColor ( Color . darkGray ) ; g2 . drawLine ( x , y + height , x + width , y + height ) ; g2 . drawLine ( x + width , y , x + width , y + height ) ; }
adds windows2k type 3d lighting effects
