public BasicSplitPaneDivider(BasicSplitPaneUI ui){
  oneTouchSize=DefaultLookup.getInt(ui.getSplitPane(),ui,"SplitPane.oneTouchButtonSize",ONE_TOUCH_SIZE);
  oneTouchOffset=DefaultLookup.getInt(ui.getSplitPane(),ui,"SplitPane.oneTouchButtonOffset",ONE_TOUCH_OFFSET);
  centerOneTouchButtons=DefaultLookup.getBoolean(ui.getSplitPane(),ui,"SplitPane.centerOneTouchButtons",true);
  setLayout(new DividerLayout());
  setBasicSplitPaneUI(ui);
  orientation=splitPane.getOrientation();
  setCursor((orientation == JSplitPane.HORIZONTAL_SPLIT) ? Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR) : Cursor.getPredefinedCursor(Cursor.S_RESIZE_CURSOR));
  setBackground(UIManager.getColor("SplitPane.background"));
}

public BasicSplitPaneDivider ( BasicSplitPaneUI ui ) { oneTouchSize = DefaultLookup . getInt ( ui . getSplitPane ( ) , ui , "SplitPane.oneTouchButtonSize" , ONE_TOUCH_SIZE ) ; oneTouchOffset = DefaultLookup . getInt ( ui . getSplitPane ( ) , ui , "SplitPane.oneTouchButtonOffset" , ONE_TOUCH_OFFSET ) ; centerOneTouchButtons = DefaultLookup . getBoolean ( ui . getSplitPane ( ) , ui , "SplitPane.centerOneTouchButtons" , true ) ; setLayout ( new DividerLayout ( ) ) ; setBasicSplitPaneUI ( ui ) ; orientation = splitPane . getOrientation ( ) ; setCursor ( ( orientation == JSplitPane . HORIZONTAL_SPLIT ) ? Cursor . getPredefinedCursor ( Cursor . E_RESIZE_CURSOR ) : Cursor . getPredefinedCursor ( Cursor . S_RESIZE_CURSOR ) ) ; setBackground ( UIManager . getColor ( "SplitPane.background" ) ) ; }
creates an instance of basicsplitpanedivider . registers this instance for mouse events and mouse dragged events .
