charvax.swing
Class JScrollPane
- EventListener, ScrollListener
provides a scrollable view of a component.
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT , _alignmentX , _alignmentY , _background , _cursesColor , _enabled , _focusListeners , _foreground , _keyListeners , _origin , _parent , _visible |
add , add , debug , doLayout , draw , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getCurrentFocus , getHeight , getInsets , getSize , getWidth , invalidate , isFocusTraversable , isValid , minimumSize , nextFocus , previousFocus , processKeyEvent , remove , requestFocus , setBackground , setFocus , setForeground , setHeight , setLayout , setSize , setSize , setWidth , validate |
addFocusListener , addKeyListener , contains , contains , debug , draw , getAlignmentX , getAlignmentY , getAncestorWindow , getBackground , getBounds , getCursesColor , getForeground , getHeight , getLocation , getLocationOnScreen , getName , getParent , getSize , getWidth , hasFocus , hide , invalidate , isDisplayed , isEnabled , isFocusTraversable , isTotallyObscured , isValid , isVisible , minimumSize , processEvent , processFocusEvent , processKeyEvent , processMouseEvent , repaint , requestFocus , requestSync , setBackground , setEnabled , setForeground , setLocation , setLocation , setName , setParent , setVisible , show , validate , validateCursesColor |
JScrollPane
public JScrollPane()
Creates an empty JScrollPane.
JScrollPane
public JScrollPane(Component component_)
Create a JScrollPane that displays the contents of the specified
component.
component_
- The component to be displayed. This component must
implement the Scrollable interface.
getViewport
public JViewport getViewport()
Returns the viewport of the component being displayed.
getViewportBorder
public Border getViewportBorder()
Returns a reference to the border around the JScrollPane's viewport.
scroll
public void scroll(ScrollEvent e_)
Called by a Scrollable object such as JTable or JList, when its state
changes in such a way that it may need to be scrolled.
- scroll in interface ScrollListener
setSize
public void setSize(int width_,
int height_)
Overrides the corresponding method in Container.
- setSize in interface Container
setViewportBorder
public void setViewportBorder(Border viewportBorder_)
Adds a border around the viewport.
setViewportView
public void setViewportView(Component component_)
Creates a viewport if necessary, and then sets its view.
component_
- the view to set in the viewport.
toString
public String toString()