The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by ian]


Hi,

I would like to ask if there is a way to prevent elements in a Combobox from
being selected by the user *without* removing them from the list. Ideally I
would like to 'ghost' or 'shadow' them out so the user sees them in a diferent
rendering to the other selectable items in the list.

Many, many thanks. This is a neat forum.

Cheers
import-bot (20211) [Avatar] Offline
#2
Re: JComboBox, element hiding
[Originally posted by matt]

Yes you can do this. Please go here:

http://www.spindoczine.com/sbe

..and look at the first two examples in chapter 9.
The second example shows how you can do this, but it
builds on the first examples so you'll need to
read them both.