Poldi
February 16th, 2006, 04:56 AM
hi, all.
since JRE/JDK 1.5 the default LnF on Linux Java installations is the Gtk-LnF. as of 1.5 there are not many Gtk-engines supported by the LnF beyond Pixmap so the result is quite ugly on most systems. I am aware that this will change with 1.6.
now my problem is that I could normally adjust this by specifying swing.defaultlnf in swing.properties (in $JRE7lib) or by passing the same parameter to my java binary on application start.
this does not work in Ubuntu 5.10. no matter what I try (swing.defaullnf=javax.swing.plaf.metal.MetalLookA ndFeel or any of the JGoodies Looks LnFs [yes, they are in $classpath]) it still defaults to Gtk.
what makes this worse is that I develop Swing applications in Netbeans 5.0 and while Netbeans itself starts with Metal (programatically set by NetBeans), the developed applications that are started from Netbeans again follew the seemingly unchangable default: Gtk. and they break with any modern Gtk-Theme-engine. when I say break, I mean: they cannot be started from within NetBenas at all, as opposed to defaulting to the simple-Theme like Swing-apps do that I start from the desktop.
I have no other Linux distributions to test right now. can anybody confirm unchangable default Lnf==GtkLookAndFeel on Linux 2.6 with JDK 1.5.0_06? or does anybody know how to change this in a Ubuntu/Debian distribution other that with swing.properties?
I installed the JDK with
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
in /usr/lib/
the problem is reproducable on different machines with fresh installs.
suggestions?
kind regards,
Carsten
since JRE/JDK 1.5 the default LnF on Linux Java installations is the Gtk-LnF. as of 1.5 there are not many Gtk-engines supported by the LnF beyond Pixmap so the result is quite ugly on most systems. I am aware that this will change with 1.6.
now my problem is that I could normally adjust this by specifying swing.defaultlnf in swing.properties (in $JRE7lib) or by passing the same parameter to my java binary on application start.
this does not work in Ubuntu 5.10. no matter what I try (swing.defaullnf=javax.swing.plaf.metal.MetalLookA ndFeel or any of the JGoodies Looks LnFs [yes, they are in $classpath]) it still defaults to Gtk.
what makes this worse is that I develop Swing applications in Netbeans 5.0 and while Netbeans itself starts with Metal (programatically set by NetBeans), the developed applications that are started from Netbeans again follew the seemingly unchangable default: Gtk. and they break with any modern Gtk-Theme-engine. when I say break, I mean: they cannot be started from within NetBenas at all, as opposed to defaulting to the simple-Theme like Swing-apps do that I start from the desktop.
I have no other Linux distributions to test right now. can anybody confirm unchangable default Lnf==GtkLookAndFeel on Linux 2.6 with JDK 1.5.0_06? or does anybody know how to change this in a Ubuntu/Debian distribution other that with swing.properties?
I installed the JDK with
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
sudo dpkg -i sun-j2re1.5_1.5.0+update06_i386.deb
in /usr/lib/
the problem is reproducable on different machines with fresh installs.
suggestions?
kind regards,
Carsten