Basic HTML version of Foils prepared 19 July 97

Foil 29 New AWT Component: ScrollPane

From Overview of JDK Version 1.1 Extensions CPS616 -- Information Track of CPS -- Spring Semester 97. by Nancy J. McCracken


ScrollPane is a container that can hold a component area bigger than it shows on the screen. It provides vertical and horizontal scrollers.
Quite easy to create and add as you would any other container.
Main difference is that it doesn't have a "natural" size so you should call setSize(n, m) to set its size to n by m pixels.



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998