A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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
Disposing of Objects
Blinking of components when using repaint()
how do I know what components are in a jpanel?
Injection of Dependencies Springs
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014