Login  Register

Moving a non-image window

Posted by lechristophe on Sep 18, 2007; 5:03pm
URL: http://imagej.273.s1.nabble.com/Moving-a-non-image-window-tp3698371.html

Dear all,

Is there a way to move a non-image window in a macro ? In a plugin Wayne
indicated this one year ago on this list :

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

But how to do it in a macro ? From my tests the setLocation() function
doesn't work for non-image windows.

Thank you for your help,

Christophe