All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.swing.JScrollPane
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.swing.JComponent
|
+----java.awt.swing.JScrollPane
- public class JScrollPane
- extends JComponent
- implements ScrollPaneConstants, Accessible
JScrollPane.ScrollBar-
cornerKeywords-
JScrollPane()
-
JScrollPane(Component)
-
JScrollPane(Component, int, int)
-
JScrollPane(int, int)
-
createHorizontalScrollBar()
- Used by ScrollPaneUI implementations to create the horizontal
scrollbar.
createVerticalScrollBar()
- Used by ScrollPaneUI implementations to create the vertical
scrollbar.
createViewport()
- Returns 'new JViewport()' by default.
getAccessibleRole()
- Get the role of this object.
getColumnHeader()
-
getCorner(String)
-
getHorizontalScrollBar()
-
getHorizontalScrollBarPolicy()
-
getRowHeader()
-
getUI()
-
getUIClassID()
-
getVerticalScrollBar()
-
getVerticalScrollBarPolicy()
-
getViewport()
-
getViewportBorder()
-
isOpaque()
- Returns true if this component is completely opaque.
setColumnHeader(JViewport)
-
setColumnHeaderView(Component)
- Creates a ColumnHeader viewport if neccessary and then sets
its view.
setCorner(String, Component)
-
setHorizontalScrollBarPolicy(int)
-
setRowHeader(JViewport)
-
setRowHeaderView(Component)
- Creates a RowHeader viewport if neccessary and then sets
its view.
setUI(ScrollPaneUI)
-
setVerticalScrollBarPolicy(int)
-
setViewport(JViewport)
-
setViewportBorder(Border)
- Add a border around the viewport.
setViewportView(Component)
- Creates a viewport if neccessary and then sets its view.
updateUI()
- Notification from the UIFactory that the L&F
has changed.
cornerKeywords
protected static final String[] cornerKeywords
JScrollPane
public JScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
JScrollPane
public JScrollPane(Component view)
JScrollPane
public JScrollPane(int vsbPolicy,
int hsbPolicy)
JScrollPane
public JScrollPane()
getUI
public ScrollPaneUI getUI()
setUI
public void setUI(ScrollPaneUI ui)
updateUI
public void updateUI()
- Notification from the UIFactory that the L&F
has changed.
- Overrides:
- updateUI in class JComponent
getUIClassID
public String getUIClassID()
- Returns:
- "ScrollPaneUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()
setVerticalScrollBarPolicy
public void setVerticalScrollBarPolicy(int x)
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()
setHorizontalScrollBarPolicy
public void setHorizontalScrollBarPolicy(int x)
getViewportBorder
public Border getViewportBorder()
- Returns:
- the value of the viewportBorder property.
- See Also:
- setViewportBorder
setViewportBorder
public void setViewportBorder(Border viewportBorder)
- Add 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 effect the viewportBorder property.
The default value of this property is computed by the look
and feel implementation.
This is a JavaBeans bound property.
- See Also:
- getViewportBorder, setViewport
createHorizontalScrollBar
public JScrollBar createHorizontalScrollBar()
- Used by ScrollPaneUI implementations to create the horizontal
scrollbar. Returns a JScrollPane.ScrollBar by default. Subclasses
may override this method to force ScrollPaneUI implementations to
use a JScrollBar subclass.
- Returns:
- The horizontal JScrollBar
- See Also:
- JScrollPane.ScrollBar
createVerticalScrollBar
public JScrollBar createVerticalScrollBar()
- Used by ScrollPaneUI implementations to create the vertical
scrollbar. Returns a JScrollPane.ScrollBar by default. Subclasses
may override this method to force ScrollPaneUI implementations to
use a JScrollBar subclass.
- Returns:
- The vertical JScrollBar
- See Also:
- JScrollPane.ScrollBar
getHorizontalScrollBar
public JScrollBar getHorizontalScrollBar()
getVerticalScrollBar
public JScrollBar getVerticalScrollBar()
createViewport
protected JViewport createViewport()
- Returns 'new JViewport()' by default. Used to create the
viewport (as needed) in setViewportView(), setRowHeaderView(),
and setColumnHeaderView(). Subclasses my override this method
to return a subclass of JViewport.
getViewport
public JViewport getViewport()
setViewport
public void setViewport(JViewport x)
setViewportView
public void setViewportView(Component view)
- Creates a viewport if neccessary and then sets its view.
getRowHeader
public JViewport getRowHeader()
setRowHeader
public void setRowHeader(JViewport x)
setRowHeaderView
public void setRowHeaderView(Component view)
- Creates a RowHeader viewport if neccessary and then sets
its view.
getColumnHeader
public JViewport getColumnHeader()
setColumnHeader
public void setColumnHeader(JViewport x)
setColumnHeaderView
public void setColumnHeaderView(Component view)
- Creates a ColumnHeader viewport if neccessary and then sets
its view.
getCorner
public Component getCorner(String key)
setCorner
public void setCorner(String key,
Component x)
isOpaque
public boolean isOpaque()
- Returns true if this component is completely opaque.
- Overrides:
- isOpaque in class JComponent
getAccessibleRole
public AccessibleRole getAccessibleRole()
- Get the role of this object.
- Returns:
- an instance of AccessibleRole describing the role of the object
- Overrides:
- getAccessibleRole in class JComponent
- See Also:
- AccessibleRole
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature