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

Use "Per-Monitor V2" High DPI awareness for Windows 10 v1703

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 11
    • Component/s: client-libs
    • Labels:

      Description

      Windows 10 Creators Update (1703) provides improved support for High DPI and recommends using "Per-Monitor V2" DPI awareness. [1]

      Swing supports Per-Monitor v1 DPI awareness, and Swing UI scales appropriately to monitor scaling. However, non-client area does not scale. Using "Per-Monitor V2" DPI awareness resolves this problem.

      The solution is to add <dpiAwareness> element [3] in addition to <dpiAware> element [2] to application manifest.

      [1] https://msdn.microsoft.com/library/windows/desktop/mt843498(v=vs.85).aspx#Per-Monitor_and_Per-Monitor__V2__DPI_Awareness_
      [2] https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191(v=vs.85).aspx#dpiAware
      [3] https://msdn.microsoft.com/en-us/library/windows/desktop/aa374191(v=vs.85).aspx#dpiAwareness

        Attachments

          Activity

            People

            • Assignee:
              aivanov Alexey Ivanov
              Reporter:
              aivanov Alexey Ivanov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: