ImageJ icon indicating copy to clipboard operation
ImageJ copied to clipboard

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

Open Sethur opened this issue 6 years ago • 2 comments

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 avatar Nov 12 '19 12:11 Sethur

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

Sethur avatar Nov 12 '19 12:11 Sethur

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.

rollingbits avatar Jun 05 '20 06:06 rollingbits