JDK-8051891 : SWT cannot load native look&feel
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 7u65,8u11
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2014-07-24
  • Updated: 2015-06-03
  • Resolved: 2014-08-18
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.
JDK 7 JDK 8 JDK 9
7u71Fixed 8u25 b13Fixed 9Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java 1.7.0_65
java 1.8.0_11

ADDITIONAL OS VERSION INFORMATION :
Windows 7 64 bit Service Pack 1

A DESCRIPTION OF THE PROBLEM :
After the last java's update (version7 and version8) an application using SWT as UI library can't display the native windows look & feel, insteads uses a old style (win2k-like) style, maybe a fallback?
Problem is that some widget are displayed incorrectly. 

Opened a bug in SWT's bugzilla too: https://bugs.eclipse.org/bugs/show_bug.cgi?id=440287

REGRESSION.  Last worked in version 7u60

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Launch an SWT application via webstart

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The application uses the correct OS l&f
ACTUAL -
The application uses an old style win2k-like l&f

REPRODUCIBILITY :
This bug can be reproduced always.

SUPPORT :
YES


Comments
SQE OK to take the low risk fix to CPU14_04.
15-08-2014

SWT bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439759 There's a test application to reproduce the issue.
25-07-2014

With the release of 7u65 and 8u11, Java Web Start apps are launched from jp2launcher.exe instead of javaw.exe. SWT uses native controls, and since jp2launcher.exe does not list comctl32.dll v6 in its manifest, visual styles are not available. To have Windows controls with visual styles, comctl32.dll. To fix this issue, jp2launcher.exe has to include dependency on Microsoft.Windows.Common-Controls version 6.0.0.0.
25-07-2014