- 论坛徽章:
- 0
|
!!请教大家一个有关JComboBox的问题!!
setEditable
public void setEditable(boolean aFlag)Determines whether the JComboBox field is editable. An editable JComboBox allows the user to type into the field or selected an item from the list to initialize the field, after which it can be edited. (The editing affects only the field, the list item remains intact.) A non editable JComboBox displays the selected item in the field, but the selection cannot be modified.
Parameters:
aFlag - a boolean value, where true indicates that the field is editable |
|