Java Reference
In-Depth Information
The HTML file for this program contains the following code:
<HTML>
<HEAD>
<TITLE>WELCOME</TITLE>
</HEAD>
<BODY>
<OBJECT code = "GrandWelcomeRButton.class" width = "440"
height = "200">
</OBJECT>
</BODY>
</HTML>
Sample Run: Figure 12-15 is a sample run showing check boxes and radio buttons.
FIGURE 12-15
Sample run showing check boxes and radio buttons
JComboBox
A combo box, also known as a drop-down list, is used to select an item from a list of
possibilities. A
JComboBox
generates an
ItemEvent
monitored by an
ItemListener
,
which invokes
the method
itemStateChanged
exactly as
in
JCheckBox
or
JRadioButton
.
Table 12-12 lists some constructors of the
class
JComboBox
.
Search WWH ::
Custom Search