-
Bug
-
Resolution: Fixed
-
P4
-
11, 14
-
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 ----------
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 ----------
- duplicates
-
JDK-8296312 Most Swing/AWT widgets do not scale on HighDPI displays, but others DO
- Closed
- relates to
-
JDK-8340870 [WIN] Checkbox is not sized according to uiScale
- Open
- links to
-
Commit(master) openjdk/jdk/3bc4a1ac
-
Review(master) openjdk/jdk/20441