• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to prevent selection of few item(s) in JComboBox?

 
Amrit Tiwana
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm facing a problem for prevent selection of few item(s) in JComboBox. I have used customised ListCellRenderer, which mark those items as disabled.
But problem is that if I press mouse above those items, then even disbaled item get selected in JCombobox.
I need these item(s) should not be selectable by mouse or keyboard.

Thanks
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic