setLastDragLocation(getDividerLocation(splitPane)); splitPane.setLastDividerLocation(getDividerLocation(splitPane)); int[] tmpSizes = layoutManager.getSizes(); tmpSizes[0] = location - layoutManager.getInitialLocation(splitPane.getInsets()); tmpSizes[1] = layoutManager.getAvailableSize(splitPane.getSize(), splitPane.getInsets()) - tmpSizes[0] - tmpSizes[1]; Point p = divider.getLocation();      layoutManager.setSizes(tmpSizes); layoutManager.layoutContainer(splitPane);  splitPane.repaint();
  public void setDividerLocation(JSplitPane jc, int location)  {  }