Choice : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

Choice
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:

http://mindprod.com/jgloss/choice.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\choice.html
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.

IP:[65.110.21.43]
Your face IP:[3.14.249.124]
You are visitor number