} else { this.autoFocusEnabled = true; this.autoFocusIndex = elementNum; System.out.println("Activating autofocus of " + elementNum );
	public void setSelectedIndex(int elementNum, boolean selected)	{		if (this.isMultiple) {			ChoiceItem item = (ChoiceItem) this.itemsList.get( elementNum );			item.select( selected );		} else {			if (selected == false) {				return; // ignore this call			}			if (this.selectedIndex != -1) {				ChoiceItem oldSelected = (ChoiceItem) this.itemsList.get( this.selectedIndex );				oldSelected.select( false );			}			ChoiceItem newSelected = (ChoiceItem) this.itemsList.get( elementNum );			newSelected.select( true );			this.selectedIndex = elementNum;			if ( this.isInitialised ) {				focus( elementNum, newSelected );			}			//#ifdef polish.usePopupItem				if (this.isPopup) {					this.popupItem.setText( newSelected.getText() );				}			//#endif		}		repaint();	}