Chapter 6 Examples


Sliders

Sliders.java creates and displays a number of sliders with various attributes.

Change Events

Changes.java uses a ChangeListener to receive notifications of changes in a slider's value. ButtonModels.java uses a ChangeListener to receive notifications of changes in the state of a ButtonModel.

Scroll Panes

AutoScrollExample.java demonstrates the creation and usage of a JScrollPane. The image logo.gif is used.


Copyright © 1998, John Wiley and Sons, Inc.