[wishlist] make gtk laf default for icedtea-java

Bug #183139 reported by fragro
16
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Please change default config to use gtk-laf instead of metal-laf. Thanks! :)

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

package hint: icedtea-java7

Changed in icedtea-java7:
importance: Undecided → Wishlist
Matthias Klose (doko)
Changed in openjdk-6:
status: New → Triaged
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

I second this request. Java apps with GTKLookAndFeel look much better integrated than the ones with MetalLookAndFeel.

I think all we need to do is ...
1. Add a /etc/java-6-openjdk/swing.properties file with following content.
# Swing properties
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
2. Add a symlink to this file at /usr/lib/jvm/java-6-openjdk/jre/lib/

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Please find attached screenshot of an application 'electric' with gtk look and feel.

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Please find attached screenshot same application 'electric' with metal look and feel.

Revision history for this message
Konrad Twardowski (kdt-deactivatedaccount) wrote :

Hi,
Unfortunately the GTK+ LAF is NOT fully compatible with default Metal LAF,
and in some cases may cause major application problems (including crashes and data lost).
Even the new Nimbus LAF (included in Java 6 Update 10) is not set as default to preserve backward compatibility.

However, there are two good solutions:

* User/Package Maintainer can modify particular application shortcut to add
"-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel" parameter.
Example command:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar application.jar

* Java Developers can set Look And Feel to:
UIManager.getSystemLookAndFeelClassName()
The getSystemLookAndFeelClassName() method
automatically returns
"com.sun.java.swing.plaf.gtk.GTKLookAndFeel" (GTK+ LAF) on Linux/GNOME platform.

Revision history for this message
kenden (kenden) wrote :

On Intrepid, the following is true:

[quote] (suggestion from 2008-08-09, see above)
I think all we need to do is ...
1. Add a /etc/java-6-openjdk/swing.properties file with following content.
# Swing properties
swing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
2. Add a symlink to this file at /usr/lib/jvm/java-6-openjdk/jre/lib/
[/quote]

But Java applications don't use the Swing GTK look and feel by default.

Revision history for this message
Matthias Klose (doko) wrote :

the new properties file is added. with the default commented out. now people can change it on their own. I intend to keep the nimbus l&f for lucid.

Changed in openjdk-6 (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.