aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to prevent selection of  few item(s)  in JComboBox? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to prevent selection of  few item(s)  in JComboBox?" Watch "How to prevent selection of  few item(s)  in JComboBox?" New topic
Author

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

Amrit Tiwana
Greenhorn

Joined: Jun 03, 2004
Posts: 24
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
 
subject: How to prevent selection of few item(s) in JComboBox?