System.out.println("Container: removing item " + index + " " + removedItem.toString()  );
System.out.println("Container: removing item " + index + " " + removedItem.toString()  ); Screen scr = getScreen(); if (scr != null) { scr.removeItemCommands(removedItem); }
	public Item remove( int index ) {		Item removedItem = (Item) this.itemsList.remove(index);		//#debug		System.out.println("Container: removing item " + index + " " + removedItem.toString()  );				// adjust y-positions of following items:		Item[] myItems = (Item[]) this.itemsList.toArray( new Item[ this.itemsList.size() ]);		for (int i = 0; i < myItems.length; i++) {			Item item = myItems[i];			item.internalX = -9999;			item.yTopPos = item.yBottomPos = 0;			/*			 int removedItemHeight = removedItem.itemHeight;			if (item.yTopPos != item.yBottomPos) {				item.yTopPos -= removedItemHeight;				item.yBottomPos -= removedItemHeight;			}*/		}		// check if the currenlty focused item has been removed:		if (index == this.focusedIndex) {			// focus the first possible item:			boolean focusSet = false;			for (int i = 0; i < myItems.length; i++) {				Item item = myItems[i];				if (item.appearanceMode != PLAIN) {					focus( i, item, Canvas.DOWN );					focusSet = true;					break;				}			}			if (!focusSet) {				this.autoFocusEnabled = true;			}		} else if (index < this.focusedIndex) {			this.focusedIndex--;		}		this.yOffset = 0;		this.targetYOffset = 0;		if (this.isInitialised) {			this.isInitialised = false;			repaint();		}		return removedItem;	}