Hello all,
on MacOS and Java 8, I often have this problem with dialogs: one or several of the topmost elements is missing, such as "Bins" in the screenshot left. Only after I press the Tab key or interact with a visible item, the dialog is redrawn correctly (screenshot right). This is especially confusing when confronting the user with a self-written dialog, which then does not appear to make sense. I struggle with this problem for more than a year and wonder if this also happens to others, and if there is a solution. ImageJ 1.51o Java 1.8.0_121 (64-bit) Best regards, Norbert -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Norbert,
Yes, I have this problem constantly too for some time. OSX Sierra / Java 8. My coworker does not seem to have it with the same configuration, I wonder if this is a Retina-related problem (as her Mac is not Retina) Christophe On Wed, Jun 14, 2017 at 10:24 PM, Norbert Vischer <[hidden email]> wrote: > Hello all, > > on MacOS and Java 8, I often have this problem with dialogs: > one or several of the topmost elements is missing, such as "Bins" in the > screenshot left. > > Only after I press the Tab key or interact with a visible item, the dialog > is redrawn correctly (screenshot right). > This is especially confusing when confronting the user with a self-written > dialog, which then does not appear to make sense. > > I struggle with this problem for more than a year and wonder if this also > happens to others, and if there is a solution. > > > > ImageJ 1.51o > Java 1.8.0_121 (64-bit) > > > Best regards, > Norbert > > > > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi,
I can reproduce this problem intermittently on my machine e.g. by opening Blobs and then running the "Set Measurements..." command.Sometimes the items in the top half of the dialog do not get painted. Maybe it is related to how GenericDialog overrides its painting routine? https://github.com/imagej/ImageJA/blob/v1.51o/src/main/java/ ij/gui/GenericDialog.java#L1442-L1463 Have you noticed the problem with any windows besides GenericDialogs? 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 Wed, Jun 14, 2017 at 3:30 PM, Christophe Leterrier < [hidden email]> wrote: > Hi Norbert, > > Yes, I have this problem constantly too for some time. OSX Sierra / Java 8. > My coworker does not seem to have it with the same configuration, I wonder > if this is a Retina-related problem (as her Mac is not Retina) > > Christophe > > On Wed, Jun 14, 2017 at 10:24 PM, Norbert Vischer <[hidden email]> > wrote: > > > Hello all, > > > > on MacOS and Java 8, I often have this problem with dialogs: > > one or several of the topmost elements is missing, such as "Bins" in the > > screenshot left. > > > > Only after I press the Tab key or interact with a visible item, the > dialog > > is redrawn correctly (screenshot right). > > This is especially confusing when confronting the user with a > self-written > > dialog, which then does not appear to make sense. > > > > I struggle with this problem for more than a year and wonder if this also > > happens to others, and if there is a solution. > > > > > > > > ImageJ 1.51o > > Java 1.8.0_121 (64-bit) > > > > > > Best regards, > > Norbert > > > > > > > > > > > > -- > > 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 |
> On Jun 14, 2017, at 11:43 PM, Curtis Rueden <[hidden email]> wrote:
> > Hi, > > I can reproduce this problem intermittently on my machine e.g. by opening > Blobs and then running the "Set Measurements..." command.Sometimes the > items in the top half of the dialog do not get painted. > > Maybe it is related to how GenericDialog overrides its painting routine? > https://github.com/imagej/ImageJA/blob/v1.51o/src/main/java/ > ij/gui/GenericDialog.java#L1442-L1463 With the latest ImageJ daily build (1.51p2), the GenericDialog no longer overrides the paint() method. Does this change help? The Java bug that the overridden paint() method works around seems to have been fixed, -wayne > Have you noticed the problem with any windows besides GenericDialogs? > > 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 Wed, Jun 14, 2017 at 3:30 PM, Christophe Leterrier < > [hidden email]> wrote: > >> Hi Norbert, >> >> Yes, I have this problem constantly too for some time. OSX Sierra / Java 8. >> My coworker does not seem to have it with the same configuration, I wonder >> if this is a Retina-related problem (as her Mac is not Retina) >> >> Christophe >> >> On Wed, Jun 14, 2017 at 10:24 PM, Norbert Vischer <[hidden email]> >> wrote: >> >>> Hello all, >>> >>> on MacOS and Java 8, I often have this problem with dialogs: >>> one or several of the topmost elements is missing, such as "Bins" in the >>> screenshot left. >>> >>> Only after I press the Tab key or interact with a visible item, the >> dialog >>> is redrawn correctly (screenshot right). >>> This is especially confusing when confronting the user with a >> self-written >>> dialog, which then does not appear to make sense. >>> >>> I struggle with this problem for more than a year and wonder if this also >>> happens to others, and if there is a solution. >>> >>> >>> >>> ImageJ 1.51o >>> Java 1.8.0_121 (64-bit) >>> >>> >>> Best regards, >>> Norbert -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Wayne,
> With the latest ImageJ daily build (1.51p2), the GenericDialog no > longer overrides the paint() method. Does this change help? Thanks. Unfortunately, I am still able to reproduce the issue with 1.51p2, both with Fiji and with regular ImageJ 1.x. 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 Thu, Jun 15, 2017 at 8:46 PM, Wayne Rasband <[hidden email]> wrote: > > On Jun 14, 2017, at 11:43 PM, Curtis Rueden <[hidden email]> wrote: > > > > Hi, > > > > I can reproduce this problem intermittently on my machine e.g. by opening > > Blobs and then running the "Set Measurements..." command.Sometimes the > > items in the top half of the dialog do not get painted. > > > > Maybe it is related to how GenericDialog overrides its painting routine? > > https://github.com/imagej/ImageJA/blob/v1.51o/src/main/java/ > > ij/gui/GenericDialog.java#L1442-L1463 > > With the latest ImageJ daily build (1.51p2), the GenericDialog no longer > overrides the paint() method. Does this change help? The Java bug that the > overridden paint() method works around seems to have been fixed, > > -wayne > > > > Have you noticed the problem with any windows besides GenericDialogs? > > > > 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 Wed, Jun 14, 2017 at 3:30 PM, Christophe Leterrier < > > [hidden email]> wrote: > > > >> Hi Norbert, > >> > >> Yes, I have this problem constantly too for some time. OSX Sierra / > Java 8. > >> My coworker does not seem to have it with the same configuration, I > wonder > >> if this is a Retina-related problem (as her Mac is not Retina) > >> > >> Christophe > >> > >> On Wed, Jun 14, 2017 at 10:24 PM, Norbert Vischer < > [hidden email]> > >> wrote: > >> > >>> Hello all, > >>> > >>> on MacOS and Java 8, I often have this problem with dialogs: > >>> one or several of the topmost elements is missing, such as "Bins" in > the > >>> screenshot left. > >>> > >>> Only after I press the Tab key or interact with a visible item, the > >> dialog > >>> is redrawn correctly (screenshot right). > >>> This is especially confusing when confronting the user with a > >> self-written > >>> dialog, which then does not appear to make sense. > >>> > >>> I struggle with this problem for more than a year and wonder if this > also > >>> happens to others, and if there is a solution. > >>> > >>> > >>> > >>> ImageJ 1.51o > >>> Java 1.8.0_121 (64-bit) > >>> > >>> > >>> Best regards, > >>> Norbert > ' > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by vischer
> On Jun 14, 2017, at 4:24 PM, Norbert Vischer <[hidden email]> wrote:
> Hello all, > on MacOS and Java 8, I often have this problem with > dialogs: one or several of the topmost elements is > missing, such as "Bins" in the screenshot left. This problem should occur less frequently if you upgrade to the latest ImageJ daily build (1.51p7). The daily build attempts to work around this problem by adding 25 ms delays to the repaint() and paint() methods of the GenericDialog class. Using the daily build, I was able to open the File>New>Image dialog 200 times with only one occurrence of this problem. Use the ānā and esc keys to rapidly open and close this dialog. GenericDialogs are now resizable, so you can repaint a dialog by resizing it. -wayne > Only after I press the Tab key or interact with a visible > item, the dialog is redrawn correctly (screenshot right). > This is especially confusing when confronting the user > with a self-written dialog, which then does not appear > to make sense. > I struggle with this problem for more than a year and > wonder if this also happens to others, and if there > is a solution. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Wayne,
thanks for handling this problem. I installed 1.51n7. I made ca. 6 test series by restarting ImageJ and performing a number of trials. In each series, the bug appeared within trial#4 and trial#15 after restart, but then did not occur during subsequent (ca. 100) trials. And there is another issue concerning choices: In the "New Image" dialog, I can choose: Fill with: White/Black/Ramp/Noise Assume the default was White and I want Black: - I click and release quickly the mouse on "White" - drop-down menu opens and shows me the 4 options - I use key down-arrow so "Black" is highlighted - I press Return - The new window opens "White" instead "Black" In this example it's not dramatic because I can see immediately the wrong result. But in other cases, with more options and when working fast, the error may remain invisible, made by a decision that intuitively appeared correct due to the highlighted choice. I used an older MacBook Air (13-inch, Mid 2011) ImageJ 1.51p7; Java 1.8.0_101 [64-bit]; Mac OS X 10.10.5; 19MB of 3000MB (<1%) Best regards, Norbert On 19. Jun 2017, at 0:11, Wayne Rasband <[hidden email]> wrote: > On Jun 14, 2017, at 4:24 PM, Norbert Vischer <[hidden email]> wrote: > Hello all, > on MacOS and Java 8, I often have this problem with > dialogs: one or several of the topmost elements is > missing, such as "Bins" in the screenshot left. This problem should occur less frequently if you upgrade to the latest ImageJ daily build (1.51p7). The daily build attempts to work around this problem by adding 25 ms delays to the repaint() and paint() methods of the GenericDialog class. Using the daily build, I was able to open the File>New>Image dialog 200 times with only one occurrence of this problem. Use the ānā and esc keys to rapidly open and close this dialog. GenericDialogs are now resizable, so you can repaint a dialog by resizing it. -wayne > Only after I press the Tab key or interact with a visible > item, the dialog is redrawn correctly (screenshot right). > This is especially confusing when confronting the user > with a self-written dialog, which then does not appear > to make sense. > I struggle with this problem for more than a year and > wonder if this also happens to others, and if there > is a solution. -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |