I have got the following issue with combo-box drawing in java applications (including NetBeans IDE):
I have Ubuntu 8.04.1 with “human” theme and “extra” visual effects turned on. Java version is jdk 1.6.0_10-rc. I don’t remember for sure but it seems I had the same issue on my previous Ubuntu installation 7.10 with jdk 6u02.
Any ideas how to fix it? Everywhere in operating system interface everything is OK with combos.
Update. The solution seemed to lay on the surface. The idea was to change the default jvm look and feel and force NetBeans use it. Default look and feel for swing applications can be changed as described here in j2se tutorial. In my case the path of swing.properties file was the following: /opt/jdk1.6.0_10/lib/swing.properties. All the swing applications I ran had the specified look and feel. But not NetBeans itself. That’s because the IDE uses a UIManager to specify look and feel and to override it I need to dive deeper. I don’t need it. But if you wish - take a look at this discussion. Here you can find some some ideas.
