javax.swing
Class JSplitPane

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.awt.Component sample code for java.awt.Component definition code for java.awt.Component 
      extended by java.awt.Container sample code for java.awt.Container definition code for java.awt.Container 
          extended by javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent 
              extended by javax.swing.JSplitPane
All Implemented Interfaces:
ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver , MenuContainer sample code for java.awt.MenuContainer definition code for java.awt.MenuContainer , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible

public class JSplitPane
extends JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
implements Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible

JSplitPane is used to divide two (and only two) Components. The two Components are graphically divided based on the look and feel implementation, and the two Components can then be interactively resized by the user. Information on using JSplitPane is in How to Use Split Panes in The Java Tutorial.

The two Components in a split pane can be aligned left to right using JSplitPane.HORIZONTAL_SPLIT, or top to bottom using JSplitPane.VERTICAL_SPLIT. The preferred way to change the size of the Components is to invoke setDividerLocation where location is either the new x or y position, depending on the orientation of the JSplitPane.

To resize the Components to their preferred sizes invoke resetToPreferredSizes.

When the user is resizing the Components the minimum size of the Components is used to determine the maximum/minimum position the Components can be set to. If the minimum size of the two components is greater than the size of the split pane the divider will not allow you to resize it. To alter the minimum size of a JComponent, see JComponent.setMinimumSize(java.awt.Dimension) sample code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) .

When the user resizes the split pane the new space is distributed between the two components based on the resizeWeight property. A value of 0, the default, indicates the right/bottom component gets all the space, where as a value of 1 indicates the left/top component gets all the space.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder sample code for java.beans.XMLEncoder definition code for java.beans.XMLEncoder .

See Also:
setDividerLocation(double) sample code for javax.swing.JSplitPane.setDividerLocation(double) definition code for javax.swing.JSplitPane.setDividerLocation(double) , resetToPreferredSizes() sample code for javax.swing.JSplitPane.resetToPreferredSizes() definition code for javax.swing.JSplitPane.resetToPreferredSizes() , Serialized Form

Nested Class Summary
protected  class JSplitPane.AccessibleJSplitPane sample code for javax.swing.JSplitPane.AccessibleJSplitPane definition code for javax.swing.JSplitPane.AccessibleJSplitPane
          This class implements accessibility support for the JSplitPane class.
 
Nested classes/interfaces inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
JComponent.AccessibleJComponent sample code for javax.swing.JComponent.AccessibleJComponent definition code for javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent , Component.BltBufferStrategy sample code for java.awt.Component.BltBufferStrategy definition code for java.awt.Component.BltBufferStrategy , Component.FlipBufferStrategy sample code for java.awt.Component.FlipBufferStrategy definition code for java.awt.Component.FlipBufferStrategy
 
Field Summary
static String sample code for java.lang.String definition code for java.lang.String BOTTOM sample code for javax.swing.JSplitPane.BOTTOM definition code for javax.swing.JSplitPane.BOTTOM
          Used to add a Component below the other Component.
static String sample code for java.lang.String definition code for java.lang.String CONTINUOUS_LAYOUT_PROPERTY sample code for javax.swing.JSplitPane.CONTINUOUS_LAYOUT_PROPERTY definition code for javax.swing.JSplitPane.CONTINUOUS_LAYOUT_PROPERTY
          Bound property name for continuousLayout.
protected  boolean continuousLayout sample code for javax.swing.JSplitPane.continuousLayout definition code for javax.swing.JSplitPane.continuousLayout
          Whether or not the views are continuously redisplayed while resizing.
static String sample code for java.lang.String definition code for java.lang.String DIVIDER sample code for javax.swing.JSplitPane.DIVIDER definition code for javax.swing.JSplitPane.DIVIDER
          Used to add a Component that will represent the divider.
static String sample code for java.lang.String definition code for java.lang.String DIVIDER_LOCATION_PROPERTY sample code for javax.swing.JSplitPane.DIVIDER_LOCATION_PROPERTY definition code for javax.swing.JSplitPane.DIVIDER_LOCATION_PROPERTY
          Bound property for the dividerLocation.
static String sample code for java.lang.String definition code for java.lang.String DIVIDER_SIZE_PROPERTY sample code for javax.swing.JSplitPane.DIVIDER_SIZE_PROPERTY definition code for javax.swing.JSplitPane.DIVIDER_SIZE_PROPERTY
          Bound property name for border.
