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??