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

HIDPI: Linux: AWT Checkbox check mark is unscaled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 11, 14
    • client-libs
    • RHEL7 and 8

      Ubuntu 16.04 LTS and 18.04 LTS

    • b11
    • x86_64
    • linux_redhat_8.0

      FULL PRODUCT VERSION :
      openjdk version "14-ea" 2020-03-17
      OpenJDK Runtime Environment (build 14-ea+17-721)
      OpenJDK 64-Bit Server VM (build 14-ea+17-721, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      RHEL7, 8
      Ubuntu 16.04 LTS, 18.04 LTS

      A DESCRIPTION OF THE PROBLEM :
      When HIDPI enabled, AWT Checkbox shows its check mark with non-scaling size.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Set scaling
      $ gsettings set org.gnome.desktop.interface text-scaling-factor 2
      2. Compile and launch the sample code.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Expected:
      Check mark is also scaled.
      Actual:
      Check mark is not scaled.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.*;

      public class CheckboxTest{
          public static void main(String[] args) {
              Frame f = new Frame();
              f.setLayout(new GridLayout(3, 1));
              f.add(new Checkbox("one"));
              f.add(new Checkbox("two"));
              f.add(new Checkbox("three"));
              f.pack();
              f.setVisible(true);
          }
      }
      ---------- END SOURCE ---------- 

            tr Tejesh R
            tnakamura Toshio Nakamura
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: