Пример #1
0
 /** 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);
   }
 }
Пример #2
0
 /** Destroy the Label */
 public void destroy() {
   ScilabSwingUtilities.removeFromParent(this);
 }