public void delItem(int index){
synchronized (getMenuTreeLock()) {
    if (selectedIndex == index) {
      selectItem(null,false);
    }
 else     if (selectedIndex > index) {
      selectedIndex--;
    }
    if (index < items.size()) {
      items.remove(index);
    }
 else {
      if (log.isLoggable(PlatformLogger.Level.FINE)) {
        log.fine("WARNING: Attempt to remove non-existing menu item, index : " + index + ", item count : "+ items.size());
      }
    }
  }
  updateSize();
}

public void delItem ( int index ) { synchronized ( getMenuTreeLock ( ) ) { if ( selectedIndex == index ) { selectItem ( null , false ) ; } else if ( selectedIndex > index ) { selectedIndex -- ; } if ( index < items . size ( ) ) { items . remove ( index ) ; } else { if ( log . isLoggable ( PlatformLogger . Level . FINE ) ) { log . fine ( "WARNING: Attempt to remove non-existing menu item, index : " + index + ", item count : " + items . size ( ) ) ; } } } updateSize ( ) ; }
removes item at the specified index from items vector .
