this.focusFirstElement = true;
this.autoFocusEnabled = true;
	public Item remove( int index ) {		Item removedItem = (Item) this.itemsList.remove(index);		// check if the currenlty focused item has been removed:		if (index == this.focusedIndex) {			// focus the first possible item:			boolean focusSet = false;			Item[] myItems = (Item[]) this.itemsList.toArray( new Item[ this.itemsList.size() ]);			for (int i = 0; i < myItems.length; i++) {				Item item = myItems[i];				if (item.appearanceMode != PLAIN) {					focus( i, item );					focusSet = true;					break;				}			}			if (!focusSet) {				this.focusFirstElement = true;			}		} else if (index < this.focusedIndex) {			this.focusedIndex--;		}		this.yOffset = 0;		if (this.isInitialised) {			this.isInitialised = false;			repaint();		}		return removedItem;	}