ROI manager Listeners

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

ROI manager Listeners

McKinney, Sean
I'm trying to take over keylistening in the ROI manager window, removing via RoiManager.removeKeyListener and adding my own via RoiManager.addKeyListener does not appear to work.  Any suggestions?

KeyListener[] listers=manager.getKeyListeners();
for (int i=0; i<listers.length; i++) manager.removeKeyListener(listers[i]);
manager.addKeyListener(this);

-Sean

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html