This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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?