Moving a Results Table

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

Moving a Results Table

Christopher Coulon
Dear List,

Is there any way to move an instance of the ResultsTable to a new location
in a plugin?  Using

        IJ.getTextPanel().getParent().setLocation(x, y);

where x, y is the new top, left location, works for the original
ResultsTable, but not for a new one.  Has anyone worked this out?  Thanks in
advance.

Chris Coulon
       

The GAIA Group
Global Automated Image Analysis
http://www.gaiag.net
[hidden email]


We welcome image analysis problems in all fields.

Christopher Coulon, Ph.D., Founder
415 515-3379
Reply | Threaded
Open this post in threaded view
|

Re: Moving a Results Table

Wayne Rasband
> Is there any way to move an instance of the ResultsTable to
> a new location in a plugin?  Using
>
>         IJ.getTextPanel().getParent().setLocation(x, y);
>
> where x, y is the new top, left location, works for the original
> ResultsTable, but not for a new one.  Has anyone worked this out?
>  Thanks in advance.

A plugin can move any ImageJ window using this method:

     Frame frame = WindowManager.getFrame("Window Title");
     if (frame!=null)
         frame.setLocation(x, y);

-wayne