JComboBox
The class JComboBox replaces Choice from the AWT. It combines a drop-down menu with a TextField. The user can select an item from the menu not only by clicking on it, but also (if setEditable(true) has been called) by typing an item into the TextField.
The JComboBox can be constructed by giving the constructor an array of Strings (or icons), or by using addItem to add them to the set.
Otherwise, the class has similar methods to Choice, such as getSelectedItem().