location = validLocation(location); if (beginDragDividerLocation == -1) beginDragDividerLocation = location;  if (splitPane.isContinuousLayout()) splitPane.setDividerLocation(location); else { Point p = nonContinuousLayoutDivider.getLocation(); if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) p.x = location; else p.y = location; nonContinuousLayoutDivider.setLocation(p); } setLastDragLocation(location); splitPane.repaint();
  protected void dragDividerTo(int location)  {  }