open window at a specific location

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

open window at a specific location

Nikos Katsikanis
When you open and show it on screen, is there a way to open the window at a
specific location instead of the defult location that imageJ opens it
Reply | Threaded
Open this post in threaded view
|

Re: open window at a specific location

Christophe CHAMOT
Nikos Katsikanis a écrit :
> When you open and show it on screen, is there a way to open the window at a
> specific location instead of the defult location that imageJ opens it
>

If it's in a macro, have a look at setLocation macro.

http://rsb.info.nih.gov/ij/developer/macro/functions.html#setLocation

Best.

--
CHAMOT Christophe
---------------------------------------------------------------------
Plate-Forme de Recherche IFR117
"Imageries des Processus Dynamiques
en Biologie Cellulaire et Biologie du Développement "
Institut Jacques Monod, CNRS, Universités Paris 6 et 7
2, place Jussieu - Tour 43
75251 Paris cedex 05
Tel: 01 44 27 57 84
http://www.ijm.jussieu.fr/
---------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: open window at a specific location

Michael Cammer
In reply to this post by Nikos Katsikanis
Using a macro.
See:
http://rsb.info.nih.gov/ij/developer/macro/functions.html

setLocation(x, y)
Moves the active image window to a new location. See also:
getLocationAndSize, screenWidth, screenHeight.


> When you open and show it on screen, is there a way to open the window at
> a
> specific location instead of the defult location that imageJ opens it
>


_________________________________________
Michael Cammer
Analytical Imaging Facility and
Dept. ASB Biophotonics Innovation Laboratory
Albert Einstein College of Medicine
1300 Morris Park Avenue, Bronx, NY  10461
718-430-2890  Fax 718-430-8996
work:  http://www.aecom.yu.edu/aif/
personal:  http://coxcammer.com/
Reply | Threaded
Open this post in threaded view
|

Re: open window at a specific location

William O'Connell
In reply to this post by Nikos Katsikanis
 -------------- Original message ----------------------
From: Nikos Katsikanis <[hidden email]>
> When you open and show it on screen, is there a way to open the window at a
> specific location instead of the defult location that imageJ opens it

...
// Center the windows
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screenSize.width - DISPLAYSIZE) / 2;
    int y = DISPLAYSIZE;
    testImage.show();
    testImage.getWindow().setLocation(x, y);