This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes how to disable combobox items Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to disable combobox items" Watch "how to disable combobox items" New topic
Author

how to disable combobox items

Anuj Joshi
Greenhorn

Joined: Feb 05, 2009
Posts: 22
Hi,

How to disable perticular item in comboBox.
I have a ComboBox with names stored in it.
on some codition I have to make some names disable.
So how can I do this?
Christian Dillinger
Ranch Hand

Joined: Jul 20, 2009
Posts: 189
Implement it in your model so it doesn't list them. But that's no topic for this forum.... Goto Swing or AWT.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to disable combobox items
 
It's not a secret anymore!