if (ui != null && location != getDividerLocation()) { int oldLocation = getDividerLocation(); ((SplitPaneUI) ui).setDividerLocation(this, location); firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location); }
if (proportionalLocation > 1 || proportionalLocation < 0) throw new IllegalArgumentException("proportion has to be between 0 and 1.");  int max = (orientation == HORIZONTAL_SPLIT) ? getWidth() : getHeight(); setDividerLocation((int) (proportionalLocation * max));
  public void setDividerLocation(int location)  {    if (ui != null && location != getDividerLocation())      {	int oldLocation = getDividerLocation();	((SplitPaneUI) ui).setDividerLocation(this, location);	firePropertyChange(DIVIDER_LOCATION_PROPERTY, oldLocation, location);      }  }