1. Define your own ComboBoxModel. You could subclass DefaultComboBox model, adding methods isItemDisabled and setItemDisabled, and override method setSelectedItem. 2. You probably want disabled items rendered differently. Define your own ListCellRenderer.
There is no emoticon for what I am feeling!
Joined: Dec 03, 2001
I'm having some difficulties with your suggestions... Can you please give me a working example?
Thanks in advance, Amit. [ January 24, 2006: Message edited by: Amit Rosner ]
Joined: Sep 16, 2005
My hints were explicit, and here at JavaRanch the emphasis is on teaching folks to fish, not giving them a fish, or something like that...
When you tried to follow the suggestions what went wrong?
subject: How do I disable some of the elements in my JComboBox?