Long story short, I'm coming back to Java after a while away. I need to stay with JDK 8 for an initial period for technical reasons although I'm intending to move to whatever is the then-latest in the next few months. In the meantime I need a JComboBox
whose items can be disabled. What I mean by this is they're painted in grey, and not able to be selected by the user.
I see this issue has been dealt with many times here over the years, and all the solutions seem, on admittedly quick examination, to have drawbacks. So I'm wondering, with fingers crossed, whether JComboBox
in its more recent incarnations has solved the problem. Strikes me as a reasonable thing to hope for, since it's a little pointless having a method setEnabled(boolean)
whose effect, both visually and functionally, is nil!
Can someone please confirm whether newer versions of Java have solved this problem?