Login  Register

How to keep track of previously opened internal frames

Posted by Student1 on May 20, 2014; 9:50pm
URL: http://imagej.273.s1.nabble.com/How-to-keep-track-of-previously-opened-internal-frames-tp5007813.html

Hi,

I am just wondering suppose at run time it makes multiple objects of a class (so it basically opens 4 internal frames) and display different images that are opened from different paths. So my questions if suppose the 4 frames are opened how would I get information of the path that opened the 2nd frame (so when the 2nd frame is opened I want to get it path (so when a certain frame is activated)), cause whenever I try calling getPath() - it gives me the most recent image path that has been opened but I don't know how to get information of previously opened frames.

(I used InternalFrameActivated() and that show which frame is activated and also gives the correct path but I don't know how to use it if suppose another class is calling that class). Does anybody have an idea of how to go about this? Somebody suggested to use the factory/manager but I have no idea how to code it, does anybody know how?



Thanks

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