Thanks. I guess my problem is a special case of the Bug 6629522. Here is a description how I did reproduce it on a Acer branded Win8 laptop:
1) Start the "SwingSet2.jar" supplied with the JDK1.7.0_17 demos on Windows 8 with the default desktop theme 2) Change the LAF to the plattform LAF by clicking on "Look & Feel | Windows" 3) Change the theme to a high contrast theme in the Windows settings while SwingSet2 demo still running 4) SwingSet2 demo is now not properly repainting its components Regards, Heiko -----Original Message----- From: Alexander Scherbatiy [mailto:[email protected]] Sent: Donnerstag, 28. März 2013 09:15 To: Heiko Wagner Cc: Anthony Petrov; [email protected] Subject: Re: <Swing Dev> [Fwd: JDK1.7u17 Windows 8 compatibility issue: platform LAF does not work] We have the similar issue that can have the same roots: 6629522 NPE in XPStyle$Skin.getWidth when changing between Win XP style and Win classic style I will add your test case to the issue. Thanks, Alexandr. > -------- Original Message -------- > Subject: JDK1.7u17 Windows 8 compatibility issue: platform LAF does > not work > Date: Wed, 27 Mar 2013 11:25:52 +0100 > From: Heiko Wagner <[email protected]> > To: <[email protected]> > > I am just facing a compatibility issue with Java 7u17 and Windows 8. > When I > am in "desktop mode" and want to set the platform LAF everything works in > case the default Windows theme is set (the one that looks similar to > Win7). > When Windows 8 is set to a high contrast theme (black background + > whil/yellow foreground), setting of the platform LAF no loger works. > Here is > the stack trace: > > java.lang.NullPointerException > at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(Unknown Source) > at com.sun.java.swing.plaf.windows.XPStyle$Skin.getWidth(Unknown Source) > at > com.sun.java.swing.plaf.windows.WindowsPopupMenuUI.getGutterWidth(Unknown > Source) > at > com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initVistaComponentDefault > > s(Unknown Source) > at > com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initComponentDefaults(Unk > > nown Source) > at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(Unknown Source) > at javax.swing.UIManager.setLookAndFeel(Unknown Source) > at javax.swing.UIManager.setLookAndFeel(Unknown Source) > > Is this problem already known and scheduled for a later update version? > > Regards, > Heiko