protected  int dividerSize sample code for javax.swing.JSplitPane.dividerSize definition code for javax.swing.JSplitPane.dividerSize
          Size of the divider.
static int HORIZONTAL_SPLIT sample code for javax.swing.JSplitPane.HORIZONTAL_SPLIT definition code for javax.swing.JSplitPane.HORIZONTAL_SPLIT
          Horizontal split indicates the Components are split along the x axis.
static String sample code for java.lang.String definition code for java.lang.String LAST_DIVIDER_LOCATION_PROPERTY sample code for javax.swing.JSplitPane.LAST_DIVIDER_LOCATION_PROPERTY definition code for javax.swing.JSplitPane.LAST_DIVIDER_LOCATION_PROPERTY
          Bound property for lastLocation.
protected  int lastDividerLocation sample code for javax.swing.JSplitPane.lastDividerLocation definition code for javax.swing.JSplitPane.lastDividerLocation
          Previous location of the split pane.
static String sample code for java.lang.String definition code for java.lang.String LEFT sample code for javax.swing.JSplitPane.LEFT definition code for javax.swing.JSplitPane.LEFT
          Used to add a Component to the left of the other Component.
protected  Component sample code for java.awt.Component definition code for java.awt.Component leftComponent sample code for javax.swing.JSplitPane.leftComponent definition code for javax.swing.JSplitPane.leftComponent
          The left or top component.
static String sample code for java.lang.String definition code for java.lang.String ONE_TOUCH_EXPANDABLE_PROPERTY sample code for javax.swing.JSplitPane.ONE_TOUCH_EXPANDABLE_PROPERTY definition code for javax.swing.JSplitPane.ONE_TOUCH_EXPANDABLE_PROPERTY
          Bound property for oneTouchExpandable.
protected  boolean oneTouchExpandable sample code for javax.swing.JSplitPane.oneTouchExpandable definition code for javax.swing.JSplitPane.oneTouchExpandable
          Is a little widget provided to quickly expand/collapse the split pane?
protected  int orientation sample code for javax.swing.JSplitPane.orientation definition code for javax.swing.JSplitPane.orientation
          How the views are split.
static String sample code for java.lang.String definition code for java.lang.String ORIENTATION_PROPERTY sample code for javax.swing.JSplitPane.ORIENTATION_PROPERTY definition code for javax.swing.JSplitPane.ORIENTATION_PROPERTY
          Bound property name for orientation (horizontal or vertical).
static String sample code for java.lang.String definition code for java.lang.String RESIZE_WEIGHT_PROPERTY sample code for javax.swing.JSplitPane.RESIZE_WEIGHT_PROPERTY definition code for javax.swing.JSplitPane.RESIZE_WEIGHT_PROPERTY
          Bound property for weight.
static String sample code for java.lang.String definition code for java.lang.String RIGHT sample code for javax.swing.JSplitPane.RIGHT definition code for javax.swing.JSplitPane.RIGHT
          Used to add a Component to the right of the other Component.
protected  Component sample code for java.awt.Component definition code for java.awt.Component rightComponent sample code for javax.swing.JSplitPane.rightComponent definition code for javax.swing.JSplitPane.rightComponent
          The right or bottom component.
static String sample code for java.lang.String definition code for java.lang.String TOP sample code for javax.swing.JSplitPane.TOP definition code for javax.swing.JSplitPane.TOP
          Used to add a Component above the other Component.
static int VERTICAL_SPLIT sample code for javax.swing.JSplitPane.VERTICAL_SPLIT definition code for javax.swing.JSplitPane.VERTICAL_SPLIT
          Vertical split indicates the Components are split along the y axis.
 
