O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required