• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!