javax.swing
Class JScrollPane

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.JScrollPane
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 , ScrollPaneConstants sample code for javax.swing.ScrollPaneConstants definition code for javax.swing.ScrollPaneConstants

public class JScrollPane
extends JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
implements ScrollPaneConstants sample code for javax.swing.ScrollPaneConstants definition code for javax.swing.ScrollPaneConstants , Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible

Provides a scrollable view of a lightweight component. A JScrollPane manages a viewport, optional vertical and horizontal scroll bars, and optional row and column heading viewports. You can find task-oriented documentation of JScrollPane in How to Use Scroll Panes, a section in The Java Tutorial. Note that JScrollPane does not support heavyweight components.

The following text describes this image.

The JViewport provides a window, or "viewport" onto a data source -- for example, a text file. That data source is the "scrollable client" (aka data model) displayed by the JViewport view. A JScrollPane basically consists of JScrollBars, a JViewport, and the wiring between them, as shown in the diagram at right.

In addition to the scroll bars and viewport, a JScrollPane can have a column header and a row header. Each of these is a JViewport object that you specify with setRowHeaderView, and setColumnHeaderView. The column header viewport automatically scrolls left and right, tracking the left-right scrolling of the main viewport. (It never scrolls vertically, however.) The row header acts in a similar fashion.

By default, the corners are empty. You can put a component into a corner using setCorner, in case you there is some function or decoration you would like to add to the scroll pane. The size of corner components is entirely determined by the size of the headers and scroll bars that surround them.

To add a border around the main viewport, you can use setViewportBorder. (Of course, you can also add a border around the whole scroll pane using setBorder.)

A common operation to want to do is to set the background color that will be used if the main viewport view is smaller than the viewport, or is not opaque. This can be accomplished by setting the background color of the viewport, via scrollPane.getViewport().setBackground(). The reason for setting the color of the viewport and not the scrollpane is that by default JViewport is opaque which, among other things, means it will completely fill in its background using its background color. Therefore when JScrollPane draws its background the viewport will usually draw over it.

By default JScrollPane uses ScrollPaneLayout to handle the layout of its child Components. ScrollPaneLayout determines the size to make the viewport view in one of two ways:

  1. If the view implements Scrollable a combination of getPreferredScrollableViewportSize, getScrollableTracksViewportWidth and getScrollableTracksViewportHeightis used, otherwise
  2. getPreferredSize is used.

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:
JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar , JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport , ScrollPaneLayout sample code for javax.swing.ScrollPaneLayout definition code for javax.swing.ScrollPaneLayout , Scrollable sample code for javax.swing.Scrollable definition code for javax.swing.Scrollable , Component.getPreferredSize() sample code for java.awt.Component.getPreferredSize() definition code for java.awt.Component.getPreferredSize() , setViewportView(java.awt.Component) sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component) , setRowHeaderView(java.awt.Component) sample code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component) , setColumnHeaderView(java.awt.Component) sample code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component) , setCorner(java.lang.String, java.awt.Component) sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) , setViewportBorder(javax.swing.border.Border) sample code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border) definition code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border) , Serialized Form

Nested Class Summary
protected  class JScrollPane.AccessibleJScrollPane sample code for javax.swing.JScrollPane.AccessibleJScrollPane definition code for javax.swing.JScrollPane.AccessibleJScrollPane
          This class implements accessibility support for the JScrollPane class.
protected  class JScrollPane.ScrollBar sample code for javax.swing.JScrollPane.ScrollBar definition code for javax.swing.JScrollPane.ScrollBar
          By default JScrollPane creates scrollbars that are instances of this 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
protected  JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport columnHeader sample code for javax.swing.JScrollPane.columnHeader definition code for javax.swing.JScrollPane.columnHeader
          The column header child.
protected  JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar horizontalScrollBar sample code for javax.swing.JScrollPane.horizontalScrollBar definition code for javax.swing.JScrollPane.horizontalScrollBar
          The scrollpane's horizontal scrollbar child.
protected  int horizontalScrollBarPolicy sample code for javax.swing.JScrollPane.horizontalScrollBarPolicy definition code for javax.swing.JScrollPane.horizontalScrollBarPolicy
          The display policy for the horizontal scrollbar.
protected  Component sample code for java.awt.Component definition code for java.awt.Component lowerLeft sample code for javax.swing.JScrollPane.lowerLeft definition code for javax.swing.JScrollPane.lowerLeft
          The component to display in the lower left corner.
protected  Component sample code for java.awt.Component definition code for java.awt.Component lowerRight sample code for javax.swing.JScrollPane.lowerRight definition code for javax.swing.JScrollPane.lowerRight
          The component to display in the lower right corner.
protected  JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport rowHeader sample code for javax.swing.JScrollPane.rowHeader definition code for javax.swing.JScrollPane.rowHeader
          The row header child.
protected  Component sample code for java.awt.Component definition code for java.awt.Component upperLeft sample code for javax.swing.JScrollPane.upperLeft definition code for javax.swing.JScrollPane.upperLeft
          The component to display in the upper left corner.
protected  Component sample code for java.awt.Component definition code for java.awt.Component upperRight sample code for javax.swing.JScrollPane.upperRight definition code for javax.swing.JScrollPane.upperRight
          The component to display in the upper right corner.
protected  JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar verticalScrollBar sample code for javax.swing.JScrollPane.verticalScrollBar definition code for javax.swing.JScrollPane.verticalScrollBar
          The scrollpane's vertical scrollbar child.
protected  int verticalScrollBarPolicy sample code for javax.swing.JScrollPane.verticalScrollBarPolicy definition code for javax.swing.JScrollPane.verticalScrollBarPolicy
          The display policy for the vertical scrollbar.
protected  JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport viewport sample code for javax.swing.JScrollPane.viewport definition code for javax.swing.JScrollPane.viewport
          The scrollpane's viewport child.
 
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 javax.swing.ScrollPaneConstants sample code for javax.swing.ScrollPaneConstants definition code for javax.swing.ScrollPaneConstants
COLUMN_HEADER sample code for javax.swing.ScrollPaneConstants.COLUMN_HEADER definition code for javax.swing.ScrollPaneConstants.COLUMN_HEADER , HORIZONTAL_SCROLLBAR sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR , HORIZONTAL_SCROLLBAR_ALWAYS sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS , HORIZONTAL_SCROLLBAR_AS_NEEDED sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED , HORIZONTAL_SCROLLBAR_NEVER sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER , HORIZONTAL_SCROLLBAR_POLICY sample code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_POLICY definition code for javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_POLICY , LOWER_LEADING_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_LEADING_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_LEADING_CORNER , LOWER_LEFT_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_LEFT_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_LEFT_CORNER , LOWER_RIGHT_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_RIGHT_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_RIGHT_CORNER , LOWER_TRAILING_CORNER sample code for javax.swing.ScrollPaneConstants.LOWER_TRAILING_CORNER definition code for javax.swing.ScrollPaneConstants.LOWER_TRAILING_CORNER , ROW_HEADER sample code for javax.swing.ScrollPaneConstants.ROW_HEADER definition code for javax.swing.ScrollPaneConstants.ROW_HEADER , UPPER_LEADING_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_LEADING_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_LEADING_CORNER , UPPER_LEFT_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_LEFT_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_LEFT_CORNER , UPPER_RIGHT_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_RIGHT_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_RIGHT_CORNER , UPPER_TRAILING_CORNER sample code for javax.swing.ScrollPaneConstants.UPPER_TRAILING_CORNER definition code for javax.swing.ScrollPaneConstants.UPPER_TRAILING_CORNER , VERTICAL_SCROLLBAR sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR , VERTICAL_SCROLLBAR_ALWAYS sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS , VERTICAL_SCROLLBAR_AS_NEEDED sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED , VERTICAL_SCROLLBAR_NEVER sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER , VERTICAL_SCROLLBAR_POLICY sample code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_POLICY definition code for javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_POLICY , VIEWPORT sample code for javax.swing.ScrollPaneConstants.VIEWPORT definition code for javax.swing.ScrollPaneConstants.VIEWPORT
 
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
JScrollPane sample code for javax.swing.JScrollPane.JScrollPane() definition code for javax.swing.JScrollPane.JScrollPane() ()
          Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear when needed.
JScrollPane sample code for javax.swing.JScrollPane.JScrollPane(java.awt.Component) definition code for javax.swing.JScrollPane.JScrollPane(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  view)
          Creates a JScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view.
JScrollPane sample code for javax.swing.JScrollPane.JScrollPane(java.awt.Component, int, int) definition code for javax.swing.JScrollPane.JScrollPane(java.awt.Component, int, int) (Component sample code for java.awt.Component definition code for java.awt.Component  view, int vsbPolicy, int hsbPolicy)
          Creates a JScrollPane that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars.
JScrollPane sample code for javax.swing.JScrollPane.JScrollPane(int, int) definition code for javax.swing.JScrollPane.JScrollPane(int, int) (int vsbPolicy, int hsbPolicy)
          Creates an empty (no viewport view) JScrollPane with specified scrollbar policies.
 
Method Summary
 JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar createHorizontalScrollBar sample code for javax.swing.JScrollPane.createHorizontalScrollBar() definition code for javax.swing.JScrollPane.createHorizontalScrollBar() ()
          Returns a JScrollPane.ScrollBar by default.
 JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar createVerticalScrollBar sample code for javax.swing.JScrollPane.createVerticalScrollBar() definition code for javax.swing.JScrollPane.createVerticalScrollBar() ()
          Returns a JScrollPane.ScrollBar by default.
protected  JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport createViewport sample code for javax.swing.JScrollPane.createViewport() definition code for javax.swing.JScrollPane.createViewport() ()
          Returns a new JViewport by default.
 AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext getAccessibleContext sample code for javax.swing.JScrollPane.getAccessibleContext() definition code for javax.swing.JScrollPane.getAccessibleContext() ()
          Gets the AccessibleContext associated with this JScrollPane.
 JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport getColumnHeader sample code for javax.swing.JScrollPane.getColumnHeader() definition code for javax.swing.JScrollPane.getColumnHeader() ()
          Returns the column header.
 Component sample code for java.awt.Component definition code for java.awt.Component getCorner sample code for javax.swing.JScrollPane.getCorner(java.lang.String) definition code for javax.swing.JScrollPane.getCorner(java.lang.String) (String sample code for java.lang.String definition code for java.lang.String  key)
          Returns the component at the specified corner.
 JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar getHorizontalScrollBar sample code for javax.swing.JScrollPane.getHorizontalScrollBar() definition code for javax.swing.JScrollPane.getHorizontalScrollBar() ()
          Returns the horizontal scroll bar that controls the viewport's horizontal view position.
 int getHorizontalScrollBarPolicy sample code for javax.swing.JScrollPane.getHorizontalScrollBarPolicy() definition code for javax.swing.JScrollPane.getHorizontalScrollBarPolicy() ()
          Returns the horizontal scroll bar policy value.
 JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport getRowHeader sample code for javax.swing.JScrollPane.getRowHeader() definition code for javax.swing.JScrollPane.getRowHeader() ()
          Returns the row header.
 ScrollPaneUI sample code for javax.swing.plaf.ScrollPaneUI definition code for javax.swing.plaf.ScrollPaneUI getUI sample code for javax.swing.JScrollPane.getUI() definition code for javax.swing.JScrollPane.getUI() ()
          Returns the look and feel (L&F) object that renders this component.
 String sample code for java.lang.String definition code for java.lang.String getUIClassID sample code for javax.swing.JScrollPane.getUIClassID() definition code for javax.swing.JScrollPane.getUIClassID() ()
          Returns the suffix used to construct the name of the L&F class used to render this component.
 JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar getVerticalScrollBar sample code for javax.swing.JScrollPane.getVerticalScrollBar() definition code for javax.swing.JScrollPane.getVerticalScrollBar() ()
          Returns the vertical scroll bar that controls the viewports vertical view position.
 int getVerticalScrollBarPolicy sample code for javax.swing.JScrollPane.getVerticalScrollBarPolicy() definition code for javax.swing.JScrollPane.getVerticalScrollBarPolicy() ()
          Returns the vertical scroll bar policy value.
 JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport getViewport sample code for javax.swing.JScrollPane.getViewport() definition code for javax.swing.JScrollPane.getViewport() ()
          Returns the current JViewport.
 Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border getViewportBorder sample code for javax.swing.JScrollPane.getViewportBorder() definition code for javax.swing.JScrollPane.getViewportBorder() ()
          Returns the Border object that surrounds the viewport.
 Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle getViewportBorderBounds sample code for javax.swing.JScrollPane.getViewportBorderBounds() definition code for javax.swing.JScrollPane.getViewportBorderBounds() ()
          Returns the bounds of the viewport's border.
 boolean isValidateRoot sample code for javax.swing.JScrollPane.isValidateRoot() definition code for javax.swing.JScrollPane.isValidateRoot() ()
          Overridden to return true so that any calls to revalidate on any descendants of this JScrollPane will cause the entire tree beginning with this JScrollPane to be validated.
 boolean isWheelScrollingEnabled sample code for javax.swing.JScrollPane.isWheelScrollingEnabled() definition code for javax.swing.JScrollPane.isWheelScrollingEnabled() ()
          Indicates whether or not scrolling will take place in response to the mouse wheel.
