Java default Swing stile
On Fri, 30 May 2008 22:04:55 +0200
"Dirk Uys" <firstname.lastname@example.org> wrote:
> On Fri, May 30, 2008 at 9:20 PM, Florian Philipp
> <lists@f_philipp.fastmail.net> wrote:
> > Hi list!
> > I've recently started both programming and using some Java
> > applications (not that I would have a choice ...).
> > Well, anyway, as it seems the default style for Swing is set to
> > "Metal", Java's own rather ugly and non-conforming variant. Is there
> > a way to set this to GTK, QT or whatever I have here other than
> > through the functionality in the programs themeselve?
> > Or is it really the Java-VM who's dictating what's the default for a
> > given platform (Windows/Linux)?
> > Thanks in advance!
> > Florian Philipp
> I think the JVM defaults to motif, it's supported on most platforms. I
> found this on the web:
> Yes, it is possible.
> In the ~/java/lib dir, create / edit a file with name
> Change the line:
> swing.defaultlaf=com.sun.java.swing.plaf.CURRENTLO OKANDFEEL
> swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLo okAndFeel
> Don't know if it works though?
No, unfortunately not. I also tried ~/.java
and /opt/sun-jdk-1.6.0.06/ but it's just ignored.