The JComboBox class creates a drop-down list of options that can be displayed to the user as part of a graphical user interface (GUI).
A combo box is a commonly used graphical user interface widget (or control). Traditionally, it is a combination of a drop-down list or list boxand a single-line editable textbox, allowing the user to either type a value directly into the control or choose from a list of existing options by scrolling. Today, the original distinction between a combo box and a drop-down list has often disappeared.
Combo boxes are typically applied to provide autocomplete or autotypefunctionality in a convenient way to the user.
Using the JCreator
//Options for the JcomboBox