*
The moose likes Swing / AWT / SWT and the fly likes Disposing a Swing UI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Disposing a Swing UI" Watch "Disposing a Swing UI" New topic
Author

Disposing a Swing UI

Ashish Chopra
Ranch Hand

Joined: Nov 30, 2004
Posts: 134
Hi

I have a JPanel that contains several other UI components placed on it, like JButtons, JLabels, some more JPanels etc.

When I have to dispose this parent JPanel, I am simply doing



Will this correctly dispose off the panel, with all its components? Or is there a possibility of a memory leak due to this?

TIA


Quis Custodiet Ipsos Custodes<br /> <br />My blog: <a href="http://www.coherentrambling.blogspot.com" target="_blank" rel="nofollow">http://www.coherentrambling.blogspot.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disposing a Swing UI
 
Similar Threads
Disposing of Objects
Blinking of components when using repaint()
how do I know what components are in a jpanel?
Injection of Dependencies Springs
JScrollPane