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

Summary

The AWT offers three components that implement the ItemSelectable interface: choices, checkboxes, and lists. Item selectables, of course, are components that contain zero or more selectable items. Item selectables are also capable of firing item events whenever an item is selected or deselected.

Choices and lists serve similar purposes; which one to employ in a given situation depends upon the needs of the moment. We have provided some guidelines for deciding whether to use a choice or list depending upon the requirements of the user interface in which they reside.

We've also provided some examples of common user interface components, such as a double list and a font panel for selecting a font.

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