Re: ImagePlus not drawing updates with in a loop
Posted by
Richard Zorger on
May 07, 2014; 6:36pm
URL: http://imagej.273.s1.nabble.com/ImagePlus-not-drawing-updates-with-in-a-loop-tp5007405p5007619.html
Okay I figured it out.
For any one who might be interested in the future, use an inherited java.awt.Component method to get g:
Graphics g = cc.getGraphics();
cc.update(g);
Ciao,
Richard
----- Original Message -----
From: "Johannes Schindelin" <
[hidden email]>
To: "Richard Zorger" <
[hidden email]>
Cc:
[hidden email]
Sent: Friday, April 25, 2014 5:04:07 PM
Subject: Re: ImagePlus not drawing updates with in a loop
Hi Richard,
On Fri, 25 Apr 2014, Richard Zorger wrote:
> Unfortunately I have tried the ImagePlus.updateAndDraw() method and it
> did not work.
Maybe your Event Dispatch Thread is stuck? If that is the case, *nothing*
gets drawn, so you should be able to verify this theory by starting the
"Monitor Memory..." command first; it will not update either during the
time the Event Dispatch Thread is blocked.
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html