Chapter 15. Scrolling: Scrollbars and Scrollpanes

When you are developing applets, or any graphical user interface, for that matter, it usually doesn't take long before the need arises to scroll something. In the world of the AWT, that something is nearly always a component—usually a container—or an image.

Before the 1.1 version of the AWT, implementing scrolling required you to manually attach scrollbars to a container and then subsequently monitor scrollbar events in order to scroll the contents of the container accordingly, which was a fairly complicated and error-prone process.

Releases of the AWT from 1.1 ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.