protected boolean drawRightBorder(Component c,Graphics g,int x,int y,int width,int height){
  if (super.drawRightBorder(c,g,x,y,width,height) && frame.isResizable()) {
    int startX=width - getBorderInsets(c).right;
    g.setColor(getFrameHighlight());
    int topY=y + CORNER_SIZE;
    g.drawLine(startX,topY,width - 2,topY);
    int bottomY=height - CORNER_SIZE;
    g.drawLine(startX + 1,bottomY,startX + 3,bottomY);
    g.setColor(getFrameShadow());
    g.drawLine(startX + 1,topY - 1,width - 2,topY - 1);
    g.drawLine(startX + 1,bottomY - 1,startX + 3,bottomY - 1);
    return true;
  }
  return false;
}

protected boolean drawRightBorder ( Component c , Graphics g , int x , int y , int width , int height ) { if ( super . drawRightBorder ( c , g , x , y , width , height ) && frame . isResizable ( ) ) { int startX = width - getBorderInsets ( c ) . right ; g . setColor ( getFrameHighlight ( ) ) ; int topY = y + CORNER_SIZE ; g . drawLine ( startX , topY , width - 2 , topY ) ; int bottomY = height - CORNER_SIZE ; g . drawLine ( startX + 1 , bottomY , startX + 3 , bottomY ) ; g . setColor ( getFrameShadow ( ) ) ; g . drawLine ( startX + 1 , topY - 1 , width - 2 , topY - 1 ) ; g . drawLine ( startX + 1 , bottomY - 1 , startX + 3 , bottomY - 1 ) ; return true ; } return false ; }
draws the internalframeborder ' s right border .
