Linux/Java 1.8 bug? Panels wandering down the screen

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Linux/Java 1.8 bug? Panels wandering down the screen

Michael Schmid-3
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
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

Avital Steinberg
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
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

Michael Schmid-3
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
>>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

ctrueden
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
>>>
>>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>>
>>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Michael Schmid-3
> On Jan 31, 2017, at 5:09 AM, 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?

I can reproduce this problem using ImageJ 1.51j, Java 1.8.0_112 and Ubuntu 14.04 LTS. I will try to find a fix or workaround.

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

vischer
In reply to this post by ctrueden
Hi Michael,
1) my observation is that when I start ImageJ and create a new window, the status or progress field (below the tools) is covered with the new window.

2) I also want to mention that e.g. the "Adjust>" dialog boxes behave like children of the ImageJ main window: For example, if you move the ImageJ window, also "Brightness & Contrast" moves with it.

3) And yet another problem is that dialog boxes are often only partially drawn. Some top-most elements are missing until you click one of the visible ones.

All these three subjects may justify different threads, but I just mention it here because they all appeared first with Java 8.


(ImageJ 1.51j19; Java 1.8.0_101 [64-bit]; Mac OS X 10.10.3)

Norbert
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

Michael Schmid-3
In reply to this post by ctrueden
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
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

John Minter
Just to add to what works: I am running Lubuntu16.04.1  with the
lightweight LDXM window manager. No problem at all with a freshly-updated
Fiji-Linux-64 distribution with the bundled jdk1.8.0_66.

John

On Tue, Jan 31, 2017 at 11:46 AM, Michael Schmid <[hidden email]>
wrote:

> 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
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Linux/Java 1.8 bug? Panels wandering down the screen

Rasband, Wayne (NIH/NIMH) [E]
In reply to this post by Michael Schmid-3
> On Jan 31, 2017, at 5:09 AM, 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?

The latest ImageJ daily build (1.51j38) has a workaround for the problem on Linux where the “ImageJ” window sometimes opens lower on the screen. When ImageJ starts up it ignores the y coordinate saved in the preferences and always positions the “ImageJ” window at the top of the screen. For other windows (B&C, ROI Manager, etc.), there is an option in Edit>Options>Misc ("Save window locations”) that you can disable to prevent them from wandering down the screen as they are opened and closed. Note that the "Save window locations” option is only available on Linux systems.

-wayne

> 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


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