protected  String sample code for java.lang.String definition code for java.lang.String paramString sample code for javax.swing.JScrollPane.paramString() definition code for javax.swing.JScrollPane.paramString() ()
          Returns a string representation of this JScrollPane.
 void setColumnHeader sample code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) (JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  columnHeader)
          Removes the old columnHeader, if it exists.
 void setColumnHeaderView sample code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  view)
          Creates a column-header viewport if necessary, sets its view, and then adds the column-header viewport to the scrollpane.
 void setComponentOrientation sample code for javax.swing.JScrollPane.setComponentOrientation(java.awt.ComponentOrientation) definition code for javax.swing.JScrollPane.setComponentOrientation(java.awt.ComponentOrientation) (ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation  co)
          Sets the orientation for the vertical and horizontal scrollbars as determined by the ComponentOrientation argument.
 void setCorner sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) (String sample code for java.lang.String definition code for java.lang.String  key, Component sample code for java.awt.Component definition code for java.awt.Component  corner)
          Adds a child that will appear in one of the scroll panes corners, if there's room.
 void setHorizontalScrollBar sample code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar) (JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  horizontalScrollBar)
          Adds the scrollbar that controls the viewport's horizontal view position to the scrollpane.
 void setHorizontalScrollBarPolicy sample code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) (int policy)
          Determines when the horizontal scrollbar appears in the scrollpane.
 void setLayout sample code for javax.swing.JScrollPane.setLayout(java.awt.LayoutManager) definition code for javax.swing.JScrollPane.setLayout(java.awt.LayoutManager) (LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager  layout)
          Sets the layout manager for this JScrollPane.
 void setRowHeader sample code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) (JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  rowHeader)
          Removes the old rowHeader, if it exists.
 void setRowHeaderView sample code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  view)
          Creates a row-header viewport if necessary, sets its view and then adds the row-header viewport to the scrollpane.
 void setUI sample code for javax.swing.JScrollPane.setUI(javax.swing.plaf.ScrollPaneUI) definition code for javax.swing.JScrollPane.setUI(javax.swing.plaf.ScrollPaneUI) (ScrollPaneUI sample code for javax.swing.plaf.ScrollPaneUI definition code for javax.swing.plaf.ScrollPaneUI  ui)
          Sets the ScrollPaneUI object that provides the look and feel (L&F) for this component.
 void setVerticalScrollBar sample code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar) (JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  verticalScrollBar)
          Adds the scrollbar that controls the viewports vertical view position to the scrollpane.
 void setVerticalScrollBarPolicy sample code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) (int policy)
          Determines when the vertical scrollbar appears in the scrollpane.
 void setViewport sample code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) (JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  viewport)
          Removes the old viewport (if there is one); forces the viewPosition of the new viewport to be in the +x,+y quadrant; syncs up the row and column headers (if there are any) with the new viewport; and finally syncs the scrollbars and headers with the new viewport.
 void setViewportBorder sample code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border) definition code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border) (Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  viewportBorder)
          Adds a border around the viewport.
 void setViewportView sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component) (Component sample code for java.awt.Component definition code for java.awt.Component  view)
          Creates a viewport if necessary and then sets its view.
 void setWheelScrollingEnabled sample code for javax.swing.JScrollPane.setWheelScrollingEnabled(boolean) definition code for javax.swing.JScrollPane.setWheelScrollingEnabled(boolean) (boolean handleWheel)
          Enables/disables scrolling in response to movement of the mouse wheel.
 void updateUI sample code for javax.swing.JScrollPane.updateUI() definition code for javax.swing.JScrollPane.updateUI() ()
          Replaces the current ScrollPaneUI object with a version from the current default look and feel.
 
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() definition code for javax.swing.JComponent.disable() , enable sample code for javax.swing.JComponent.enable() definition code for javax.swing.JComponent.enable() , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, boolean, boolean) , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, char, char) , firePropertyChange sample code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) definition code for javax.swing.JComponent.firePropertyChange(java.lang.String, int, int) , fireVetoableChange sample code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) , getActionForKeyStroke sample code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getActionForKeyStroke(javax.swing.KeyStroke) , getActionMap sample code for javax.swing.JComponent.getActionMap() definition code for javax.swing.JComponent.getActionMap() , getAlignmentX sample code for javax.swing.JComponent.getAlignmentX() definition code for javax.swing.JComponent.getAlignmentX() , getAlignmentY sample code for javax.swing.JComponent.getAlignmentY() definition code for javax.swing.JComponent.getAlignmentY() , getAncestorListeners sample code for javax.swing.JComponent.getAncestorListeners() definition code for javax.swing.JComponent.getAncestorListeners() , getAutoscrolls sample code for javax.swing.JComponent.getAutoscrolls() definition code for javax.swing.JComponent.getAutoscrolls() , getBorder sample code for javax.swing.JComponent.getBorder() definition code for javax.swing.JComponent.getBorder() , getBounds sample code for javax.swing.JComponent.getBounds(java.awt.Rectangle) definition code for javax.swing.JComponent.getBounds(java.awt.Rectangle) , getClientProperty sample code for javax.swing.JComponent.getClientProperty(java.lang.Object) definition code for javax.swing.JComponent.getClientProperty(java.lang.Object) , getComponentGraphics sample code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) definition code for javax.swing.JComponent.getComponentGraphics(java.awt.Graphics) , getComponentPopupMenu sample code for javax.swing.JComponent.getComponentPopupMenu() definition code for javax.swing.JComponent.getComponentPopupMenu() , getConditionForKeyStroke sample code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) definition code for javax.swing.JComponent.getConditionForKeyStroke(javax.swing.KeyStroke) , getDebugGraphicsOptions sample code for javax.swing.JComponent.getDebugGraphicsOptions() definition code for javax.swing.JComponent.getDebugGraphicsOptions() , getDefaultLocale sample code for javax.swing.JComponent.getDefaultLocale() definition code for javax.swing.JComponent.getDefaultLocale() , getFontMetrics sample code for javax.swing.JComponent.getFontMetrics(java.awt.Font) definition code for javax.swing.JComponent.getFontMetrics(java.awt.Font) , getGraphics sample code for javax.swing.JComponent.getGraphics() definition code for javax.swing.JComponent.getGraphics() , getHeight sample code for javax.swing.JComponent.getHeight() definition code for javax.swing.JComponent.getHeight() , getInheritsPopupMenu sample code for javax.swing.JComponent.getInheritsPopupMenu() definition code for javax.swing.JComponent.getInheritsPopupMenu() , getInputMap sample code for javax.swing.JComponent.getInputMap() definition code for javax.swing.JComponent.getInputMap() , getInputMap sample code for javax.swing.JComponent.getInputMap(int) definition code for javax.swing.JComponent.getInputMap(int) , getInputVerifier sample code for javax.swing.JComponent.getInputVerifier() definition code for javax.swing.JComponent.getInputVerifier() , getInsets sample code for javax.swing.JComponent.getInsets() definition code for javax.swing.JComponent.getInsets() , getInsets sample code for javax.swing.JComponent.getInsets(java.awt.Insets) definition code for javax.swing.JComponent.getInsets(java.awt.Insets) , getListeners sample code for javax.swing.JComponent.getListeners(java.lang.Class) definition code for javax.swing.JComponent.getListeners(java.lang.Class) , getLocation sample code for javax.swing.JComponent.getLocation(java.awt.Point) definition code for javax.swing.JComponent.getLocation(java.awt.Point) , getMaximumSize sample code for javax.swing.JComponent.getMaximumSize() definition code for javax.swing.JComponent.getMaximumSize() , getMinimumSize sample code for javax.swing.JComponent.getMinimumSize() definition code for javax.swing.JComponent.getMinimumSize() , getNextFocusableComponent sample code for javax.swing.JComponent.getNextFocusableComponent() definition code for javax.swing.JComponent.getNextFocusableComponent() , getPopupLocation sample code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getPopupLocation(java.awt.event.MouseEvent) , getPreferredSize sample code for javax.swing.JComponent.getPreferredSize() definition code for javax.swing.JComponent.getPreferredSize() , getRegisteredKeyStrokes sample code for javax.swing.JComponent.getRegisteredKeyStrokes() definition code for javax.swing.JComponent.getRegisteredKeyStrokes() , getRootPane sample code for javax.swing.JComponent.getRootPane() definition code for javax.swing.JComponent.getRootPane() , getSize sample code for javax.swing.JComponent.getSize(java.awt.Dimension) definition code for javax.swing.JComponent.getSize(java.awt.Dimension) , getToolTipLocation sample code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipLocation(java.awt.event.MouseEvent) , getToolTipText sample code for javax.swing.JComponent.getToolTipText() definition code for javax.swing.JComponent.getToolTipText() , getToolTipText sample code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.getToolTipText(java.awt.event.MouseEvent) , getTopLevelAncestor sample code for javax.swing.JComponent.getTopLevelAncestor() definition code for javax.swing.JComponent.getTopLevelAncestor() , getTransferHandler sample code for javax.swing.JComponent.getTransferHandler() definition code for javax.swing.JComponent.getTransferHandler() , getVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() definition code for javax.swing.JComponent.getVerifyInputWhenFocusTarget() , getVetoableChangeListeners sample code for javax.swing.JComponent.getVetoableChangeListeners() definition code for javax.swing.JComponent.getVetoableChangeListeners() , getVisibleRect sample code for javax.swing.JComponent.getVisibleRect() definition code for javax.swing.JComponent.getVisibleRect() , getWidth sample code for javax.swing.JComponent.getWidth() definition code for javax.swing.JComponent.getWidth() , getX sample code for javax.swing.JComponent.getX() definition code for javax.swing.JComponent.getX() , getY sample code for javax.swing.JComponent.getY() definition code for javax.swing.JComponent.getY() , grabFocus sample code for javax.swing.JComponent.grabFocus() definition code for javax.swing.JComponent.grabFocus() , isDoubleBuffered sample code for javax.swing.JComponent.isDoubleBuffered() definition code for javax.swing.JComponent.isDoubleBuffered() , isLightweightComponent sample code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) definition code for javax.swing.JComponent.isLightweightComponent(java.awt.Component) , isManagingFocus sample code for javax.swing.JComponent.isManagingFocus() definition code for javax.swing.JComponent.isManagingFocus() , isOpaque sample code for javax.swing.JComponent.isOpaque() definition code for javax.swing.JComponent.isOpaque() , isOptimizedDrawingEnabled sample code for javax.swing.JComponent.isOptimizedDrawingEnabled() definition code for javax.swing.JComponent.isOptimizedDrawingEnabled() , isPaintingTile sample code for javax.swing.JComponent.isPaintingTile() definition code for javax.swing.JComponent.isPaintingTile() , isRequestFocusEnabled sample code for javax.swing.JComponent.isRequestFocusEnabled() definition code for javax.swing.JComponent.isRequestFocusEnabled() , paint sample code for javax.swing.JComponent.paint(java.awt.Graphics) definition code for javax.swing.JComponent.paint(java.awt.Graphics) , paintBorder sample code for javax.swing.JComponent.paintBorder(java.awt.Graphics) definition code for javax.swing.JComponent.paintBorder(java.awt.Graphics) , paintChildren sample code for javax.swing.JComponent.paintChildren(java.awt.Graphics) definition code for javax.swing.JComponent.paintChildren(java.awt.Graphics) , paintComponent sample code for javax.swing.JComponent.paintComponent(java.awt.Graphics) definition code for javax.swing.JComponent.paintComponent(java.awt.Graphics) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(int, int, int, int) definition code for javax.swing.JComponent.paintImmediately(int, int, int, int) , paintImmediately sample code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) definition code for javax.swing.JComponent.paintImmediately(java.awt.Rectangle) , print sample code for javax.swing.JComponent.print(java.awt.Graphics) definition code for javax.swing.JComponent.print(java.awt.Graphics) , printAll sample code for javax.swing.JComponent.printAll(java.awt.Graphics) definition code for javax.swing.JComponent.printAll(java.awt.Graphics) , printBorder sample code for javax.swing.JComponent.printBorder(java.awt.Graphics) definition code for javax.swing.JComponent.printBorder(java.awt.Graphics) , printChildren sample code for javax.swing.JComponent.printChildren(java.awt.Graphics) definition code for javax.swing.JComponent.printChildren(java.awt.Graphics) , printComponent sample code for javax.swing.JComponent.printComponent(java.awt.Graphics) definition code for javax.swing.JComponent.printComponent(java.awt.Graphics) , processComponentKeyEvent sample code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processComponentKeyEvent(java.awt.event.KeyEvent) , processKeyBinding sample code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) definition code for javax.swing.JComponent.processKeyBinding(javax.swing.KeyStroke, java.awt.event.KeyEvent, int, boolean) , processKeyEvent sample code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) definition code for javax.swing.JComponent.processKeyEvent(java.awt.event.KeyEvent) , processMouseEvent sample code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseEvent(java.awt.event.MouseEvent) , processMouseMotionEvent sample code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) definition code for javax.swing.JComponent.processMouseMotionEvent(java.awt.event.MouseEvent) , putClientProperty sample code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) definition code for javax.swing.JComponent.putClientProperty(java.lang.Object, java.lang.Object) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, javax.swing.KeyStroke, int) , registerKeyboardAction sample code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) definition code for javax.swing.JComponent.registerKeyboardAction(java.awt.event.ActionListener, java.lang.String, javax.swing.KeyStroke, int) , removeAncestorListener sample code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) definition code for javax.swing.JComponent.removeAncestorListener(javax.swing.event.AncestorListener) , removeNotify sample code for javax.swing.JComponent.removeNotify() definition code for javax.swing.JComponent.removeNotify() , removeVetoableChangeListener sample code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) definition code for javax.swing.JComponent.removeVetoableChangeListener(java.beans.VetoableChangeListener) , repaint sample code for javax.swing.JComponent.repaint(long, int, int, int, int) definition code for javax.swing.JComponent.repaint(long, int, int, int, int) , repaint sample code for javax.swing.JComponent.repaint(java.awt.Rectangle) definition code for javax.swing.JComponent.repaint(java.awt.Rectangle) , requestDefaultFocus sample code for javax.swing.JComponent.requestDefaultFocus() definition code for javax.swing.JComponent.requestDefaultFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus() definition code for javax.swing.JComponent.requestFocus() , requestFocus sample code for javax.swing.JComponent.requestFocus(boolean) definition code for javax.swing.JComponent.requestFocus(boolean) , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow() definition code for javax.swing.JComponent.requestFocusInWindow() , requestFocusInWindow sample code for javax.swing.JComponent.requestFocusInWindow(boolean) definition code for javax.swing.JComponent.requestFocusInWindow(boolean) , resetKeyboardActions sample code for javax.swing.JComponent.resetKeyboardActions() definition code for javax.swing.JComponent.resetKeyboardActions() , reshape sample code for javax.swing.JComponent.reshape(int, int, int, int) definition code for javax.swing.JComponent.reshape(int, int, int, int) , revalidate sample code for javax.swing.JComponent.revalidate() definition code for javax.swing.JComponent.revalidate() , scrollRectToVisible sample code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) definition code for javax.swing.JComponent.scrollRectToVisible(java.awt.Rectangle) , setActionMap sample code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) definition code for javax.swing.JComponent.setActionMap(javax.swing.ActionMap) , setAlignmentX sample code for javax.swing.JComponent.setAlignmentX(float) definition code for javax.swing.JComponent.setAlignmentX(float) , setAlignmentY sample code for javax.swing.JComponent.setAlignmentY(float) definition code for javax.swing.JComponent.setAlignmentY(float) , setAutoscrolls sample code for javax.swing.JComponent.setAutoscrolls(boolean) definition code for javax.swing.JComponent.setAutoscrolls(boolean) , setBackground sample code for javax.swing.JComponent.setBackground(java.awt.Color) definition code for javax.swing.JComponent.setBackground(java.awt.Color) , setBorder sample code for javax.swing.JComponent.setBorder(javax.swing.border.Border) definition code for javax.swing.JComponent.setBorder(javax.swing.border.Border) , setComponentPopupMenu sample code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) definition code for javax.swing.JComponent.setComponentPopupMenu(javax.swing.JPopupMenu) , setDebugGraphicsOptions sample code for javax.swing.JComponent.setDebugGraphicsOptions(int) definition code for javax.swing.JComponent.setDebugGraphicsOptions(int) , setDefaultLocale sample code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) definition code for javax.swing.JComponent.setDefaultLocale(java.util.Locale) , setDoubleBuffered sample code for javax.swing.JComponent.setDoubleBuffered(boolean) definition code for javax.swing.JComponent.setDoubleBuffered(boolean) , setEnabled sample code for javax.swing.JComponent.setEnabled(boolean) definition code for javax.swing.JComponent.setEnabled(boolean) , setFocusTraversalKeys sample code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) definition code for javax.swing.JComponent.setFocusTraversalKeys(int, java.util.Set) , setFont sample code for javax.swing.JComponent.setFont(java.awt.Font) definition code for javax.swing.JComponent.setFont(java.awt.Font) , setForeground sample code for javax.swing.JComponent.setForeground(java.awt.Color) definition code for javax.swing.JComponent.setForeground(java.awt.Color) , setInheritsPopupMenu sample code for javax.swing.JComponent.setInheritsPopupMenu(boolean) definition code for javax.swing.JComponent.setInheritsPopupMenu(boolean) , setInputMap sample code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) definition code for javax.swing.JComponent.setInputMap(int, javax.swing.InputMap) , setInputVerifier sample code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) definition code for javax.swing.JComponent.setInputVerifier(javax.swing.InputVerifier) , setMaximumSize sample code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMaximumSize(java.awt.Dimension) , setMinimumSize sample code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) definition code for javax.swing.JComponent.setMinimumSize(java.awt.Dimension) , setNextFocusableComponent sample code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) definition code for javax.swing.JComponent.setNextFocusableComponent(java.awt.Component) , setOpaque sample code for javax.swing.JComponent.setOpaque(boolean) definition code for javax.swing.JComponent.setOpaque(boolean) , setPreferredSize sample code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) definition code for javax.swing.JComponent.setPreferredSize(java.awt.Dimension) , setRequestFocusEnabled sample code for javax.swing.JComponent.setRequestFocusEnabled(boolean) definition code for javax.swing.JComponent.setRequestFocusEnabled(boolean) , setToolTipText sample code for javax.swing.JComponent.setToolTipText(java.lang.String) definition code for javax.swing.JComponent.setToolTipText(java.lang.String) , setTransferHandler sample code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) definition code for javax.swing.JComponent.setTransferHandler(javax.swing.TransferHandler) , setUI sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , setVerifyInputWhenFocusTarget sample code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) definition code for javax.swing.JComponent.setVerifyInputWhenFocusTarget(boolean) , setVisible sample code for javax.swing.JComponent.setVisible(boolean) definition code for javax.swing.JComponent.setVisible(boolean) , unregisterKeyboardAction sample code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) definition code for javax.swing.JComponent.unregisterKeyboardAction(javax.swing.KeyStroke) , update sample code for javax.swing.JComponent.update(java.awt.Graphics) definition code for javax.swing.JComponent.update(java.awt.Graphics)
 
