/** Destroy the MenuItem */ public void destroy() { if (meAsAMenu != null) { ScilabSwingUtilities.removeFromParent((SwingScilabMenu) meAsAMenu.getAsSimpleMenu()); } else if (meAsACheckBoxMenuItem != null) { ScilabSwingUtilities.removeFromParent( (SwingScilabCheckBoxMenuItem) meAsACheckBoxMenuItem.getAsSimpleCheckBoxMenuItem()); } else { ScilabSwingUtilities.removeFromParent(this); } }
/** Destroy the Label */ public void destroy() { ScilabSwingUtilities.removeFromParent(this); }