Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8055453

Not possible to specify a Java application as per-monitor DPI aware in Windows 8

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u65, 8, 9
    • Fix Version/s: tbd_major
    • Component/s: client-libs
    • Labels:

      Description

      A DESCRIPTION OF THE REQUEST :
      In Windows 8.1 per monitor DPI awareness / scaling was introduced (see http://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx ), which currently cannot be turned off in a Java application.

      As far as I understand the system property sun.java2d.dpiaware can be used to specify a Java application as System-DPI aware. This system property only accepts true or false. I think the best solution would be to extend the system property with the options that can be also specified with the help of the Windows manifest file: False, True, Per-monitor, True/PM (see http://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx )

      JUSTIFICATION :
      We develop a medical application and therefore rely on the correct display of our application. However, the display is wrong when the Windows per monitor scaling is active. Moreover, in our application the GUI is scaled well in our code. Thus, Windows shouldn't scale our Java/Swing application.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A Java application can be specified as Per-monitor DPI aware.
      ACTUAL -
      A Java application cannot be specified as Per-monitor DPI aware.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexsch Alexander Scherbatiy (Inactive)
                Reporter:
                alexp Alexander Potochkin (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: