Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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>
I agree. Here's the link:
subject: Disposing a Swing UI
Injection of Dependencies Springs
Disposing of Objects
Blinking of components when using repaint()
how do I know what components are in a jpanel?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013