Fields inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
accessibleContext sample code for javax.swing.JComponent.accessibleContext definition code for javax.swing.JComponent.accessibleContext , listenerList sample code for javax.swing.JComponent.listenerList definition code for javax.swing.JComponent.listenerList , TOOL_TIP_TEXT_KEY sample code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY definition code for javax.swing.JComponent.TOOL_TIP_TEXT_KEY , ui sample code for javax.swing.JComponent.ui definition code for javax.swing.JComponent.ui , UNDEFINED_CONDITION sample code for javax.swing.JComponent.UNDEFINED_CONDITION definition code for javax.swing.JComponent.UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT sample code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT definition code for javax.swing.JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED sample code for javax.swing.JComponent.WHEN_FOCUSED definition code for javax.swing.JComponent.WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW sample code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW definition code for javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
BOTTOM_ALIGNMENT sample code for java.awt.Component.BOTTOM_ALIGNMENT definition code for java.awt.Component.BOTTOM_ALIGNMENT , CENTER_ALIGNMENT sample code for java.awt.Component.CENTER_ALIGNMENT definition code for java.awt.Component.CENTER_ALIGNMENT , LEFT_ALIGNMENT sample code for java.awt.Component.LEFT_ALIGNMENT definition code for java.awt.Component.LEFT_ALIGNMENT , RIGHT_ALIGNMENT sample code for java.awt.Component.RIGHT_ALIGNMENT definition code for java.awt.Component.RIGHT_ALIGNMENT , TOP_ALIGNMENT sample code for java.awt.Component.TOP_ALIGNMENT definition code for java.awt.Component.TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver sample code for java.awt.image.ImageObserver definition code for java.awt.image.ImageObserver
ABORT sample code for java.awt.image.ImageObserver.ABORT definition code for java.awt.image.ImageObserver.ABORT , ALLBITS sample code for java.awt.image.ImageObserver.ALLBITS definition code for java.awt.image.ImageObserver.ALLBITS , ERROR sample code for java.awt.image.ImageObserver.ERROR definition code for java.awt.image.ImageObserver.ERROR , FRAMEBITS sample code for java.awt.image.ImageObserver.FRAMEBITS definition code for java.awt.image.ImageObserver.FRAMEBITS , HEIGHT sample code for java.awt.image.ImageObserver.HEIGHT definition code for java.awt.image.ImageObserver.HEIGHT , PROPERTIES sample code for java.awt.image.ImageObserver.PROPERTIES definition code for java.awt.image.ImageObserver.PROPERTIES , SOMEBITS sample code for java.awt.image.ImageObserver.SOMEBITS definition code for java.awt.image.ImageObserver.SOMEBITS , WIDTH sample code for java.awt.image.ImageObserver.WIDTH definition code for java.awt.image.ImageObserver.WIDTH
 
Constructor Summary
JSplitPane sample code for javax.swing.JSplitPane.JSplitPane() definition code for javax.swing.JSplitPane.JSplitPane() ()
          Creates a new JSplitPane configured to arrange the child components side-by-side horizontally with no continuous layout, using two buttons for the components.
JSplitPane sample code for javax.swing.JSplitPane.JSplitPane(int) definition code for javax.swing.JSplitPane.JSplitPane(int) (int newOrientation)
          Creates a new JSplitPane configured with the specified orientation and no continuous layout.
JSplitPane sample code for javax.swing.JSplitPane.JSplitPane(int, boolean) definition code for javax.swing.JSplitPane.JSplitPane(int, boolean) (int newOrientation, boolean newContinuousLayout)
          Creates a new JSplitPane with the specified orientation and redrawing style.
JSplitPane sample code for javax.swing.JSplitPane.JSplitPane(int, boolean, java.awt.Component, java.awt.Component) definition code for javax.swing.JSplitPane.JSplitPane(int, boolean, java.awt.Component, java.awt.Component) (int newOrientation, boolean newContinuousLayout, Component sample code for java.awt.Component definition code for java.awt.Component  newLeftComponent, Component sample code for java.awt.Component definition code for java.awt.Component  newRightComponent)
          Creates a new JSplitPane with the specified orientation and redrawing style, and with the specified components.
JSplitPane sample code for javax.swing.JSplitPane.JSplitPane(int, java.awt.Component, java.awt.Component) definition code for javax.swing.JSplitPane.JSplitPane(int, java.awt.Component, java.awt.Component) (int newOrientation, Component sample code for java.awt.Component definition code for java.awt.Component  newLeftComponent, Component sample code for java.awt.Component definition code for java.awt.Component  newRightComponent)
          Creates a new JSplitPane with the specified orientation and with the specified components that do not do continuous redrawing.
 
