Re: 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-tp5017975p5017987.html

Hi Curtis,

yes, you are right, the problem is related to the Window Manager.

I tried with marco/Mate (the default Window Manager of Linux Mint,
mentioned by Avital) and the ImageJ panel stays in place, even if I call
it often.

I am using the Unity Window Manager, which is the default for Ubuntu.

I also had a look whether the problem is related to the Global Menu Bar
at the top of the screen (Unity has one, Mate does not), but this
appears not to be the case: The width of the Menu Bar is 20 pixels, that
of the ImageJ title bar is 25 pixels. The windows move down 25 pixels
each time.

Best regards,

Michael
________________________________________________________________
On 31/01/2017 15:52, Curtis Rueden wrote:

> Hi Michael,
>
> Perhaps it has to do with which window manager you run? You could try
> different ones and see if that makes a difference.
>
> Regards,
> Curtis
>
> --
> Curtis Rueden
> LOCI software architect - https://loci.wisc.edu/software
> ImageJ2 lead, Fiji maintainer - https://imagej.net/User:Rueden
> Did you know ImageJ has a forum? http://forum.imagej.net/
>
>
> On Tue, Jan 31, 2017 at 7:58 AM, Michael Schmid <[hidden email]>
> wrote:
>
>> Hi Avital,
>>
>> interesting! I have downloaded Oracle Java 1.8.0_66(64 bit) and also this
>> Java version makes the ImageJ panel move a bit futher down each time I open
>> it.
>> I thought that Linux Mint and Ubuntu are rather similar?
>>
>> Michael
>> ________________________________________________________________
>>
>> On 31/01/2017 12:28, Avital Steinberg wrote:
>>
>>> Hi Michael,
>>> I have Linux Mint 17 and ImageJ 1.51i Java 1.8.0_66(64 bit), but I opened
>>> ImageJ many times to check if the location of the window changes and for
>>> me
>>> it doesn't.
>>>
>>> Best,
>>> Avital
>>>
>>> On Tue, Jan 31, 2017 at 12:09 PM, Michael Schmid <[hidden email]
>>>>
>>> wrote:
>>>
>>> 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