JDK-5077738 : Changing system preferences after switching from GTK L&F causes L&F mixup
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-07-23
  • Updated: 2004-10-13
  • Resolved: 2004-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u3Fixed 6 betaFixed
Changing the system font or theme, changes the appearance of SwingSet2 demo in Motif and Java L&Fs. The Frame and the toolbar appear to be rendered in Motif / Java L&Fs but the tabs appear to be rendered in GTK L&F. Please see the attached image. This has been occuring from b49 onwards on Linux / Solaris.

Also when JOptionPane demo is selected and JOptionPanes are displayed, the following messages are printed in the console:

com.sun.java.swing.plaf.gtk.GTKLookAndFeel/icons/Question.gif not found.

Steps to reproduce:
1. Launch SwingSet2 demo
2. Switch to GTK L&F
3. Switch back to Motif or Java L&F
4. In GNOME settings, change the application font
5. Switch to some other demo in SwingSet2. It can be seen that the demo tab is rendered in GTK L&F.

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon mustang FIXED IN: mustang INTEGRATED IN: mustang

EVALUATION Name: sh120115 Date: 07/23/2004 It appears that the PropertyChangeListener that is added to the Toolkit by GTKLookAndFeel, although a WeakReference, is not being removed when the look and feel is switched. ###@###.### 2004-07-23 ====================================================================== This bug was determined not to be a Tiger showstopper. It will be addressed in the Tiger release notes. ###@###.###, if your investigation reveals a serious reason why this should go back in Tiger, please let me know. ###@###.### 2004-07-23 The PCL should make sure the current look and feel is the same as what the PCL was created with, if it isn't this should remove the PCL and do nothing. The same problem exists with com.sun.java.swing.plaf.windows.DesktopProperty although the Window's DP won't cause any problems, it'll just force a reload of the UIs. ###@###.### 2004-07-23