Linux/Java 1.8 bug? Panels wandering down the screen

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Linux-Java-1-8-bug-Panels-wandering-down-the-screen-tp5017975.html

Hi everyone,

since I have switched to Linux and Java 1.8, each time I open ImageJ,
its main panel is about 25 pixels further down on the screen as the last
time.  I want it at the top, but I have to move it there each time.
Same with other panels; especially for panels that I open and close
rather often, they wander down the screen, which can be a nuisance.

This applies to all java.AWT frames (like the ImageJ main panel,
Brightness&Contrast panels, my own PlugInFrames, etc.) as well as to
JFrames (the Action Bar by Jerome Mutterer is a JFrame).  It seems to me
that Frame.getLocation() incorrectly returns the top-left point of the
frame contents, ignoring the frame's title bar.  setLocation places the
top-left corner of the title bar.

Does anyone out there have a way to avoid this?


ImageJ 1.51j16; Java 1.8.0_112 [64-bit]; Linux 4.4.0-59-generic (Ubuntu
16, Oracle Java packed with ImageJ; OpenJDK 1.8.9_121 shows the same)


Best,

Michael

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html