leftButton.addMouseListener(mouseHandler); rightButton.addMouseListener(mouseHandler);   currentDividerLocation = 1; } else {
  protected void oneTouchExpandableChanged()  {    if (splitPane.isOneTouchExpandable())      {	leftButton = createLeftOneTouchButton();	rightButton = createRightOneTouchButton();	add(leftButton);	add(rightButton);	leftButton.addMouseListener(mouseHandler);	rightButton.addMouseListener(mouseHandler);	// Set it to 1.	currentDividerLocation = 1;  }    else      {	if (leftButton != null && rightButton != null)	  {	    leftButton.removeMouseListener(mouseHandler);	    rightButton.removeMouseListener(mouseHandler);	    remove(leftButton);	    remove(rightButton);	    leftButton = null;	    rightButton = null;	  }      }    layout();    repaint();  }