Skip navigation.

Java 1.4.2 beta released

Sun Microsystems
Sun Microsystems

Seems soon was very soon. The Java version we mentioned the other day with support for GTK+ and Window Manager themes
is out in its first beta release. Be sure to get it and get your Java apps to look like they belong in your GNOME desktop. You find it on the JavaSoft
download page.
Update:
Here is en excerpt from the docs on sun.com:
Specifying the Look and Feel: Command Line

You can specify the look and feel at the command line by using the -D flag to set the swing.defaultlaf property. For example:

java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel MyApp

Specifying the Look and Feel: swing.properties

Yet another way to specify the current look and feel is to use the swing.properties file to set the swing.defaultlaf property. This file is located in the lib directory of the Java release. For example, if you're using the Java interpreter in javaHomeDirectoryin, then the swing.properties file (if it exists) is in javaHomeDirectorylib. Here is an example of the contents of a swing.properties file:

# Swing properties

swing.defaultlaf=com.sun.java.swing.plaf.gtk.GtkLookAndFeel

Re: GPL?

Are the themes released under the GPL?
It is a theme engine and no. If it is not under the java licence then most likely it is licensed under the LGPL or similar licenses.

And the new Java machine doesn't actually support GTK+ themes?
No 1.5 will and will also support propper Metacity themes for internal windows.

It has a few of them included in it's sourcecode?
It emulates the pixmap, stock and bluecurve engines.

Wouldn't that mean that JDK now has to be released under the GPL?
No, most of Gnome's codebase is LGPLed to allow for companies to use them as a base for propriatary programs. If a user loads up a theme that was licenced under the GPL Sun has no obligations to make Java GPL. That is like saying making a GPL program with Java makes Java have to be GPL too. GPL is a choice and not a way to force others to open code.