File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Amrit Tiwana
Greenhorn
Posts: 24
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic