JDK-6178745 : Include javaw.exe.manifest to enable native controls with XP visual styles
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0,7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows,windows_xp
  • CPU: x86
  • Submitted: 2004-10-13
  • Updated: 2011-01-19
  • Resolved: 2008-01-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.
JDK 7
7Resolved
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
Please include an appropriate javaw.exe.manifest file in every (Windows) JDK
or JRE directory which contains javaw.exe.

This is needed in order to enable Java applications using native Windows
controls via JNI (e.g. SWT, Eclipse) to have their widgets styled with the
correct XP look.

For details, see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/cookbook.asp

  See also:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=45918


JUSTIFICATION :
Without these manifest files being part of a standard JDK/JRE install, app
developers have to either write special code to find all affected */bin directories
and create/copy the files there themselves or instruct their users how to do so.

Both workarounds are cumbersome and employing them may not always be
possible.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The VM (javaw.exe) should indicate to the OS that ComCtl32.dll version 6 should be used if it is available. Native widgets should be styled correctly.

ACTUAL -
Native widgets do not pick up the Windows XP visual styles correctly.
###@###.### 10/13/04 21:23 GMT

Comments
EVALUATION It is slightly more complicated than that - this will also change the style and windows classses of AWT widgets, and we are not yet ready for that. ###@###.### 10/29/04 08:50 GMT RE, please coordinate with ###@###.### as the owner of the launcher code (if any changes are necessary to launcher). ###@###.### 11/1/04 11:29 GMT
29-10-2004