title: Why do my JDialogs leak?
body: <p>I have a JFrame and I open a JDialog from it and another JDialog from that dialog - which menas i have 3 windows visible (JFrame, JDialog1, Jdialog2).</p>
  
  <p>When I close both dialogs and run a garbage collectior few times (from netbeans profiler)
  I can see that JDialog2 (the one opened from JDialog1) is garbage collected but JDialog1 (opened from JFrame) is still hanging in live objects pool.</p>
  
  <p>I create new objects every time - so after some time I have an OutOfMemoryError doue to memory leak.</p>
  
  <p>Do I have to treat JDialogs in som special way so they don't leak ?</p>
  
  <p>by the way
  i do <code>setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE)</code>
  on both dialogs,</p>