Method Summary
protected  void addImpl sample code for javax.swing.JSplitPane.addImpl(java.awt.Component, java.lang.Object, int) definition code for javax.swing.JSplitPane.addImpl(java.awt.Component, java.lang.Object, int) (Component sample code for java.awt.Component definition code for java.awt.Component  comp, Object sample code for java.lang.Object definition code for java.lang.Object  constraints, int index)
          Adds the specified component to this split pane.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JSplitPane.getAccessibleContext() definition code for javax.swing.JSplitPane.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JSplitPane.
 Component sample code for java.awt.Component definition code for java.awt.Component getBottomComponent sample code for javax.swing.JSplitPane.getBottomComponent() definition code for javax.swing.JSplitPane.getBottomComponent() ()
          Returns the component below, or to the right of the divider.
 int getDividerLocation sample code for javax.swing.JSplitPane.getDividerLocation() definition code for javax.swing.JSplitPane.getDividerLocation() ()
          Returns the last value passed to setDividerLocation.
 int getDividerSize sample code for javax.swing.JSplitPane.getDividerSize() definition code for javax.swing.JSplitPane.getDividerSize() ()
          Returns the size of the divider.
 int getLastDividerLocation sample code for javax.swing.JSplitPane.getLastDividerLocation() definition code for javax.swing.JSplitPane.getLastDividerLocation() ()
          Returns the last location the divider was at.
 Component sample code for java.awt.Component definition code for java.awt.Component getLeftComponent sample code for javax.swing.JSplitPane.getLeftComponent() definition code for javax.swing.JSplitPane.getLeftComponent() ()
          Returns the component to the left (or above) the divider.
 int getMaximumDividerLocation sample code for javax.swing.JSplitPane.getMaximumDividerLocation() definition code for javax.swing.JSplitPane.getMaximumDividerLocation() ()
          Returns the maximum location of the divider from the look and feel implementation.
 int getMinimumDividerLocation sample code for javax.swing.JSplitPane.getMinimumDividerLocation() definition code for javax.swing.JSplitPane.getMinimumDividerLocation() ()
          Returns the minimum location of the divider from the look and feel implementation.
 int getOrientation sample code for javax.swing.JSplitPane.getOrientation() definition code for javax.swing.JSplitPane.getOrientation() ()
          Returns the orientation.
 double getResizeWeight sample code for javax.swing.JSplitPane.getResizeWeight() definition code for javax.swing.JSplitPane.getResizeWeight() ()
          Returns the number that determines how extra space is distributed.
 Component sample code for java.awt.Component definition code for java.awt.Component getRightComponent sample code for javax.swing.JSplitPane.getRightComponent() definition code for javax.swing.JSplitPane.getRightComponent() ()
          Returns the component to the right (or below) the divider.
 Component sample code for java.awt.Component definition code for java.awt.Component getTopComponent sample code for javax.swing.JSplitPane.getTopComponent() definition code for javax.swing.JSplitPane.getTopComponent() ()
          Returns the component above, or to the left of the divider.
 SplitPaneUI sample code for javax.swing.plaf.SplitPaneUI definition code for javax.swing.plaf.SplitPaneUI getUI sample code for javax.swing.JSplitPane.getUI() definition code for javax.swing.JSplitPane.getUI() ()
          Returns the SplitPaneUI that is providing the current look and feel.
 String sample code for java.lang.String definition code for java.lang.String getUIClassID sample code for javax.swing.JSplitPane.getUIClassID() definition code for javax.swing.JSplitPane.getUIClassID() ()
          Returns the name of the L&F class that renders this component.
 boolean isContinuousLayout sample code for javax.swing.JSplitPane.isContinuousLayout() definition code for javax.swing.JSplitPane.isContinuousLayout() ()
          Gets the continuousLayout property.
 boolean isOneTouchExpandable sample code for javax.swing.JSplitPane.isOneTouchExpandable() definition code for javax.swing.JSplitPane.isOneTouchExpandable() ()
          Gets the oneTouchExpandable property.
 boolean isValidateRoot sample code for javax.swing.JSplitPane.isValidateRoot() definition code for javax.swing.JSplitPane.isValidateRoot() ()
          Returns true, so that calls to revalidate on any descendant of this JSplitPane will cause a request to be queued that will validate the JSplitPane and all its descendants.