Methods inherited from class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container
add sample code for java.awt.Container.add(java.awt.Component) definition code for java.awt.Container.add(java.awt.Component) , add sample code for java.awt.Container.add(java.awt.Component, int) definition code for java.awt.Container.add(java.awt.Component, int) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object) , add sample code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.add(java.awt.Component, java.lang.Object, int) , add sample code for java.awt.Container.add(java.lang.String, java.awt.Component) definition code for java.awt.Container.add(java.lang.String, java.awt.Component) , addContainerListener sample code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) , addImpl sample code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) definition code for java.awt.Container.addImpl(java.awt.Component, java.lang.Object, int) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.beans.PropertyChangeListener) , addPropertyChangeListener sample code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Container.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , applyComponentOrientation sample code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Container.applyComponentOrientation(java.awt.ComponentOrientation) , areFocusTraversalKeysSet sample code for java.awt.Container.areFocusTraversalKeysSet(int) definition code for java.awt.Container.areFocusTraversalKeysSet(int) , countComponents sample code for java.awt.Container.countComponents() definition code for java.awt.Container.countComponents() , deliverEvent sample code for java.awt.Container.deliverEvent(java.awt.Event) definition code for java.awt.Container.deliverEvent(java.awt.Event) , doLayout sample code for java.awt.Container.doLayout() definition code for java.awt.Container.doLayout() , findComponentAt sample code for java.awt.Container.findComponentAt(int, int) definition code for java.awt.Container.findComponentAt(int, int) , findComponentAt sample code for java.awt.Container.findComponentAt(java.awt.Point) definition code for java.awt.Container.findComponentAt(java.awt.Point) , getComponent sample code for java.awt.Container.getComponent(int) definition code for java.awt.Container.getComponent(int) , getComponentAt sample code for java.awt.Container.getComponentAt(int, int) definition code for java.awt.Container.getComponentAt(int, int) , getComponentAt sample code for java.awt.Container.getComponentAt(java.awt.Point) definition code for java.awt.Container.getComponentAt(java.awt.Point) , getComponentCount sample code for java.awt.Container.getComponentCount() definition code for java.awt.Container.getComponentCount() , getComponents sample code for java.awt.Container.getComponents() definition code for java.awt.Container.getComponents() , getComponentZOrder sample code for java.awt.Container.getComponentZOrder(java.awt.Component) definition code for java.awt.Container.getComponentZOrder(java.awt.Component) , getContainerListeners sample code for java.awt.Container.getContainerListeners() definition code for java.awt.Container.getContainerListeners() , getFocusTraversalKeys sample code for java.awt.Container.getFocusTraversalKeys(int) definition code for java.awt.Container.getFocusTraversalKeys(int) , getFocusTraversalPolicy sample code for java.awt.Container.getFocusTraversalPolicy() definition code for java.awt.Container.getFocusTraversalPolicy() , getLayout sample code for java.awt.Container.getLayout() definition code for java.awt.Container.getLayout() , getMousePosition sample code for java.awt.Container.getMousePosition(boolean) definition code for java.awt.Container.getMousePosition(boolean) , insets sample code for java.awt.Container.insets() definition code for java.awt.Container.insets() , invalidate sample code for java.awt.Container.invalidate() definition code for java.awt.Container.invalidate() , isAncestorOf sample code for java.awt.Container.isAncestorOf(java.awt.Component) definition code for java.awt.Container.isAncestorOf(java.awt.Component) , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot() definition code for java.awt.Container.isFocusCycleRoot() , isFocusCycleRoot sample code for java.awt.Container.isFocusCycleRoot(java.awt.Container) definition code for java.awt.Container.isFocusCycleRoot(java.awt.Container) , isFocusTraversalPolicyProvider sample code for java.awt.Container.isFocusTraversalPolicyProvider() definition code for java.awt.Container.isFocusTraversalPolicyProvider() , isFocusTraversalPolicySet sample code for java.awt.Container.isFocusTraversalPolicySet() definition code for java.awt.Container.isFocusTraversalPolicySet() , layout sample code for java.awt.Container.layout() definition code for java.awt.Container.layout() , list sample code for java.awt.Container.list(java.io.PrintStream, int) definition code for java.awt.Container.list(java.io.PrintStream, int) , list sample code for java.awt.Container.list(java.io.PrintWriter, int) definition code for java.awt.Container.list(java.io.PrintWriter, int) , locate sample code for java.awt.Container.locate(int, int) definition code for java.awt.Container.locate(int, int) , minimumSize sample code for java.awt.Container.minimumSize() definition code for java.awt.Container.minimumSize() , paintComponents sample code for java.awt.Container.paintComponents(java.awt.Graphics) definition code for java.awt.Container.paintComponents(java.awt.Graphics) , preferredSize sample code for java.awt.Container.preferredSize() definition code for java.awt.Container.preferredSize() , printComponents sample code for java.awt.Container.printComponents(java.awt.Graphics) definition code for java.awt.Container.printComponents(java.awt.Graphics) , processContainerEvent sample code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) definition code for java.awt.Container.processContainerEvent(java.awt.event.ContainerEvent) , processEvent sample code for java.awt.Container.processEvent(java.awt.AWTEvent) definition code for java.awt.Container.processEvent(java.awt.AWTEvent) , remove sample code for java.awt.Container.remove(java.awt.Component) definition code for java.awt.Container.remove(java.awt.Component) , remove sample code for java.awt.Container.remove(int) definition code for java.awt.Container.remove(int) , removeAll sample code for java.awt.Container.removeAll() definition code for java.awt.Container.removeAll() , removeContainerListener sample code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.removeContainerListener(java.awt.event.ContainerListener) , setComponentZOrder sample code for java.awt.Container.setComponentZOrder(java.awt.Component, int) definition code for java.awt.Container.setComponentZOrder(java.awt.Component, int) , setFocusCycleRoot sample code for java.awt.Container.setFocusCycleRoot(boolean) definition code for java.awt.Container.setFocusCycleRoot(boolean) , setFocusTraversalPolicy sample code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) definition code for java.awt.Container.setFocusTraversalPolicy(java.awt.FocusTraversalPolicy) , setFocusTraversalPolicyProvider sample code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) definition code for java.awt.Container.setFocusTraversalPolicyProvider(boolean) , transferFocusBackward sample code for java.awt.Container.transferFocusBackward() definition code for java.awt.Container.transferFocusBackward() , transferFocusDownCycle sample code for java.awt.Container.transferFocusDownCycle() definition code for java.awt.Container.transferFocusDownCycle() , validate sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , validateTree sample code for java.awt.Container.validateTree() definition code for java.awt.Container.validateTree()
 
