Comment 3 for bug 1497816

Revision history for this message
Michael Gratton (mjog) wrote :

This isn't an application problem, it's a Java runtime problem. The Java developers need to add support for Retina/HiDPI to AWT/Swing in the same way that GTK+ and Qt needed support added. This has been done for both Windows and OSX versions of the runtime, but not for Linux. See http://openjdk.java.net/jeps/263

In any case, the applications affected by this for me personally include JOSM, Weka and Matlab. To recreate the issue, simply launch the applications on a computer with a high DPI (i.e. >200 DPI) display. Observe that the UI is unusable since all user interface elements are too small to be comfortably seen and interacted with.

Using the workaround about failed to fix the problem for both JOSM and Weka, using the current versions of those applications as available in Ubuntu Wily. To test this, I executed the following:

> JAVA_OPTS='-Dsun.java2d.xrender=true -Dswing.aatext=true -Dswing.aatext=true' jsom
> java -jar /usr/share/java/weka.jar -Dsun.java2d.xrender=true -Dswing.aatext=true -Dswing.aatext=true

In both cases, no change in the UI was observed, which is consistent with it being a runtime, not application problem.