Re: Java repaint question
Posted by
ctrueden on
Jun 21, 2008; 3:00pm
URL: http://imagej.273.s1.nabble.com/Java-repaint-question-tp3695800p3695806.html
Hi Jon,
Did you try validate() followed by repaint()?
-Curtis
On Sat, Jun 21, 2008 at 3:50 PM, Jon Harman <
[hidden email]>
wrote:
> Hi,
>
> In my plugin I want to cycle through a set of enhancements. My code to do
> this is inside of the actionPerformed routine for the button press in my
> customWindow.
> I have tried lots of things: repaint, repaintWindow, updateImage... (for
> the imagePlus or the window or the custom canvas) but the image refuses to
> update until the code exits the actionPerformed routine. Is there a way I
> can get it to repaint the image without leaving the button press routine?
>
> Jon
>