JDK-6467869 : sun.awt.windows.ThemeReader.flush is invoked too often for javax.swing.JFileChooser
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2006-09-06
  • Updated: 2019-12-17
  • Resolved: 2019-12-17
Related Reports
Relates :  
Description
sun.awt.windows.ThemeReader caches themes data which is flushed on
ThemeReader.flush() call.  ThemeReader.flush() is invoked from
sun.awt.windows.WDesktopProperties on any desktop property change. For
some reason when JFileChooser is up WDesktopProperties is notified
about property change constantly.  
It seems there are two problems there:
1. JFileChooser causes desktop property change notification
2. According to MSDN documentation theme data should be valid until window receives
WM_THEMECHANGED notification. Thus ThemeReader.flush() should not be
called more often that that. 

How to reproduce:
1. Put debug output into sun.awt.windows.ThemeReader.flush
2. build java
3. run SwingSet2
4. change l&f to Windows l&f.
5. Run JFileChooserDemo

Comments
EVALUATION This is not a showstopper so I'm pushing it off to update 1. *** (#1 of 1): [ UNSAVED ] ###@###.###
12-10-2006