Methods inherited from class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component
action sample code for java.awt.Component.action(java.awt.Event, java.lang.Object) definition code for java.awt.Component.action(java.awt.Event, java.lang.Object) , add sample code for java.awt.Component.add(java.awt.PopupMenu) definition code for java.awt.Component.add(java.awt.PopupMenu) , addComponentListener sample code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.addComponentListener(java.awt.event.ComponentListener) , addFocusListener sample code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.addFocusListener(java.awt.event.FocusListener) , addHierarchyBoundsListener sample code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , addHierarchyListener sample code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.addHierarchyListener(java.awt.event.HierarchyListener) , addInputMethodListener sample code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.addInputMethodListener(java.awt.event.InputMethodListener) , addKeyListener sample code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.addKeyListener(java.awt.event.KeyListener) , addMouseListener sample code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.addMouseListener(java.awt.event.MouseListener) , addMouseMotionListener sample code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.addMouseMotionListener(java.awt.event.MouseMotionListener) , addMouseWheelListener sample code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.addMouseWheelListener(java.awt.event.MouseWheelListener) , bounds sample code for java.awt.Component.bounds() definition code for java.awt.Component.bounds() , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, java.awt.image.ImageObserver) , checkImage sample code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.checkImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , coalesceEvents sample code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) definition code for java.awt.Component.coalesceEvents(java.awt.AWTEvent, java.awt.AWTEvent) , contains sample code for java.awt.Component.contains(java.awt.Point) definition code for java.awt.Component.contains(java.awt.Point) , createImage sample code for java.awt.Component.createImage(java.awt.image.ImageProducer) definition code for java.awt.Component.createImage(java.awt.image.ImageProducer) , createImage sample code for java.awt.Component.createImage(int, int) definition code for java.awt.Component.createImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int) definition code for java.awt.Component.createVolatileImage(int, int) , createVolatileImage sample code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) definition code for java.awt.Component.createVolatileImage(int, int, java.awt.ImageCapabilities) , disableEvents sample code for java.awt.Component.disableEvents(long) definition code for java.awt.Component.disableEvents(long) , dispatchEvent sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) , enable sample code for java.awt.Component.enable(boolean) definition code for java.awt.Component.enable(boolean) , enableEvents sample code for java.awt.Component.enableEvents(long) definition code for java.awt.Component.enableEvents(long) , enableInputMethods sample code for java.awt.Component.enableInputMethods(boolean) definition code for java.awt.Component.enableInputMethods(boolean) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) definition code for java.awt.Component.firePropertyChange(java.lang.String, byte, byte) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, double, double) definition code for java.awt.Component.firePropertyChange(java.lang.String, double, double) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, float, float) definition code for java.awt.Component.firePropertyChange(java.lang.String, float, float) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, long, long) definition code for java.awt.Component.firePropertyChange(java.lang.String, long, long) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) , firePropertyChange sample code for java.awt.Component.firePropertyChange(java.lang.String, short, short) definition code for java.awt.Component.firePropertyChange(java.lang.String, short, short) , getBackground sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground() , getBounds sample code for java.awt.Component.getBounds() definition code for java.awt.Component.getBounds() , getColorModel sample code for java.awt.Component.getColorModel() definition code for java.awt.Component.getColorModel() , getComponentListeners sample code for java.awt.Component.getComponentListeners() definition code for java.awt.Component.getComponentListeners() , getComponentOrientation sample code for java.awt.Component.getComponentOrientation() definition code for java.awt.Component.getComponentOrientation() , getCursor sample code for java.awt.Component.getCursor() definition code for java.awt.Component.getCursor() , getDropTarget sample code for java.awt.Component.getDropTarget() definition code for java.awt.Component.getDropTarget() , getFocusCycleRootAncestor sample code for java.awt.Component.getFocusCycleRootAncestor() definition code for java.awt.Component.getFocusCycleRootAncestor() , getFocusListeners sample code for java.awt.Component.getFocusListeners() definition code for java.awt.Component.getFocusListeners() , getFocusTraversalKeysEnabled sample code for java.awt.Component.getFocusTraversalKeysEnabled() definition code for java.awt.Component.getFocusTraversalKeysEnabled() , getFont sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont() , getForeground sample code for java.awt.Component.getForeground() definition code for java.awt.Component.getForeground() , getGraphicsConfiguration sample code for java.awt.Component.getGraphicsConfiguration() definition code for java.awt.Component.getGraphicsConfiguration() , getHierarchyBoundsListeners sample code for java.awt.Component.getHierarchyBoundsListeners() definition code for java.awt.Component.getHierarchyBoundsListeners() , getHierarchyListeners sample code for java.awt.Component.getHierarchyListeners() definition code for java.awt.Component.getHierarchyListeners() , getIgnoreRepaint sample code for java.awt.Component.getIgnoreRepaint() definition code for java.awt.Component.getIgnoreRepaint() , getInputContext sample code for java.awt.Component.getInputContext() definition code for java.awt.Component.getInputContext() , getInputMethodListeners sample code for java.awt.Component.getInputMethodListeners() definition code for java.awt.Component.getInputMethodListeners() , getInputMethodRequests sample code for java.awt.Component.getInputMethodRequests() definition code for java.awt.Component.getInputMethodRequests() , getKeyListeners sample code for java.awt.Component.getKeyListeners() definition code for java.awt.Component.getKeyListeners() , getLocale sample code for java.awt.Component.getLocale() definition code for java.awt.Component.getLocale() , getLocation sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation() , getLocationOnScreen sample code for java.awt.Component.getLocationOnScreen() definition code for java.awt.Component.getLocationOnScreen() , getMouseListeners sample code for java.awt.Component.getMouseListeners() definition code for java.awt.Component.getMouseListeners() , getMouseMotionListeners sample code for java.awt.Component.getMouseMotionListeners() definition code for java.awt.Component.getMouseMotionListeners() , getMousePosition sample code for java.awt.Component.getMousePosition() definition code for java.awt.Component.getMousePosition() , getMouseWheelListeners sample code for java.awt.Component.getMouseWheelListeners() definition code for java.awt.Component.getMouseWheelListeners() , getName sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , getParent sample code for java.awt.Component.getParent() definition code for java.awt.Component.getParent() , getPeer sample code for java.awt.Component.getPeer() definition code for java.awt.Component.getPeer() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners() definition code for java.awt.Component.getPropertyChangeListeners() , getPropertyChangeListeners sample code for java.awt.Component.getPropertyChangeListeners(java.lang.String) definition code for java.awt.Component.getPropertyChangeListeners(java.lang.String) , getSize sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize() , getToolkit sample code for java.awt.Component.getToolkit() definition code for java.awt.Component.getToolkit() , getTreeLock sample code for java.awt.Component.getTreeLock() definition code for java.awt.Component.getTreeLock() , gotFocus sample code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.gotFocus(java.awt.Event, java.lang.Object) , handleEvent sample code for java.awt.Component.handleEvent(java.awt.Event) definition code for java.awt.Component.handleEvent(java.awt.Event) , hasFocus sample code for java.awt.Component.hasFocus() definition code for java.awt.Component.hasFocus() , hide sample code for java.awt.Component.hide() definition code for java.awt.Component.hide() , imageUpdate sample code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) definition code for java.awt.Component.imageUpdate(java.awt.Image, int, int, int, int, int) , inside sample code for java.awt.Component.inside(int, int) definition code for java.awt.Component.inside(int, int) , isBackgroundSet sample code for java.awt.Component.isBackgroundSet() definition code for java.awt.Component.isBackgroundSet() , isCursorSet sample code for java.awt.Component.isCursorSet() definition code for java.awt.Component.isCursorSet() , isDisplayable sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable() , isEnabled sample code for java.awt.Component.isEnabled() definition code for java.awt.Component.isEnabled() , isFocusable sample code for java.awt.Component.isFocusable() definition code for java.awt.Component.isFocusable() , isFocusOwner sample code for java.awt.Component.isFocusOwner() definition code for java.awt.Component.isFocusOwner() , isFocusTraversable sample code for java.awt.Component.isFocusTraversable() definition code for java.awt.Component.isFocusTraversable() , isFontSet sample code for java.awt.Component.isFontSet() definition code for java.awt.Component.isFontSet() , isForegroundSet sample code for java.awt.Component.isForegroundSet() definition code for java.awt.Component.isForegroundSet() , isLightweight sample code for java.awt.Component.isLightweight() definition code for java.awt.Component.isLightweight() , isMaximumSizeSet sample code for java.awt.Component.isMaximumSizeSet() definition code for java.awt.Component.isMaximumSizeSet() , isMinimumSizeSet sample code for java.awt.Component.isMinimumSizeSet() definition code for java.awt.Component.isMinimumSizeSet() , isPreferredSizeSet sample code for java.awt.Component.isPreferredSizeSet() definition code for java.awt.Component.isPreferredSizeSet() , isShowing sample code for java.awt.Component.isShowing() definition code for java.awt.Component.isShowing() , isValid sample code for java.awt.Component.isValid() definition code for java.awt.Component.isValid() , isVisible sample code for java.awt.Component.isVisible() definition code for java.awt.Component.isVisible() , keyDown sample code for java.awt.Component.keyDown(java.awt.Event, int) definition code for java.awt.Component.keyDown(java.awt.Event, int) , keyUp sample code for java.awt.Component.keyUp(java.awt.Event, int) definition code for java.awt.Component.keyUp(java.awt.Event, int) , list sample code for java.awt.Component.list() definition code for java.awt.Component.list() , list sample code for java.awt.Component.list(java.io.PrintStream) definition code for java.awt.Component.list(java.io.PrintStream) , list sample code for java.awt.Component.list(java.io.PrintWriter) definition code for java.awt.Component.list(java.io.PrintWriter) , location sample code for java.awt.Component.location() definition code for java.awt.Component.location() , lostFocus sample code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) definition code for java.awt.Component.lostFocus(java.awt.Event, java.lang.Object) , mouseDown sample code for java.awt.Component.mouseDown(java.awt.Event, int, int) definition code for java.awt.Component.mouseDown(java.awt.Event, int, int) , mouseDrag sample code for java.awt.Component.mouseDrag(java.awt.Event, int, int) definition code for java.awt.Component.mouseDrag(java.awt.Event, int, int) , mouseEnter sample code for java.awt.Component.mouseEnter(java.awt.Event, int, int) definition code for java.awt.Component.mouseEnter(java.awt.Event, int, int) , mouseExit sample code for java.awt.Component.mouseExit(java.awt.Event, int, int) definition code for java.awt.Component.mouseExit(java.awt.Event, int, int) , mouseMove sample code for java.awt.Component.mouseMove(java.awt.Event, int, int) definition code for java.awt.Component.mouseMove(java.awt.Event, int, int) , mouseUp sample code for java.awt.Component.mouseUp(java.awt.Event, int, int) definition code for java.awt.Component.mouseUp(java.awt.Event, int, int) , move sample code for java.awt.Component.move(int, int) definition code for java.awt.Component.move(int, int) , nextFocus sample code for java.awt.Component.nextFocus() definition code for java.awt.Component.nextFocus() , paintAll sample code for java.awt.Component.paintAll(java.awt.Graphics) definition code for java.awt.Component.paintAll(java.awt.Graphics) , postEvent sample code for java.awt.Component.postEvent(java.awt.Event) definition code for java.awt.Component.postEvent(java.awt.Event) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, java.awt.image.ImageObserver) , prepareImage sample code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) definition code for java.awt.Component.prepareImage(java.awt.Image, int, int, java.awt.image.ImageObserver) , processComponentEvent sample code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) definition code for java.awt.Component.processComponentEvent(java.awt.event.ComponentEvent) , processFocusEvent sample code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) definition code for java.awt.Component.processFocusEvent(java.awt.event.FocusEvent) , processHierarchyBoundsEvent sample code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyBoundsEvent(java.awt.event.HierarchyEvent) , processHierarchyEvent sample code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) definition code for java.awt.Component.processHierarchyEvent(java.awt.event.HierarchyEvent) , processInputMethodEvent sample code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) definition code for java.awt.Component.processInputMethodEvent(java.awt.event.InputMethodEvent) , processMouseWheelEvent sample code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) definition code for java.awt.Component.processMouseWheelEvent(java.awt.event.MouseWheelEvent) , remove sample code for java.awt.Component.remove(java.awt.MenuComponent) definition code for java.awt.Component.remove(java.awt.MenuComponent) , removeComponentListener sample code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) definition code for java.awt.Component.removeComponentListener(java.awt.event.ComponentListener) , removeFocusListener sample code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) definition code for java.awt.Component.removeFocusListener(java.awt.event.FocusListener) , removeHierarchyBoundsListener sample code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) definition code for java.awt.Component.removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener) , removeHierarchyListener sample code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) definition code for java.awt.Component.removeHierarchyListener(java.awt.event.HierarchyListener) , removeInputMethodListener sample code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) definition code for java.awt.Component.removeInputMethodListener(java.awt.event.InputMethodListener) , removeKeyListener sample code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) definition code for java.awt.Component.removeKeyListener(java.awt.event.KeyListener) , removeMouseListener sample code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) definition code for java.awt.Component.removeMouseListener(java.awt.event.MouseListener) , removeMouseMotionListener sample code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) definition code for java.awt.Component.removeMouseMotionListener(java.awt.event.MouseMotionListener) , removeMouseWheelListener sample code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) definition code for java.awt.Component.removeMouseWheelListener(java.awt.event.MouseWheelListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) , removePropertyChangeListener sample code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) , repaint sample code for java.awt.Component.repaint() definition code for java.awt.Component.repaint() , repaint sample code for java.awt.Component.repaint(int, int, int, int) definition code for java.awt.Component.repaint(int, int, int, int) , repaint sample code for java.awt.Component.repaint(long) definition code for java.awt.Component.repaint(long) , resize sample code for java.awt.Component.resize(java.awt.Dimension) definition code for java.awt.Component.resize(java.awt.Dimension) , resize sample code for java.awt.Component.resize(int, int) definition code for java.awt.Component.resize(int, int) , setBounds sample code for java.awt.Component.setBounds(int, int, int, int) definition code for java.awt.Component.setBounds(int, int, int, int) , setBounds sample code for java.awt.Component.setBounds(java.awt.Rectangle) definition code for java.awt.Component.setBounds(java.awt.Rectangle) , setCursor sample code for java.awt.Component.setCursor(java.awt.Cursor) definition code for java.awt.Component.setCursor(java.awt.Cursor) , setDropTarget sample code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) definition code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) , setFocusable sample code for java.awt.Component.setFocusable(boolean) definition code for java.awt.Component.setFocusable(boolean) , setFocusTraversalKeysEnabled sample code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) definition code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) , setIgnoreRepaint sample code for java.awt.Component.setIgnoreRepaint(boolean) definition code for java.awt.Component.setIgnoreRepaint(boolean) , setLocale sample code for java.awt.Component.setLocale(java.util.Locale) definition code for java.awt.Component.setLocale(java.util.Locale) , setLocation sample code for java.awt.Component.setLocation(int, int) definition code for java.awt.Component.setLocation(int, int) , setLocation sample code for java.awt.Component.setLocation(java.awt.Point) definition code for java.awt.Component.setLocation(java.awt.Point) , setName sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String) , setSize sample code for java.awt.Component.setSize(java.awt.Dimension) definition code for java.awt.Component.setSize(java.awt.Dimension) , setSize sample code for java.awt.Component.setSize(int, int) definition code for java.awt.Component.setSize(int, int) , show sample code for java.awt.Component.show() definition code for java.awt.Component.show() , show sample code for java.awt.Component.show(boolean) definition code for java.awt.Component.show(boolean) , size sample code for java.awt.Component.size() definition code for java.awt.Component.size() , toString sample code for java.awt.Component.toString() definition code for java.awt.Component.toString() , transferFocus sample code for java.awt.Component.transferFocus() definition code for java.awt.Component.transferFocus() , transferFocusUpCycle sample code for java.awt.Component.transferFocusUpCycle() definition code for java.awt.Component.transferFocusUpCycle()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

