imagej / ImageJ

Public domain software for processing and analyzing scientific images
http://imagej.org
Other
576 stars 227 forks source link

With OpenJDK 8u232 from AdoptOpenJDK, the ImageJ main window is cut off #87

Open Sethur opened 5 years ago

Sethur commented 5 years ago

OS: Windows 10 Java: OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)

When using ImageJ 1.52r with OpenJDK 8 from AdoptOpenJDK (fresh install), the main control window gets cut off below the symbol line and on the right side (see screenshot below).

This does not happen with Oracel JRE 1.8.

image

Sethur commented 5 years ago

Update: I experimented a bit and tried the OpenJDK build 1.8.0_232-b09 from https://github.com/ojdkbuild/ojdkbuild , and this one works fine (see below). The issue above seems to be dependent on the specific OpenJDK implementation. When directly comparing the two main windows, the AdoptOpenJDK version ... 1) ... has a taller title bar, i.e. height_titlebar(AdoptOpenJDK) > height_titlebar(OracleJRE) 2) ... is a little wider in total, i.e. width(AdoptOpenJDK) > width(OracleJRE) 3) ... is a little taller in total, i.e. height(AdoptOpenJDK) > height(OracleJRE)

image

rollingbits commented 4 years ago

Hi.

This happens with me too. I workaround it by adding

-Dsun.java2d.uiScale=1

to the javaw.exe call (3rd line of the .cfg).

I use OpenJDK 14.0.1 here and I believe this is due to the fact that newer versions of java propagate the user interface scaling to the applications.

Switching back to OracleJRE 8 is also enough for the problem to disappear.

IJ is at version 1.53b here.