elPaletteEntries.remove( iSmaller ); elPaletteEntries.remove( iSmaller );
elPaletteEntries1.remove( iSmaller ); elPaletteEntries1.remove( iSmaller );
	private final void swap( int iIndex1, int iIndex2 )	{		final Object o1 = elPaletteEntries.get( iIndex1 );		final Object o2 = elPaletteEntries.get( iIndex2 );		int iSmaller = Math.min( iIndex1, iIndex2 );		elPaletteEntries.remove( iSmaller );		elPaletteEntries.remove( iSmaller );		if ( iIndex1 < iIndex2 )		{			elPaletteEntries.add( iSmaller, o1 );			elPaletteEntries.add( iSmaller, o2 );		}		else		{			elPaletteEntries.add( iSmaller, o2 );			elPaletteEntries.add( iSmaller, o1 );		}		if ( iSelectedIndex == iIndex1 )		{			iSelectedIndex = iIndex2;		}		else if ( iSelectedIndex == iIndex2 )		{			iSelectedIndex = iIndex1;		}		scrollToView( iSelectedIndex );		coPaletteEntries.redraw( );	}