ScrollPaneNameScrollPane
DescriptionThe ScrollPane class provides automatic scrolling of a child component. Class Definition
public class java.awt.ScrollPane extends java.awt.Container { // Constants public final static int SCROLLBARS_ALWAYS; public final static int SCROLLBARS_AS_NEEDED; public final static int SCROLLBARS_NEVER; // Constructors public ScrollPane(); public ScrollPane (int scrollbarDisplayPolicy); // Public Instance Methods public void addNotify(); public void doLayout(); public Adjustable getHAdjustable(); public int getHScrollbarHeight(); public Point getScrollPosition(); public int getScrollbarDisplayPolicy(); public Adjustable getVAdjustable(); public int getVScrollbarWidth(); public Dimension getViewportSize(); public void layout(); public String paramString(); public void printComponents (Graphics g); public final void setLayout (LayoutManager mgr); public void setScrollPosition (int x, int y); public void setScrollPosition (Point p); //Protected Instance Methods protected final void addImpl (Component comp, Object constraints, int index); } ConstantsSCROLLBARS_ALWAYSpublic final static int SCROLLBARS_ALWAYSAlways show the scrollbars. SCROLLBARS_AS_NEEDEDpublic final static int SCROLLBARS_AS_NEEDEDOnly show the scrollbars if the contents of the ScrollPane are larger than what is visible. SCROLLBARS_NEVERpublic final static int SCROLLBARS_NEVERDon't ever show the scrollbars. The ScrollPane can still be scrolled programmatically. ConstructorsScrollPanepublic ScrollPane()
public ScrollPane (int scrollbarDisplayPolicy)
Instance MethodsaddImplprotected final void addImpl (Component comp, Object constraints, int index)
addNotifypublic void addNotify()
doLayoutpublic void doLayout()
getHAdjustablepublic Adjustable getHAdjustable()
getHScrollbarHeightpublic int getHScrollbarHeight()
getScrollPositionpublic Point getScrollPosition()
getScrollbarDisplayPolicypublic int getScrollbarDisplayPolicy()
getVAdjustablepublic Adjustable getVAdjustable()
getVScrollbarWidthpublic int getVScrollbarWidth()
getViewportSizepublic Dimension getViewportSize()
layoutpublic void layout()
paramStringpublic String paramString()
printComponentspublic void printComponents (Graphics g)
setLayoutpublic void setLayout (LayoutManager manager)
setScrollPositionpublic void setScrollPosition (int x, int y)
public void setScrollPosition (Point p)
See AlsoAdjustable, Container, Point, Scrollbar |
|