• Post Reply Bookmark Topic Watch Topic
  • New Topic

removing from getContentPane() - help!

 
Kenneth Winn
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JApplet I am creating a new JButton and am putting it in a JPanel and then adding the JPanel to the contentPane (getContentPane()) in the init() method.
In my destroy() method I am attempting to remove it but it is not being removed. I am profiling the applet and the memory is not being released. Can anyone help??
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!