| Author |
Making a JComboBox uneditable
|
Patrick Mugabe
Ranch Hand
Joined: Jan 08, 2002
Posts: 132
|
|
Hi, How can I make a JComboBox unEditable, I only know of setting a TextField to be uneditable by using setEditable(false).
|
 |
Tamizh Selvan
Greenhorn
Joined: Oct 10, 2003
Posts: 15
|
|
u can make ur jcombobox uneditable by calling its setEnabled(false). Marcus
|
 |
Gregg Bolinger
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
|
A JComboBox is unEditable by default. You can make it editable with the setEditable(boolean) command. If you are talking about enabled or disabled you can set that by the setEnabled(boolean) method. Setting a JComboBox enabled(false) will not allow the drop down to be activated. Editing means you can type in your own text into the text field of the Combo Box.
|
 |
 |
|
|
subject: Making a JComboBox uneditable
|
|
|