this(newOrientation, false, null, null);
if (newOrientation != HORIZONTAL_SPLIT && newOrientation != VERTICAL_SPLIT) throw new IllegalArgumentException("orientation is invalid."); orientation = newOrientation; continuousLayout = newContinuousLayout; setLeftComponent(newLeftComponent); setRightComponent(newRightComponent);  updateUI();
  public JSplitPane(int newOrientation)  {    this(newOrientation, false, null, null);  }