public void paintBorder(Component c,Graphics g,int x,int y,int width,int height){
  int w=width;
  int h=height;
  g.translate(x,y);
  g.setColor(etchType == LOWERED ? getShadowColor(c) : getHighlightColor(c));
  g.drawRect(0,0,w - 2,h - 2);
  g.setColor(etchType == LOWERED ? getHighlightColor(c) : getShadowColor(c));
  g.drawLine(1,h - 3,1,1);
  g.drawLine(1,1,w - 3,1);
  g.drawLine(0,h - 1,w - 1,h - 1);
  g.drawLine(w - 1,h - 1,w - 1,0);
  g.translate(-x,-y);
}

public void paintBorder ( Component c , Graphics g , int x , int y , int width , int height ) { int w = width ; int h = height ; g . translate ( x , y ) ; g . setColor ( etchType == LOWERED ? getShadowColor ( c ) : getHighlightColor ( c ) ) ; g . drawRect ( 0 , 0 , w - 2 , h - 2 ) ; g . setColor ( etchType == LOWERED ? getHighlightColor ( c ) : getShadowColor ( c ) ) ; g . drawLine ( 1 , h - 3 , 1 , 1 ) ; g . drawLine ( 1 , 1 , w - 3 , 1 ) ; g . drawLine ( 0 , h - 1 , w - 1 , h - 1 ) ; g . drawLine ( w - 1 , h - 1 , w - 1 , 0 ) ; g . translate ( - x , - y ) ; }
paints the border for the specified component with the specified position and size .
