public class JScrollPane extends Container implements ScrollListener
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JScrollPane()
Creates an empty JScrollPane.
|
JScrollPane(Component component_)
Create a JScrollPane that displays the contents of the specified
component.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(int level_) |
void |
draw()
Draw all the components in this container.
|
JViewport |
getViewport()
Returns the viewport of the component being displayed.
|
Border |
getViewportBorder()
Returns a reference to the border around the JScrollPane's viewport.
|
Dimension |
minimumSize()
Overrides the minimumSize() method of Container.
|
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.
|
void |
setSize(Dimension size_)
Overrides the corresponding method in Container.
|
void |
setSize(int width_,
int height_)
Overrides the corresponding method in Container.
|
void |
setViewportBorder(Border viewportBorder_)
Adds a border around the viewport.
|
void |
setViewportView(Component component_)
Creates a viewport if necessary, and then sets its view.
|
java.lang.String |
toString() |
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isFocusTraversable, isValid, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setBounds, setBounds, setBounds, setFocus, setForeground, setHeight, setLayout, setWidth, validate
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, isDisplayed, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, show, validateCursesColor
public JScrollPane()
public JScrollPane(Component component_)
component_
- The component to be displayed. This component must
implement the Scrollable interface.public void setViewportView(Component component_)
component_
- the view to set in the viewport.public JViewport getViewport()
public void setSize(int width_, int height_)
public void setSize(Dimension size_)
public Dimension minimumSize()
minimumSize
in class Container
public void scroll(ScrollEvent e_)
scroll
in interface ScrollListener
public void draw()
Container
public void setViewportBorder(Border viewportBorder_)
public Border getViewportBorder()
public java.lang.String toString()
toString
in class java.lang.Object