void draw3DRect(Graphics g,int x,int y,int width,int height,boolean raised){
  if ((width <= 0) || (height <= 0)) {
    return;
  }
  Color c=g.getColor();
  g.setColor(raised ? getLightShadowColor() : getDarkShadowColor());
  g.drawLine(x,y,x,y + height - 1);
  g.drawLine(x + 1,y,x + width - 1,y);
  g.setColor(raised ? getDarkShadowColor() : getLightShadowColor());
  g.drawLine(x + 1,y + height - 1,x + width - 1,y + height - 1);
  g.drawLine(x + width - 1,y + 1,x + width - 1,y + height - 1);
  g.setColor(c);
}

void draw3DRect ( Graphics g , int x , int y , int width , int height , boolean raised ) { if ( ( width <= 0 ) || ( height <= 0 ) ) { return ; } Color c = g . getColor ( ) ; g . setColor ( raised ? getLightShadowColor ( ) : getDarkShadowColor ( ) ) ; g . drawLine ( x , y , x , y + height - 1 ) ; g . drawLine ( x + 1 , y , x + width - 1 , y ) ; g . setColor ( raised ? getDarkShadowColor ( ) : getLightShadowColor ( ) ) ; g . drawLine ( x + 1 , y + height - 1 , x + width - 1 , y + height - 1 ) ; g . drawLine ( x + width - 1 , y + 1 , x + width - 1 , y + height - 1 ) ; g . setColor ( c ) ; }
draws raised or sunken rectangle on specified graphics
