I was asked to start a new thread on this question, which I posed elsewhere: Why does my Java GUI stuff look so poor on Linux? I am using native Look and Feel, which works fine in Win XP and Vista, but in Java it seems to not paint properly. I am hoping that someone who has had some experience with this may recognize this as a familiar problem. I don't mean for this to be a discussion of how to subclass JButton, or what-not. I just mean that if I take a .jar file that looks good elsewhere, what might be happening (what might I have forgotten?) that would render that Linux version poorly? For example, when I install (apt-get) Netbeans, it also installed Java. Sun's Java? How can I be sure? If not, that may explain it. Or perhaps the problem lies elsewhere. (I'm fairly new to Linux, and very new to Ubuntu....) Anyway, I'd love to hear (read) ideas on this. Thanks!
I'm not sure exactly what you're seeing, but different versions of Java WILL look different. I use Java on all of my machines. I have an old machine that I installed Xubuntu on, and I installed GNU's java compiler. It worked fine, but did look kind of cheap. I later put a new hard drive in and reinstalled Xubuntu. This time I installed Sun's java. Still doesn't have the look of a Windows GUI, but it DOES look different from the GNU version. I have Netbeans recently installed on this (Ubuntu) machine, but I haven't played with it yet so i don't know what this implementation looks like. I am familiar with Netbeans from my Windows use, but I use the command line and VIM editor for Java programming on my old machine. Hold on.... OK it DOESN'T look like the Netbeans install grabs the Sun java packages - it is a hodgepodge of stuff, some of which is from GNU. That could explain it. You can check yourself by opening Synaptic Package Manager, searching for "java", then looking to see which packages are installed.
Java's "GTK+" theming is crap. It'd be better to just use good old Metal.
A Fedora user
Thank you, HotCupOfJava. The Synaptic Package Manager says that the sun-java6-jdk is not installed. Thus, I'm probably using OpenJava (or whatever that was called).
Yeah - I believe the "Metal" theme is the IcedTea default......
Originally Posted by dhimes Thank you, HotCupOfJava. The Synaptic Package Manager says that the sun-java6-jdk is not installed. Thus, I'm probably using OpenJava (or whatever that was called). No, that's the old non-free Java 1.6. openjdk-6-* is the OpenJDK one. Originally Posted by HotCupOfJava Yeah - I believe the "Metal" theme is the IcedTea default...... It's Java's native LaF.
So, is openjdk-6-jre Sun's version? I thought they just open-sourced what they had.
Originally Posted by dhimes So, is openjdk-6-jre Sun's version? I thought they just open-sourced what they had. Suprisingly, no. I think it's a forked version of Sun's OpenJDK with the non-free bits replaced. OpenJDK when released had about 95% source available, meaning the other 5 had to be replaced.
OK--thanks for the info. My best move is to try Sun's version, and see if it renders better.
Yeah - I guess what I should have said was "Metal is the original, and thats what IcedTea uses"......But hey - I've never paid close attention to the GUI themes - I'm just glad the code works.
View Tag Cloud
Ubuntu Forums Code of Conduct