Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

why would jframe.dispose() hang?

843806Dec 11 2008 — edited Jan 9 2009
Hello, what is the best way to get rid of a JFrame I create, but don't make visible, so it can be reclaimed by garbage collector? It seems that if I just leave the scope, the frame hangs there because if I do this repeatedly, the heap grows. I tried to call dispose() on it, but that seems to hang (!?) - because the println statements after this, and anything else, does not execute...

Mark
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2009
Added on Dec 11 2008
13 comments
823 views