• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to dispose a JDialog  RSS feed

 
Saurabh Kum
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When i am using the method dialog.dispose(), the resources held by the dialog are not getting destroyed and they still hold the memory space even after disposing.
Can anybody suggest a way to destroy all the components present on the dialog while closing the dialog.

Waiting in anticipation
Saurabh
 
Pavan Kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just a point of interest to me !

How come you get to know that the resources are not being destroyed ?

TIA
 
Saurabh Kum
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Lot of ways to know that whether the resources are getting destroyed or not.I tried just two :-
1) Used jProfiler for profiling and found the resources holding the memory even after closure of the screen.
2) Just after dialog.dispose(), I used dialog.show() and the screen reappeared which it should'nt in case the screen components are killed.

It will be great if anybody can help me out of this.

Waiting in anticipation
Saurabh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!