verticalScrollBarPolicy sample code for javax.swing.JScrollPane.verticalScrollBarPolicy

protected int verticalScrollBarPolicy
The display policy for the vertical scrollbar. The default is ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED.

See Also:
setVerticalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int)

horizontalScrollBarPolicy sample code for javax.swing.JScrollPane.horizontalScrollBarPolicy

protected int horizontalScrollBarPolicy
The display policy for the horizontal scrollbar. The default is ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED.

See Also:
setHorizontalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int)

viewport sample code for javax.swing.JScrollPane.viewport

protected JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  viewport
The scrollpane's viewport child. Default is an empty JViewport.

See Also:
setViewport(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport)

verticalScrollBar sample code for javax.swing.JScrollPane.verticalScrollBar

protected JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  verticalScrollBar
The scrollpane's vertical scrollbar child. Default is a JScrollBar.

See Also:
setVerticalScrollBar(javax.swing.JScrollBar) sample code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar)

horizontalScrollBar sample code for javax.swing.JScrollPane.horizontalScrollBar

protected JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  horizontalScrollBar
The scrollpane's horizontal scrollbar child. Default is a JScrollBar.

See Also:
setHorizontalScrollBar(javax.swing.JScrollBar) sample code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar)

rowHeader sample code for javax.swing.JScrollPane.rowHeader

protected JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  rowHeader
The row header child. Default is null.

See Also:
setRowHeader(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport)

columnHeader sample code for javax.swing.JScrollPane.columnHeader

protected JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  columnHeader
The column header child. Default is null.

See Also:
setColumnHeader(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport)

lowerLeft sample code for javax.swing.JScrollPane.lowerLeft

protected Component sample code for java.awt.Component definition code for java.awt.Component  lowerLeft
The component to display in the lower left corner. Default is null.

See Also:
setCorner(java.lang.String, java.awt.Component) sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component)

lowerRight sample code for javax.swing.JScrollPane.lowerRight

protected Component sample code for java.awt.Component definition code for java.awt.Component  lowerRight
The component to display in the lower right corner. Default is null.

See Also:
setCorner(java.lang.String, java.awt.Component) sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component)

upperLeft sample code for javax.swing.JScrollPane.upperLeft

protected Component sample code for java.awt.Component definition code for java.awt.Component  upperLeft
The component to display in the upper left corner. Default is null.

See Also:
setCorner(java.lang.String, java.awt.Component) sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component)

upperRight sample code for javax.swing.JScrollPane.upperRight

protected Component sample code for java.awt.Component definition code for java.awt.Component  upperRight
The component to display in the upper right corner. Default is null.

See Also:
setCorner(java.lang.String, java.awt.Component) sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component)
Constructor Detail

JScrollPane sample code for javax.swing.JScrollPane(java.awt.Component, int, int) definition code for javax.swing.JScrollPane(java.awt.Component, int, int)

public JScrollPane(Component sample code for java.awt.Component definition code for java.awt.Component  view,
                   int vsbPolicy,
                   int hsbPolicy)
Creates a JScrollPane that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars. The scrollbar policies specify when the scrollbars are displayed, For example, if vsbPolicy is VERTICAL_SCROLLBAR_AS_NEEDED then the vertical scrollbar only appears if the view doesn't fit vertically. The available policy settings are listed at setVerticalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) and setHorizontalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) .

Parameters:
view - the component to display in the scrollpanes viewport
vsbPolicy - an integer that specifies the vertical scrollbar policy
hsbPolicy - an integer that specifies the horizontal scrollbar policy
See Also:
setViewportView(java.awt.Component) sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component)

JScrollPane sample code for javax.swing.JScrollPane(java.awt.Component) definition code for javax.swing.JScrollPane(java.awt.Component)

public JScrollPane(Component sample code for java.awt.Component definition code for java.awt.Component  view)
Creates a JScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view.

Parameters:
view - the component to display in the scrollpane's viewport
See Also:
setViewportView(java.awt.Component) sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component)

JScrollPane sample code for javax.swing.JScrollPane(int, int) definition code for javax.swing.JScrollPane(int, int)

public JScrollPane(int vsbPolicy,
                   int hsbPolicy)
Creates an empty (no viewport view) JScrollPane with specified scrollbar policies. The available policy settings are listed at setVerticalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) and setHorizontalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) .

Parameters:
vsbPolicy - an integer that specifies the vertical scrollbar policy
hsbPolicy - an integer that specifies the horizontal scrollbar policy
See Also:
setViewportView(java.awt.Component) sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component)

JScrollPane sample code for javax.swing.JScrollPane() definition code for javax.swing.JScrollPane()

public JScrollPane()
Creates an empty (no viewport view) JScrollPane where both horizontal and vertical scrollbars appear when needed.

Method Detail

getUI sample code for javax.swing.JScrollPane.getUI() definition code for javax.swing.JScrollPane.getUI()

public ScrollPaneUI sample code for javax.swing.plaf.ScrollPaneUI definition code for javax.swing.plaf.ScrollPaneUI  getUI()
Returns the look and feel (L&F) object that renders this component.

Returns:
the ScrollPaneUI object that renders this component
See Also:
setUI(javax.swing.plaf.ScrollPaneUI) sample code for javax.swing.JScrollPane.setUI(javax.swing.plaf.ScrollPaneUI) definition code for javax.swing.JScrollPane.setUI(javax.swing.plaf.ScrollPaneUI)

setUI sample code for javax.swing.JScrollPane.setUI(javax.swing.plaf.ScrollPaneUI) definition code for javax.swing.JScrollPane.setUI(javax.swing.plaf.ScrollPaneUI)

public void setUI(ScrollPaneUI sample code for javax.swing.plaf.ScrollPaneUI definition code for javax.swing.plaf.ScrollPaneUI  ui)
Sets the ScrollPaneUI object that provides the look and feel (L&F) for this component.

Parameters:
ui - the ScrollPaneUI L&F object
See Also:
getUI() sample code for javax.swing.JScrollPane.getUI() definition code for javax.swing.JScrollPane.getUI()

updateUI sample code for javax.swing.JScrollPane.updateUI() definition code for javax.swing.JScrollPane.updateUI()

public void updateUI()
Replaces the current ScrollPaneUI object with a version from the current default look and feel. To be called when the default look and feel changes.

