Re: Java repaint question
Posted by
Jon Harman-3 on
Jun 21, 2008; 3:42pm
URL: http://imagej.273.s1.nabble.com/Java-repaint-question-tp3695800p3695807.html
Hi,
Just gave it a try, for both the customCanvas and customWindow: doesn't
work.
Jon
Curtis Rueden wrote:
> 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
>>
>