A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Disposing a Swing UI
Joined: Nov 30, 2004
Jan 02, 2006 23:47:00
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
parentPanel = null
Will this correctly dispose off the panel, with all its components? Or is there a possibility of a memory leak due to this?
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:
subject: Disposing a Swing UI
Disposing of Objects
Injection of Dependencies Springs
how do I know what components are in a jpanel?
Blinking of components when using repaint()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014