Overrides:
updateUI sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
See Also:
JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI() , UIManager.getUI(javax.swing.JComponent) sample code for javax.swing.UIManager.getUI(javax.swing.JComponent) definition code for javax.swing.UIManager.getUI(javax.swing.JComponent)

getUIClassID sample code for javax.swing.JScrollPane.getUIClassID() definition code for javax.swing.JScrollPane.getUIClassID()

public String sample code for java.lang.String definition code for java.lang.String  getUIClassID()
Returns the suffix used to construct the name of the L&F class used to render this component.

Overrides:
getUIClassID sample code for javax.swing.JComponent.getUIClassID() definition code for javax.swing.JComponent.getUIClassID() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
the string "ScrollPaneUI"
See Also:
JComponent.getUIClassID() sample code for javax.swing.JComponent.getUIClassID() definition code for javax.swing.JComponent.getUIClassID() , UIDefaults.getUI(javax.swing.JComponent) sample code for javax.swing.UIDefaults.getUI(javax.swing.JComponent) definition code for javax.swing.UIDefaults.getUI(javax.swing.JComponent)

setLayout sample code for javax.swing.JScrollPane.setLayout(java.awt.LayoutManager) definition code for javax.swing.JScrollPane.setLayout(java.awt.LayoutManager)

public void setLayout(LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager  layout)
Sets the layout manager for this JScrollPane. This method overrides setLayout in java.awt.Container to ensure that only LayoutManagers which are subclasses of ScrollPaneLayout can be used in a JScrollPane. If layout is non-null, this will invoke syncWithScrollPane on it.

Overrides:
setLayout sample code for java.awt.Container.setLayout(java.awt.LayoutManager) definition code for java.awt.Container.setLayout(java.awt.LayoutManager) in class Container sample code for java.awt.Container definition code for java.awt.Container
Parameters:
layout - the specified layout manager
Throws:
ClassCastException sample code for java.lang.ClassCastException definition code for java.lang.ClassCastException - if layout is not a ScrollPaneLayout
See Also:
Container.getLayout() sample code for java.awt.Container.getLayout() definition code for java.awt.Container.getLayout() , Container.setLayout(java.awt.LayoutManager) sample code for java.awt.Container.setLayout(java.awt.LayoutManager) definition code for java.awt.Container.setLayout(java.awt.LayoutManager)

isValidateRoot sample code for javax.swing.JScrollPane.isValidateRoot() definition code for javax.swing.JScrollPane.isValidateRoot()

public boolean isValidateRoot()
Overridden to return true so that any calls to revalidate on any descendants of this JScrollPane will cause the entire tree beginning with this JScrollPane to be validated.

Overrides:
isValidateRoot sample code for javax.swing.JComponent.isValidateRoot() definition code for javax.swing.JComponent.isValidateRoot() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
true
See Also:
Container.validate() sample code for java.awt.Container.validate() definition code for java.awt.Container.validate() , JComponent.revalidate() sample code for javax.swing.JComponent.revalidate() definition code for javax.swing.JComponent.revalidate() , JComponent.isValidateRoot() sample code for javax.swing.JComponent.isValidateRoot() definition code for javax.swing.JComponent.isValidateRoot()

getVerticalScrollBarPolicy sample code for javax.swing.JScrollPane.getVerticalScrollBarPolicy() definition code for javax.swing.JScrollPane.getVerticalScrollBarPolicy()

public int getVerticalScrollBarPolicy()
Returns the vertical scroll bar policy value.

Returns:
the verticalScrollBarPolicy property
See Also:
setVerticalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int)

setVerticalScrollBarPolicy sample code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setVerticalScrollBarPolicy(int)

public void setVerticalScrollBarPolicy(int policy)
Determines when the vertical scrollbar appears in the scrollpane. Legal values are:

Parameters:
policy - one of the three values listed above
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if policy is not one of the legal values shown above
See Also:
getVerticalScrollBarPolicy() sample code for javax.swing.JScrollPane.getVerticalScrollBarPolicy() definition code for javax.swing.JScrollPane.getVerticalScrollBarPolicy()

getHorizontalScrollBarPolicy sample code for javax.swing.JScrollPane.getHorizontalScrollBarPolicy() definition code for javax.swing.JScrollPane.getHorizontalScrollBarPolicy()

public int getHorizontalScrollBarPolicy()
Returns the horizontal scroll bar policy value.

Returns:
the horizontalScrollBarPolicy property
See Also:
setHorizontalScrollBarPolicy(int) sample code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int)

setHorizontalScrollBarPolicy sample code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int) definition code for javax.swing.JScrollPane.setHorizontalScrollBarPolicy(int)

public void setHorizontalScrollBarPolicy(int policy)
Determines when the horizontal scrollbar appears in the scrollpane. The options are:

Parameters:
policy - one of the three values listed above
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if policy is not one of the legal values shown above
See Also:
getHorizontalScrollBarPolicy() sample code for javax.swing.JScrollPane.getHorizontalScrollBarPolicy() definition code for javax.swing.JScrollPane.getHorizontalScrollBarPolicy()

getViewportBorder sample code for javax.swing.JScrollPane.getViewportBorder() definition code for javax.swing.JScrollPane.getViewportBorder()

public Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  getViewportBorder()
Returns the Border object that surrounds the viewport.

Returns:
the viewportBorder property
See Also:
setViewportBorder(javax.swing.border.Border) sample code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border) definition code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border)

setViewportBorder sample code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border) definition code for javax.swing.JScrollPane.setViewportBorder(javax.swing.border.Border)

public void setViewportBorder(Border sample code for javax.swing.border.Border definition code for javax.swing.border.Border  viewportBorder)
Adds a border around the viewport. Note that the border isn't set on the viewport directly, JViewport doesn't support the JComponent border property. Similarly setting the JScrollPanes viewport doesn't affect the viewportBorder property.

The default value of this property is computed by the look and feel implementation.

Parameters:
viewportBorder - the border to be added
See Also:
getViewportBorder() sample code for javax.swing.JScrollPane.getViewportBorder() definition code for javax.swing.JScrollPane.getViewportBorder() , setViewport(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport)

getViewportBorderBounds sample code for javax.swing.JScrollPane.getViewportBorderBounds() definition code for javax.swing.JScrollPane.getViewportBorderBounds()

public Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  getViewportBorderBounds()
Returns the bounds of the viewport's border.

Returns:
a Rectangle object specifying the viewport border

createHorizontalScrollBar sample code for javax.swing.JScrollPane.createHorizontalScrollBar() definition code for javax.swing.JScrollPane.createHorizontalScrollBar()

public JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  createHorizontalScrollBar()
Returns a JScrollPane.ScrollBar by default. Subclasses may override this method to force ScrollPaneUI implementations to use a JScrollBar subclass. Used by ScrollPaneUI implementations to create the horizontal scrollbar.

Returns:
a JScrollBar with a horizontal orientation
See Also:
JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar

getHorizontalScrollBar sample code for javax.swing.JScrollPane.getHorizontalScrollBar() definition code for javax.swing.JScrollPane.getHorizontalScrollBar()

public JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  getHorizontalScrollBar()
Returns the horizontal scroll bar that controls the viewport's horizontal view position.

Returns:
the horizontalScrollBar property
See Also:
setHorizontalScrollBar(javax.swing.JScrollBar) sample code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar)

setHorizontalScrollBar sample code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setHorizontalScrollBar(javax.swing.JScrollBar)

public void setHorizontalScrollBar(JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  horizontalScrollBar)
Adds the scrollbar that controls the viewport's horizontal view position to the scrollpane. This is usually unnecessary, as JScrollPane creates horizontal and vertical scrollbars by default.

Parameters:
horizontalScrollBar - the horizontal scrollbar to be added
See Also:
createHorizontalScrollBar() sample code for javax.swing.JScrollPane.createHorizontalScrollBar() definition code for javax.swing.JScrollPane.createHorizontalScrollBar() , getHorizontalScrollBar() sample code for javax.swing.JScrollPane.getHorizontalScrollBar() definition code for javax.swing.JScrollPane.getHorizontalScrollBar()

createVerticalScrollBar sample code for javax.swing.JScrollPane.createVerticalScrollBar() definition code for javax.swing.JScrollPane.createVerticalScrollBar()

public JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  createVerticalScrollBar()
Returns a JScrollPane.ScrollBar by default. Subclasses may override this method to force ScrollPaneUI implementations to use a JScrollBar subclass. Used by ScrollPaneUI implementations to create the vertical scrollbar.

Returns:
a JScrollBar with a vertical orientation
See Also:
JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar

getVerticalScrollBar sample code for javax.swing.JScrollPane.getVerticalScrollBar() definition code for javax.swing.JScrollPane.getVerticalScrollBar()

public JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  getVerticalScrollBar()
Returns the vertical scroll bar that controls the viewports vertical view position.

Returns:
the verticalScrollBar property
See Also:
setVerticalScrollBar(javax.swing.JScrollBar) sample code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar)

setVerticalScrollBar sample code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar) definition code for javax.swing.JScrollPane.setVerticalScrollBar(javax.swing.JScrollBar)

public void setVerticalScrollBar(JScrollBar sample code for javax.swing.JScrollBar definition code for javax.swing.JScrollBar  verticalScrollBar)
Adds the scrollbar that controls the viewports vertical view position to the scrollpane. This is usually unnecessary, as JScrollPane creates vertical and horizontal scrollbars by default.

Parameters:
verticalScrollBar - the new vertical scrollbar to be added
See Also:
createVerticalScrollBar() sample code for javax.swing.JScrollPane.createVerticalScrollBar() definition code for javax.swing.JScrollPane.createVerticalScrollBar() , getVerticalScrollBar() sample code for javax.swing.JScrollPane.getVerticalScrollBar() definition code for javax.swing.JScrollPane.getVerticalScrollBar()

createViewport sample code for javax.swing.JScrollPane.createViewport() definition code for javax.swing.JScrollPane.createViewport()

protected JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  createViewport()
Returns a new JViewport by default. Used to create the viewport (as needed) in setViewportView, setRowHeaderView, and setColumnHeaderView. Subclasses may override this method to return a subclass of JViewport.

Returns:
a new JViewport

getViewport sample code for javax.swing.JScrollPane.getViewport() definition code for javax.swing.JScrollPane.getViewport()

public JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  getViewport()
Returns the current JViewport.

Returns:
the viewport property
See Also:
setViewport(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport)

setViewport sample code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport)

public void setViewport(JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  viewport)
Removes the old viewport (if there is one); forces the viewPosition of the new viewport to be in the +x,+y quadrant; syncs up the row and column headers (if there are any) with the new viewport; and finally syncs the scrollbars and headers with the new viewport.

Most applications will find it more convenient to use setViewportView to add a viewport and a view to the scrollpane.

Parameters:
viewport - the new viewport to be used; if viewport is null, the old viewport is still removed and the new viewport is set to null
See Also:
createViewport() sample code for javax.swing.JScrollPane.createViewport() definition code for javax.swing.JScrollPane.createViewport() , getViewport() sample code for javax.swing.JScrollPane.getViewport() definition code for javax.swing.JScrollPane.getViewport() , setViewportView(java.awt.Component) sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component)

setViewportView sample code for javax.swing.JScrollPane.setViewportView(java.awt.Component) definition code for javax.swing.JScrollPane.setViewportView(java.awt.Component)

public void setViewportView(Component sample code for java.awt.Component definition code for java.awt.Component  view)
Creates a viewport if necessary and then sets its view. Applications that don't provide the view directly to the JScrollPane constructor should use this method to specify the scrollable child that's going to be displayed in the scrollpane. For example:
 JScrollPane scrollpane = new JScrollPane();
 scrollpane.setViewportView(myBigComponentToScroll);
 
Applications should not add children directly to the scrollpane.

Parameters:
view - the component to add to the viewport
See Also:
setViewport(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setViewport(javax.swing.JViewport) , JViewport.setView(java.awt.Component) sample code for javax.swing.JViewport.setView(java.awt.Component) definition code for javax.swing.JViewport.setView(java.awt.Component)

getRowHeader sample code for javax.swing.JScrollPane.getRowHeader() definition code for javax.swing.JScrollPane.getRowHeader()

public JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  getRowHeader()
Returns the row header.

Returns:
the rowHeader property
See Also:
setRowHeader(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport)

setRowHeader sample code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport)

public void setRowHeader(JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  rowHeader)
Removes the old rowHeader, if it exists. If the new rowHeader isn't null, syncs the y coordinate of its viewPosition with the viewport (if there is one) and then adds it to the scrollpane.

Most applications will find it more convenient to use setRowHeaderView to add a row header component and its viewport to the scrollpane.

Parameters:
rowHeader - the new row header to be used; if null the old row header is still removed and the new rowHeader is set to null
See Also:
getRowHeader() sample code for javax.swing.JScrollPane.getRowHeader() definition code for javax.swing.JScrollPane.getRowHeader() , setRowHeaderView(java.awt.Component) sample code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component)

setRowHeaderView sample code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setRowHeaderView(java.awt.Component)

public void setRowHeaderView(Component sample code for java.awt.Component definition code for java.awt.Component  view)
Creates a row-header viewport if necessary, sets its view and then adds the row-header viewport to the scrollpane. For example:
 JScrollPane scrollpane = new JScrollPane();
 scrollpane.setViewportView(myBigComponentToScroll);
 scrollpane.setRowHeaderView(myBigComponentsRowHeader);
 

Parameters:
view - the component to display as the row header
See Also:
setRowHeader(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setRowHeader(javax.swing.JViewport) , JViewport.setView(java.awt.Component) sample code for javax.swing.JViewport.setView(java.awt.Component) definition code for javax.swing.JViewport.setView(java.awt.Component)

getColumnHeader sample code for javax.swing.JScrollPane.getColumnHeader() definition code for javax.swing.JScrollPane.getColumnHeader()

public JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  getColumnHeader()
Returns the column header.

Returns:
the columnHeader property
See Also:
setColumnHeader(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport)

setColumnHeader sample code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport)

public void setColumnHeader(JViewport sample code for javax.swing.JViewport definition code for javax.swing.JViewport  columnHeader)
Removes the old columnHeader, if it exists. If the new columnHeader isn't null, sync the x coordinate of the its viewPosition with the viewport (if there is one) and then add it to the scrollpane.

Most applications will find it more convenient to use setRowHeaderView to add a row header component and its viewport to the scrollpane.

See Also:
getColumnHeader() sample code for javax.swing.JScrollPane.getColumnHeader() definition code for javax.swing.JScrollPane.getColumnHeader() , setColumnHeaderView(java.awt.Component) sample code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component)

setColumnHeaderView sample code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component) definition code for javax.swing.JScrollPane.setColumnHeaderView(java.awt.Component)

public void setColumnHeaderView(Component sample code for java.awt.Component definition code for java.awt.Component  view)
Creates a column-header viewport if necessary, sets its view, and then adds the column-header viewport to the scrollpane. For example:
 JScrollPane scrollpane = new JScrollPane();
 scrollpane.setViewportView(myBigComponentToScroll);
 scrollpane.setColumnHeaderView(myBigComponentsColumnHeader);
 

Parameters:
view - the component to display as the column header
See Also:
setColumnHeader(javax.swing.JViewport) sample code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) definition code for javax.swing.JScrollPane.setColumnHeader(javax.swing.JViewport) , JViewport.setView(java.awt.Component) sample code for javax.swing.JViewport.setView(java.awt.Component) definition code for javax.swing.JViewport.setView(java.awt.Component)

getCorner sample code for javax.swing.JScrollPane.getCorner(java.lang.String) definition code for javax.swing.JScrollPane.getCorner(java.lang.String)

public Component sample code for java.awt.Component definition code for java.awt.Component  getCorner(String sample code for java.lang.String definition code for java.lang.String  key)
Returns the component at the specified corner. The key value specifying the corner is one of:

Parameters:
key - one of the values as shown above
Returns:
one of the components listed below or null if key is invalid:
  • lowerLeft
  • lowerRight
  • upperLeft
  • upperRight
See Also:
setCorner(java.lang.String, java.awt.Component) sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component)

setCorner sample code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component) definition code for javax.swing.JScrollPane.setCorner(java.lang.String, java.awt.Component)

public void setCorner(String sample code for java.lang.String definition code for java.lang.String  key,
                      Component sample code for java.awt.Component definition code for java.awt.Component  corner)
Adds a child that will appear in one of the scroll panes corners, if there's room. For example with both scrollbars showing (on the right and bottom edges of the scrollpane) the lower left corner component will be shown in the space between ends of the two scrollbars. Legal values for the key are:

Although "corner" doesn't match any beans property signature, PropertyChange events are generated with the property name set to the corner key.

Parameters:
key - identifies which corner the component will appear in
corner - one of the following components:
  • lowerLeft
  • lowerRight
  • upperLeft
  • upperRight
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if corner key is invalid

setComponentOrientation sample code for javax.swing.JScrollPane.setComponentOrientation(java.awt.ComponentOrientation) definition code for javax.swing.JScrollPane.setComponentOrientation(java.awt.ComponentOrientation)

public void setComponentOrientation(ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation  co)
Sets the orientation for the vertical and horizontal scrollbars as determined by the ComponentOrientation argument.

Overrides:
setComponentOrientation sample code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) definition code for java.awt.Component.setComponentOrientation(java.awt.ComponentOrientation) in class Component sample code for java.awt.Component definition code for java.awt.Component
Parameters:
co - one of the following values:
  • java.awt.ComponentOrientation.LEFT_TO_RIGHT
  • java.awt.ComponentOrientation.RIGHT_TO_LEFT
  • java.awt.ComponentOrientation.UNKNOWN
See Also:
ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation

isWheelScrollingEnabled sample code for javax.swing.JScrollPane.isWheelScrollingEnabled() definition code for javax.swing.JScrollPane.isWheelScrollingEnabled()

public boolean isWheelScrollingEnabled()
Indicates whether or not scrolling will take place in response to the mouse wheel. Wheel scrolling is enabled by default.

Since:
1.4
See Also:
setWheelScrollingEnabled(boolean) sample code for javax.swing.JScrollPane.setWheelScrollingEnabled(boolean) definition code for javax.swing.JScrollPane.setWheelScrollingEnabled(boolean)

setWheelScrollingEnabled sample code for javax.swing.JScrollPane.setWheelScrollingEnabled(boolean) definition code for javax.swing.JScrollPane.setWheelScrollingEnabled(boolean)

public void setWheelScrollingEnabled(boolean handleWheel)
Enables/disables scrolling in response to movement of the mouse wheel. Wheel scrolling is enabled by default.

Parameters:
handleWheel - true if scrolling should be done automatically for a MouseWheelEvent, false otherwise.
Since:
1.4
See Also:
isWheelScrollingEnabled() sample code for javax.swing.JScrollPane.isWheelScrollingEnabled() definition code for javax.swing.JScrollPane.isWheelScrollingEnabled() , MouseWheelEvent sample code for java.awt.event.MouseWheelEvent definition code for java.awt.event.MouseWheelEvent , MouseWheelListener sample code for java.awt.event.MouseWheelListener definition code for java.awt.event.MouseWheelListener

paramString sample code for javax.swing.JScrollPane.paramString() definition code for javax.swing.JScrollPane.paramString()

protected String sample code for java.lang.String definition code for java.lang.String  paramString()
Returns a string representation of this JScrollPane. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Overrides:
paramString sample code for javax.swing.JComponent.paramString() definition code for javax.swing.JComponent.paramString() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
a string representation of this JScrollPane.

getAccessibleContext sample code for javax.swing.JScrollPane.getAccessibleContext() definition code for javax.swing.JScrollPane.getAccessibleContext()

public AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  getAccessibleContext()
Gets the AccessibleContext associated with this JScrollPane. For scroll panes, the AccessibleContext takes the form of an AccessibleJScrollPane. A new AccessibleJScrollPane instance is created if necessary.

Specified by:
getAccessibleContext sample code for javax.accessibility.Accessible.getAccessibleContext() definition code for javax.accessibility.Accessible.getAccessibleContext() in interface Accessible sample code for javax.accessibility.Accessible definition code for javax.accessibility.Accessible
Overrides:
getAccessibleContext sample code for javax.swing.JComponent.getAccessibleContext() definition code for javax.swing.JComponent.getAccessibleContext() in class JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent
Returns:
an AccessibleJScrollPane that serves as the AccessibleContext of this JScrollPane