ScrollPane.
The peer interfaces are intended only for use in porting
the AWT. They are not intended for use by application
developers, and developers should not implement peers
nor invoke any of the peer methods directly on the peer
instances.
| Modifier and Type | Method and Description |
|---|---|
| public void | childResized(int
the new width of the child component w, int the new height of the child component h)Called when the child component changes its size. |
| public int | Returns: the height of the horizontal scroll barReturns the height of the horizontal scroll bar. |
| public int | Returns: the width of the vertical scroll barReturns the width of the vertical scroll bar. |
| public void | setScrollPosition(int
the X coordinate of the scroll position x, int the Y coordinate of the scroll position y)Sets the scroll position of the child. |
| public void | setUnitIncrement(Adjustable
the scroll pane adjustable object adj, int the unit increment u)Sets the unit increment of one of the scroll pane's adjustables. |
| public void | setValue(Adjustable
the scroll pane adjustable object adj, int the value to set v)Sets the value for one of the scroll pane's adjustables. |
| childResized | back to summary |
|---|---|
| public void childResized(int w, int h) Called when the child component changes its size.
| |
| getHScrollbarHeight | back to summary |
|---|---|
| public int getHScrollbarHeight() Returns the height of the horizontal scroll bar.
| |
| getVScrollbarWidth | back to summary |
|---|---|
| public int getVScrollbarWidth() Returns the width of the vertical scroll bar.
| |
| setScrollPosition | back to summary |
|---|---|
| public void setScrollPosition(int x, int y) Sets the scroll position of the child.
| |
| setUnitIncrement | back to summary |
|---|---|
| public void setUnitIncrement(Adjustable adj, int u) Sets the unit increment of one of the scroll pane's adjustables.
| |
| setValue | back to summary |
|---|---|
| public void setValue(Adjustable adj, int v) Sets the value for one of the scroll pane's adjustables.
| |