public void disposeJComponent(JComponent comp) {
    JCMAdmin cmAdmin = (JCMAdmin) comp;
    cmAdmin.stop();

    super.disposeJComponent(comp);
  }
 void closeComponent(JComponent comp) {
   JCMAdmin cmAdmin = (JCMAdmin) comp;
   cmAdmin.stop();
 }