JDK-8038463 : Java Control Panel doesn't display correctly in high resolution
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 7,8,8u20
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-03-27
  • Updated: 2015-06-02
  • Resolved: 2014-06-24
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.
7u72Fixed 8u20Fixed 9 b24Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Java Control Panel (JCP) displays clipped controls if High DPI mode is in effect.

The issue can be reproduced in Windows if you set font scaling to 200%, with 150% all controls fit the JCP size.

To reproduce the issue:
1. Right-click empty space on Desktop and click "Screen resolution".
2. Click "Make text and other items larger or smaller" link.
3. In Windows 8: Click "Custom sizing options".
   In Windows 7: Click "Set custom text size (DPI)" in the left pane of the window.
4. Select 200% in "Scale to this percentage of normal size" *, and click OK.
5. Click Apply.
6. Logout and Login to apply the new settings.
7. Start Java Control Panel, or javacpl.exe.
8. You will see that "See the Security tab" link is clipped.

* I don't know whether "Use Windows XP style DPI scaling" option in Windows��7 has any effect. There's no such option in Windows 8.
There are several related issues. SQE OK to take the JDK-8048906, JDK-8050016 and JDK-8038463 all or none into PSU14_04 ZBB build.

Additional fixes to JCP in High DPI are provided under JDK-8050016.

After the fix is pushed to the repository, JDK-8048906 has to be pushed as well. JDK 8 and 9 have both fixes already, and JDK 7 has none of them at the moment.

I attached the screenshots of with the clipped text or too "crowded" panels. Security tab - High DPI.png The description of the selected security level is clipped at either side. In Exception Site List section, the prompt text to click "Edit Site List" is also clipped. Exception Site List - High DPI.png Text descriptions are also clipped. If you add a site, the text doesn't fit in the table row.

SQE is ok to take the fix in 8u20.

critical request for 8u20: this bug is affecting SQE nightly pass rate and should be fixed for 8u20. Note that this fix also fixes P1 issue https://bugs.openjdk.java.net/browse/JDK-8043262 which was closed as a duplicate of 8038463.

reassigning to Dmitry while Alexey is in vacation

The fix is to set the predefined width if the computed minimal size is less than the fixed width. Otherwise the width of JCP window is set to the arithmetical mean of minimal and preferred widths: (minimal.width + preferred.width) / 2. The window looks too small and crowded if its width is set to minimal.width.

JCP sets a fixed width. When High DPI is in effect, fonts become larger and some controls do not fit into the specified width.