How to disable an item in JComboBox to select

I have a JComboBox with 5 items in my application.
The problem, I don't know how to disable to select the 3th item. This 3th item should be visible but not selectable.
Thanks
olcayAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
olcayAuthor Commented:
Hi Viladi21,
thank You for the solution. I think i can solve with Your example my problem. But where can i get:
import jp.gr.java_conf.tame.swing.attribute.*; packages ?

Thanks
0
 
vladi21Commented:
just comment 2 lines about it
0
 
olcayAuthor Commented:
Hi Vladi21,

thanks for the comment. Your example is just that what i need.

Regards Olcay
0
All Courses

From novice to tech pro — start learning today.