swing.properties should be in /etc, so the Java Look and Feel can be changed

Bug #229112 reported by Richard Laager
8
Affects Status Importance Assigned to Milestone
sun-java6 (Debian)
Fix Released
Unknown
sun-java6 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'd like to see a symlink from that path to /etc/java-6-sun/swing.properties (or some other way to make the JRE honor that path) so that I can set this in /etc (where settings belong) instead of in /usr/lib/jvm/...

Changed in sun-java6:
status: Unknown → New
Revision history for this message
arno_b (arno.b) wrote :

I do not agree: as Java developer I can say that the gtk+ laf still has a lot of bugs on Linux, and Sun does not seem to be very quick to fix them.

Revision history for this message
Carlos Correia (carlos-m16e) wrote :

I don't agree either... I'm a KDE user ;-)

Anyway, I do prefer the default Java L&F. And it's not difficult to change :)

Matthias Klose (doko)
Changed in sun-java6:
status: New → Won't Fix
Revision history for this message
Richard Laager (rlaager) wrote :

Since this was closed without comment, I'm going to assume the objection was the same as those already voiced: to changing the default L&F. So, let's try again with the second part of the request.

description: updated
Changed in sun-java6:
status: Won't Fix → New
Revision history for this message
resplin (resplin) wrote :

I think the request in the new description makes a lot of sense (though it probably would have been better as a new bug report).

The user should be able to change the default look and feel be editing something in /etc. There are already a number of java properties files in /etc/java-6-sun that allow manipulation of other configuration settings.

As a work-around, I created /etc/java-6-sun/swing.properties with the swing.defaultlaf setting, and symlinked it to /usr/lib/jvm/java-6-sun-1.6.0.06/jre/lib. For anyone getting here via Google, the correct value for Nimbus is:
com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel
(beware though, it can cause Null Pointer Exceptions, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6800801)

Changed in sun-java6 (Debian):
status: New → Confirmed
Changed in sun-java6 (Debian):
status: Confirmed → Fix Committed
Changed in sun-java6 (Debian):
status: Fix Committed → Fix Released
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Is this fixed now in Ubuntu?

Changed in sun-java6 (Ubuntu):
status: New → Incomplete
Richard Laager (rlaager)
Changed in sun-java6 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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