Class LateAdjustJSplitPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LateAdjustJSplitPane extends JSplitPane
JSplitPane but fixes an annoyance where setting the divider location proportion (e.g. 0.5 to have it be an even split) doesn't work if the component is not visible yet because the dimensions are still 0,0.
See Also:
  • Constructor Details

    • LateAdjustJSplitPane

      public LateAdjustJSplitPane()
    • LateAdjustJSplitPane

      public LateAdjustJSplitPane(int newOrientation)
    • LateAdjustJSplitPane

      public LateAdjustJSplitPane(int newOrientation, boolean newContinuousLayout)
    • LateAdjustJSplitPane

      public LateAdjustJSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent)
    • LateAdjustJSplitPane

      public LateAdjustJSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)
  • Method Details

    • setDividerLocation

      public void setDividerLocation(double proportionalLocation)
      Overrides:
      setDividerLocation in class JSplitPane
    • setBounds

      public void setBounds(int x, int y, int width, int height)
      Overrides:
      setBounds in class Component