question: 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 ( ) ; }
target:  Removes item at the specified index from items vector.