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

[Windows] JFrame corrupted when switching display scale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 16, 19, 21, 22
    • client-libs
    • None

      To reproduce:
      - using jdk19, jdk20.0.2+9-78
      - run attached application (suspect any app will do)
      - using System Settings > Display, change scale (in this example from 200% to 175%, but really from any to any)
      - >> observe corrupted graphics

      Other observations:
      * fails with both primary and secondary monitor (USB-C)
      * fails with a single monitor (laptop)
      * no corruption when setting scale to 100%
      * does not happen on macOS 13.3.19a with jdk19

      Windows 11 info:
      Edition Windows 11 Pro
      Version 21H2
      Installed on ‎09/‎26/‎2022
      OS build 22000.2057
      Experience Windows Feature Experience Pack 1000.22001.1000.0

        1. JTextAreaCursor.java
          2 kB
          Andy Goryachev
        2. screenshot.png
          771 kB
          Prasanta Sadhukhan
        3. screenshot1.png
          670 kB
          Prasanta Sadhukhan
        4. Screenshot 2023-07-19 134155.png
          83 kB
          Andy Goryachev
        5. screenshot-jdk22-wofix.png
          758 kB
          Prasanta Sadhukhan

            azvegint Alexander Zvegintsev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: