How to keep track of previously opened internal frames

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

How to keep track of previously opened internal frames

Student1
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