Login  Register

Re: Moving a Results Table

Posted by Wayne Rasband on Jan 24, 2006; 4:14pm
URL: http://imagej.273.s1.nabble.com/Moving-a-Results-Table-tp3703962p3703963.html

> 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