And can not be change the parent of the applet automatically? try to preserve the subpanel and the order of course.