List extends  java.awt.
The List component presents the user with a scrolling list of text items. The list can be set up either so that the user can pick one item or to pick multiple items. Clicking 1 on an item that isn't selected selects it. Clicking on an item that is already selected deselects it. In the above example, since the second argument when creating the new scrolling list is false, only one item can be selected at a time from the scrolling list.