protected  void paintChildren sample code for javax.swing.JSplitPane.paintChildren(java.awt.Graphics) definition code for javax.swing.JSplitPane.paintChildren(java.awt.Graphics) (Graphics sample code for java.awt.Graphics definition code for java.awt.Graphics  g)
          Subclassed to message the UI with finishedPaintingChildren after super has been messaged, as well as painting the border.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JSplitPane.paramString() definition code for javax.swing.JSplitPane.paramString() ()
          Returns a string representation of this JSplitPane.
 void remove sample code for javax.swing.JSplitPane.remove(java.awt.Component) definition code for javax.swing.JSplitPane.remove(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  component)
          Removes the child component, component from the pane.
 void remove sample code for javax.swing.JSplitPane.remove(int) definition code for javax.swing.JSplitPane.remove(int) (int index)
          Removes the Component at the specified index.
 void removeAll sample code for javax.swing.JSplitPane.removeAll() definition code for javax.swing.JSplitPane.removeAll() ()
          Removes all the child components from the split pane.
 void resetToPreferredSizes sample code for javax.swing.JSplitPane.resetToPreferredSizes() definition code for javax.swing.JSplitPane.resetToPreferredSizes() ()
          Lays out the JSplitPane layout based on the preferred size of the children components.
 void setBottomComponent sample code for javax.swing.JSplitPane.setBottomComponent(java.awt.Component) definition code for javax.swing.JSplitPane.setBottomComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Sets the component below, or to the right of the divider.
 void setContinuousLayout sample code for javax.swing.JSplitPane.setContinuousLayout(boolean) definition code for javax.swing.JSplitPane.setContinuousLayout(boolean) (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 sample code for javax.swing.JSplitPane.setDividerLocation(double) definition code for javax.swing.JSplitPane.setDividerLocation(double) (double proportionalLocation)
          Sets the divider location as a percentage of the JSplitPane's size.
 void setDividerLocation sample code for javax.swing.JSplitPane.setDividerLocation(int) definition code for javax.swing.JSplitPane.setDividerLocation(int) (int location)
          Sets the location of the divider.
 void setDividerSize sample code for javax.swing.JSplitPane.setDividerSize(int) definition code for javax.swing.JSplitPane.setDividerSize(int) (int newSize)
          Sets the size of the divider.
 void setLastDividerLocation sample code for javax.swing.JSplitPane.setLastDividerLocation(int) definition code for javax.swing.JSplitPane.setLastDividerLocation(int) (int newLastLocation)
          Sets the last location the divider was at to newLastLocation.
 void setLeftComponent sample code for javax.swing.JSplitPane.setLeftComponent(java.awt.Component) definition code for javax.swing.JSplitPane.setLeftComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Sets the component to the left (or above) the divider.
 void setOneTouchExpandable sample code for javax.swing.JSplitPane.setOneTouchExpandable(boolean) definition code for javax.swing.JSplitPane.setOneTouchExpandable(boolean) (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 setOrientation sample code for javax.swing.JSplitPane.setOrientation(int) definition code for javax.swing.JSplitPane.setOrientation(int) (int orientation)
          Sets the orientation, or how the splitter is divided.
 void setResizeWeight sample code for javax.swing.JSplitPane.setResizeWeight(double) definition code for javax.swing.JSplitPane.setResizeWeight(double) (double value)
          Specifies how to distribute extra space when the size of the split pane changes.
 void setRightComponent sample code for javax.swing.JSplitPane.setRightComponent(java.awt.Component) definition code for javax.swing.JSplitPane.setRightComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Sets the component to the right (or below) the divider.
 void setTopComponent sample code for javax.swing.JSplitPane.setTopComponent(java.awt.Component) definition code for javax.swing.JSplitPane.setTopComponent(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  comp)
          Sets the component above, or to the left of the divider.
 void setUI sample code for javax.swing.JSplitPane.setUI(javax.swing.plaf.SplitPaneUI) definition code for javax.swing.JSplitPane.setUI(javax.swing.plaf.SplitPaneUI) (SplitPaneUI sample code for javax.swing.plaf.SplitPaneUI definition code for javax.swing.plaf.SplitPaneUI  ui)
          Sets the L&F object that renders this component.
 void updateUI sample code for javax.swing.JSplitPane.updateUI() definition code for javax.swing.JSplitPane.updateUI() ()
          Notification from the UIManager that the L&F has changed.
 
Methods inherited from class javax.swing.JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
addAncestorListener sample code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.addAncestorListener(javax.swing.event.AncestorListener) , addNotify sample code for javax.swing.JComponent.addNotify() definition code for javax.swing.JComponent.addNotify() , addVetoableChangeListener sample code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.addVetoableChangeListener(java.beans.VetoableChangeListener) , computeVisibleRect sample code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) definition code for javax.swing.JComponent.computeVisibleRect(java.awt.Rectangle) , contains sample code for javax.swing.JComponent.contains(int, int) definition code for javax.swing.JComponent.contains(int, int) , createToolTip sample code for javax.swing.JComponent.createToolTip() definition code for javax.swing.JComponent.createToolTip() , disable sample code for javax.swing.JComponent.disable()