private void paintBorder(Graphics g){
  int left=0;
  int right=0;
  int top=0;
  int bottom=0;
  Border border=style.getBorder();
  if (orientation == JSplitPane.HORIZONTAL_SPLIT) {
    top=border.getBorderInsets(this).top;
    bottom=border.getBorderInsets(this).bottom;
  }
 else {
    left=border.getBorderInsets(this).left;
    right=border.getBorderInsets(this).right;
  }
  border.paintBorder(this,g,0 - left,0 - top,getWidth() + right + left,getHeight() + top + bottom);
}

private void paintBorder ( Graphics g ) { int left = 0 ; int right = 0 ; int top = 0 ; int bottom = 0 ; Border border = style . getBorder ( ) ; if ( orientation == JSplitPane . HORIZONTAL_SPLIT ) { top = border . getBorderInsets ( this ) . top ; bottom = border . getBorderInsets ( this ) . bottom ; } else { left = border . getBorderInsets ( this ) . left ; right = border . getBorderInsets ( this ) . right ; } border . paintBorder ( this , g , 0 - left , 0 - top , getWidth ( ) + right + left , getHeight ( ) + top + bottom ) ; }
paint the handle using the normal border . ( no highlighting )
