Java javax.swing JSplitPane fields, constructors, methods, implement or subclass

Example usage for Java javax.swing JSplitPane fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing JSplitPane.

The text is from its open source code.

Subclass

javax.swing.JSplitPane has subclasses.
Click this link to see all its subclasses.

Field

intVERTICAL_SPLIT
Vertical split indicates the Components are split along the y axis.
intHORIZONTAL_SPLIT
Horizontal split indicates the Components are split along the x axis.
StringLEFT
Used to add a Component to the left of the other Component.
StringRIGHT
Used to add a Component to the right of the other Component.
StringTOP
Used to add a Component above the other Component.
StringBOTTOM
Used to add a Component below the other Component.
StringONE_TOUCH_EXPANDABLE_PROPERTY
Bound property for oneTouchExpandable.
StringLAST_DIVIDER_LOCATION_PROPERTY
Bound property for lastLocation.
StringDIVIDER_LOCATION_PROPERTY
Bound property for the dividerLocation.

Constructor

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.

Method

Componentadd(Component comp)
Appends the specified component to the end of this container.
Componentadd(String name, Component comp)
Adds the specified component to this container.
voidaddComponentListener(ComponentListener l)
Adds the specified component listener to receive component events from this component.
voidaddHierarchyListener(HierarchyListener l)
Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes.
voidaddPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list.
ComponentgetBottomComponent()
Returns the component below, or to the right of the divider.
RectanglegetBounds()
Gets the bounds of this component in the form of a Rectangle object.
intgetDividerLocation()
Returns the last value passed to setDividerLocation.
intgetDividerSize()
Returns the size of the divider.
intgetHeight()
Returns the current height of this component.
InsetsgetInsets()
If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets.
ComponentgetLeftComponent()
Returns the component to the left (or above) the divider.
intgetMaximumDividerLocation()
Returns the maximum location of the divider from the look and feel implementation.
intgetOrientation()
Returns the orientation.
doublegetResizeWeight()
Returns the number that determines how extra space is distributed.
ComponentgetRightComponent()
Returns the component to the right (or below) the divider.
DimensiongetSize()
Returns the size of this component in the form of a Dimension object.
ComponentgetTopComponent()
Returns the component above, or to the left of the divider.
SplitPaneUIgetUI()
Returns the SplitPaneUI that is providing the current look and feel.
intgetWidth()
Returns the current width of this component.
booleanisContinuousLayout()
Gets the continuousLayout property.
booleanisOneTouchExpandable()
Gets the oneTouchExpandable property.
booleanisShowing()
Determines whether this component is showing on screen.
booleanisVisible()
Determines whether this component should be visible when its parent is visible.
voidputClientProperty(Object key, Object value)
Adds an arbitrary key/value "client property" to this component.
voidremove(Component component)
Removes the child component, component from the pane.
voidremove(int index)
Removes the Component at the specified index.
voidremoveComponentListener(ComponentListener l)
Removes the specified component listener so that it no longer receives component events from this component.
voidremoveHierarchyListener(HierarchyListener l)
Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component.
voidresetToPreferredSizes()
Lays out the JSplitPane layout based on the preferred size of the children components.
voidsetBackground(Color bg)
Sets the background color of this component.
voidsetBorder(Border border)
Sets the border of this component.
voidsetBottomComponent(Component comp)
Sets the component below, or to the right of the divider.
voidsetContinuousLayout(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.
voidsetDividerLocation(double proportionalLocation)
Sets the divider location as a percentage of the JSplitPane's size.
voidsetDividerLocation(int location)
Sets the location of the divider.
voidsetDividerSize(int newSize)
Sets the size of the divider.
voidsetDoubleBuffered(boolean aFlag)
Sets whether this component should use a buffer to paint.
voidsetEnabled(boolean enabled)
Sets whether or not this component is enabled.
voidsetLastDividerLocation(int newLastLocation)
Sets the last location the divider was at to newLastLocation.
voidsetLeftComponent(Component comp)
Sets the component to the left (or above) the divider.
voidsetMinimumSize(Dimension minimumSize)
Sets the minimum size of this component to a constant value.
voidsetName(String name)
Sets the name of the component to the specified string.
voidsetOneTouchExpandable(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.
voidsetOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds.
voidsetOrientation(int orientation)
Sets the orientation, or how the splitter is divided.
voidsetPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.
voidsetResizeWeight(double value)
Specifies how to distribute extra space when the size of the split pane changes.
voidsetRightComponent(Component comp)
Sets the component to the right (or below) the divider.
voidsetTopComponent(Component comp)
Sets the component above, or to the left of the divider.
voidsetUI(SplitPaneUI ui)
Sets the L&F object that renders this component.
voidvalidate()
Validates this container and all of its subcomponents.