Point Selections

Posted by Tony Shepherd on
URL: http://imagej.273.s1.nabble.com/Point-Selections-tp3701394.html

It seems that the "Point Selections" (cross-hair) tool has no return value.
I want to put something like this inside my code...

Toolbar Tb = Toolbar.getInstance();
Tb.setTool(7);    // override the current tool with the Point Selections tool

int[] xy_coordinates = new int[2];
xy_coordinates = <where ever the Point Selections object is placed>

Is there a standard way of doing this?

Thanks.