JComboBox ComboBoxRenderer Request for Assistance

P

pitoniakm

greetings,

I would like to have a jComboBox on my toolbar that displays only a
icon for any selected combobox items (which will be String paths) when
not expanded, and only display the path without the icon in the list
when expanded. It appears that ComboBoxRenderer only allows for both
selected and list items to have icons and text, or just text, but not a
mix. Has anyone done this? A code snippet would be greatly appreciated
if so.

Many Thanks,

mp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top