Choice : Java Glossary


a pulldown menu not part of the top menu bar, typically used to select between options rather than to invoke a command. A Choice component displays all the possible options when clicked. You can select only one of them. In AWT (Advanced Windowing Toolkit) you use a Choice or java.awt.List. In Swing you use a JComboBox or JList.

Choice does not support the user picking a combo, more than one choice.

Since AWT uses native controls to implement Choice, under Vista, the arrow to click your choice camouflages into the background until you click it, then it fades to dark, where you have to click it twice more to make your selection. In contrast JComboBox behaves uniformly according the look and feel on all platforms.

Learning More

Oracle’s Javadoc on Choice class : available:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number