splitPane.addMouseListener(mouseHandler); splitPane.addMouseMotionListener(mouseHandler);
  public void setBasicSplitPaneUI(BasicSplitPaneUI newUI)  {    /* Remove the connection to the existing JSplitPane. */    if (splitPane != null)    {      splitPane.removePropertyChangeListener(this);      splitPane.removeMouseListener(mouseHandler);      splitPane.removeMouseMotionListener(mouseHandler);	removeMouseListener(mouseHandler);	removeMouseMotionListener(mouseHandler);      splitPane = null;	hiddenDivider = null;    }        /* Establish the connection to the new JSplitPane. */    splitPaneUI = newUI;    if (splitPaneUI != null)      splitPane = newUI.getSplitPane();    if (splitPane != null)    {      splitPane.addPropertyChangeListener(this);      splitPane.addMouseListener(mouseHandler);      splitPane.addMouseMotionListener(mouseHandler);	addMouseListener(mouseHandler);	addMouseMotionListener(mouseHandler);	hiddenDivider = splitPaneUI.getNonContinuousLayoutDivider();      orientation = splitPane.getOrientation();	oneTouchExpandableChanged();    }  }