Example usage for Java javax.swing JSplitPane fields, constructors, methods, implement or subclass
The text is from its open source code.
int | VERTICAL_SPLIT Vertical split indicates the Component s are split along the y axis. |
int | HORIZONTAL_SPLIT Horizontal split indicates the Component s are split along the x axis. |
String | LEFT Used to add a Component to the left of the other Component . |
String | RIGHT Used to add a Component to the right of the other Component . |
String | TOP Used to add a Component above the other Component . |
String | BOTTOM Used to add a Component below the other Component . |
String | ONE_TOUCH_EXPANDABLE_PROPERTY Bound property for oneTouchExpandable. |
String | LAST_DIVIDER_LOCATION_PROPERTY Bound property for lastLocation. |
String | DIVIDER_LOCATION_PROPERTY Bound property for the dividerLocation. |
JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent) Creates a new JSplitPane with the specified orientation and the specified components. | |
JSplitPane() Creates a new JSplitPane configured to arrange the child components side-by-side horizontally, using two buttons for the components. | |
JSplitPane(int newOrientation) Creates a new JSplitPane configured with the specified orientation. | |
JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent) Creates a new JSplitPane with the specified orientation and redrawing style, and with the specified components. | |
JSplitPane(int newOrientation, boolean newContinuousLayout) Creates a new JSplitPane with the specified orientation and redrawing style. |
Component | add(Component comp) Appends the specified component to the end of this container. |
Component | add(String name, Component comp) Adds the specified component to this container. |
void | addComponentListener(ComponentListener l) Adds the specified component listener to receive component events from this component. |
void | addHierarchyListener(HierarchyListener l) Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes. |
void | addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list. |
Component | getBottomComponent() Returns the component below, or to the right of the divider. |
Rectangle | getBounds() Gets the bounds of this component in the form of a Rectangle object. |
int | getDividerLocation() Returns the last value passed to setDividerLocation . |
int | getDividerSize() Returns the size of the divider. |
int | getHeight() Returns the current height of this component. |
Insets | getInsets() If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets . |
Component | getLeftComponent() Returns the component to the left (or above) the divider. |
int | getMaximumDividerLocation() Returns the maximum location of the divider from the look and feel implementation. |
int | getOrientation() Returns the orientation. |
double | getResizeWeight() Returns the number that determines how extra space is distributed. |
Component | getRightComponent() Returns the component to the right (or below) the divider. |
Dimension | getSize() Returns the size of this component in the form of a Dimension object. |
Component | getTopComponent() Returns the component above, or to the left of the divider. |
SplitPaneUI | getUI() Returns the SplitPaneUI that is providing the current look and feel. |
int | getWidth() Returns the current width of this component. |
boolean | isContinuousLayout() Gets the continuousLayout property. |
boolean | isOneTouchExpandable() Gets the oneTouchExpandable property. |
boolean | isShowing() Determines whether this component is showing on screen. |
boolean | isVisible() Determines whether this component should be visible when its parent is visible. |
void | putClientProperty(Object key, Object value) Adds an arbitrary key/value "client property" to this component. |
void | remove(Component component) Removes the child component, component from the pane. |
void | remove(int index) Removes the Component at the specified index. |
void | removeComponentListener(ComponentListener l) Removes the specified component listener so that it no longer receives component events from this component. |
void | removeHierarchyListener(HierarchyListener l) Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component. |
void | resetToPreferredSizes() Lays out the JSplitPane layout based on the preferred size of the children components. |
void | setBackground(Color bg) Sets the background color of this component. |
void | setBorder(Border border) Sets the border of this component. |
void | setBottomComponent(Component comp) Sets the component below, or to the right of the divider. |
void | setContinuousLayout(boolean newContinuousLayout) Sets the value of the continuousLayout property, which must be true for the child components to be continuously redisplayed and laid out during user intervention. |
void | setDividerLocation(double proportionalLocation) Sets the divider location as a percentage of the JSplitPane 's size. |
void | setDividerLocation(int location) Sets the location of the divider. |
void | setDividerSize(int newSize) Sets the size of the divider. |
void | setDoubleBuffered(boolean aFlag) Sets whether this component should use a buffer to paint. |
void | setEnabled(boolean enabled) Sets whether or not this component is enabled. |
void | setLastDividerLocation(int newLastLocation) Sets the last location the divider was at to newLastLocation . |
void | setLeftComponent(Component comp) Sets the component to the left (or above) the divider. |
void | setMinimumSize(Dimension minimumSize) Sets the minimum size of this component to a constant value. |
void | setName(String name) Sets the name of the component to the specified string. |
void | setOneTouchExpandable(boolean newValue) Sets the value of the oneTouchExpandable property, which must be true for the JSplitPane to provide a UI widget on the divider to quickly expand/collapse the divider. |
void | setOpaque(boolean isOpaque) If true the component paints every pixel within its bounds. |
void | setOrientation(int orientation) Sets the orientation, or how the splitter is divided. |
void | setPreferredSize(Dimension preferredSize) Sets the preferred size of this component. |
void | setResizeWeight(double value) Specifies how to distribute extra space when the size of the split pane changes. |
void | setRightComponent(Component comp) Sets the component to the right (or below) the divider. |
void | setTopComponent(Component comp) Sets the component above, or to the left of the divider. |
void | setUI(SplitPaneUI ui) Sets the L&F object that renders this component. |
void | validate() Validates this container and all of its subcomponents. |