test if imagePlus oject is open

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

test if imagePlus oject is open

Nicola B.
Hi all,
does anybody tell me how can I test if an ImagePlus object is actualy
open and display on screen?
this seems not work:
code:
-----------------------------------------------------------
ImagePlus imp;
...
// imp does not necessary initialized (only if needed)
if ( imp!=null && imp.getWindow().isVisible() )
    System.out.println("image Plus object is visible")
-----------------------------------------------------------
I only need a test to control is imagePlus is visible...

Regards,
     -nicola