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
that contains several other UI components placed on it, like JButtons, JLabels, some more JPanels etc.
When I have to dispose this parent
, 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>
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
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-2015