Java Reference
In-Depth Information
After dropping our drop-down list component into page and adding a
corresponding label component our page now looks like this:
NetBeans automatically assigns some default items to our drop-down list. We need
to modify them to suit our needs. We can accomplish this by right-clicking on the
drop-down list and selecting
Configure Default Options...
.
At this point a window pops up allowing us to enter options for our drop-down. By
default we should see three options labeled:
Item 1
,
Item 2
, and
Item 3
, with values
of
item1
,
item2
, and
item3
, respectively. Clicking on each value makes the field
editable; we can modify each one to fit our needs.