Well, actually I was able to go back to an older program, where I can keep the information.
However, I still have the problem with not being able going back and forth between the Photoshop window and my plugin window too many times, and this doesn't seem to be a memory overflow problem.
Please check:
http://forum.java.sun.com/thread.jspa?threadID=5133663&tstart=0