TOC PREV NEXT INDEX



ComboBox (JComboBox)


A JComboBox is a combination of a Choice and a TextField. The user can select from a set of pre-defined values or edit the contents directly (if the editable checkbox is selected). The Maximum rows entry field indicates the number of rows that are visible when the ComboBox is opened.

The ComboBox can be used in two ways. The first is by specifying a static set of text entries in the 'JComboBox items' area (each one on a line). The second, and more powerful, is to use a ComboBoxModel. A ComboBoxModel lets the user fully describe the contents of the ComboBox in an abstract manner to create dynamic contents. See the JDK API reference and documentation for further details.

A ComboBox will generate an ItemEvent whenever the user chooses an item.

A ComboBox will generate an ActionEvent whenever the user presses the 'Enter' key while the Listbox has the focus.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX