if ( selected.length == 1 ) { int nextSelected = ( ( selectedIndex + 1 ) < oldListSize ) ? selectedIndex : ( selectedIndex - 1 ); valueList.select( nextSelected ); } else if ( ( selected.length > 1 ) && ( valueList.getItemCount( ) > 0 ) ) { valueList.select( 0 ); }  updateButtons( );
	private void addSelected( )	{		String[] selected = valueList.getSelection( );		if ( selected.length == 0 )		{			selected = new String[]{				valueEditor.getText( )			};		}		for ( int i = 0; i < selected.length; i++ )		{			if ( selectedList.indexOf( selected[i] ) == -1 )			{				selectedList.add( selected[i] );			}		}		filteValues( );	}