collection « Dialog « Java Swing Q&A





1. Why does GC not clear the Dialog references?    stackoverflow.com

I have a dialog. Every time I create it and then dispose, it stays in memory. It seems to be a memory leak somewhere, but I can't figure it out. Do you have ...

2. JDialog is never garbage collected    stackoverflow.com

Why does the following code never garbage collect the JDialog instance ? The instance X has no reference and the dialog has been disposed.

public class Test {

public static void main(String[] args) throws ...