why would jframe.dispose() hang?
843806Dec 11 2008 — edited Jan 9 2009Hello, 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