Swing applications look strange with OpenJDK-11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-10 (Debian) |
Fix Released
|
Unknown
|
|||
openjdk-lts (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I have noticed that NetBeans looks strange with OpenJDK 11. It seems to use GTK3 widgets are used which have a different padding than GTK2 widgets.
The screenshots show NetBeans 8.2 running on JDK9 and NetBeans 9-Dev running on OpenJDK 11 but it doesn't matter which application or version is used.
Switching to JDK8 or JDK9 or using the Metal look and feel or Nimbus look and feel also fixes the issue.
Also starting NetBeans with Oracle JDK 11 does not have any drawing issue.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: openjdk-11-jdk 10.0.1+10-3ubuntu1
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: GNOME
Date: Thu May 10 00:09:07 2018
InstallationDate: Installed on 2016-10-25 (561 days ago)
InstallationMedia: Ubuntu 16.10 "Yakkety Yak" - Release amd64 (20161012.2)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: openjdk-lts
UpgradeStatus: Upgraded to bionic on 2018-04-24 (15 days ago)
Changed in openjdk-10 (Debian): | |
status: | Unknown → New |
Changed in openjdk-10 (Debian): | |
status: | New → Fix Released |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
Could you please try adding -Djdk.gtk.version=3 to the java command line to check if it solves the problems and then reporting back?
If it does help then the issue might be solved by backporting https:/ /bugs.openjdk. java.net/ browse/ JDK-8198649.