if ( iSelectedIndex > elPaletteEntries.size( ) - 1 )
if ( iSelectedIndex > elPaletteEntries1.size( ) - 1 )
	public final void remove( int iIndex )	{		if ( iIndex < 0 || iIndex >= elPaletteEntries.size( ) )		{			return;		}		elPaletteEntries.remove( iIndex );		if ( iIndex < iSelectedIndex )		{			iSelectedIndex--;		}		else if ( iIndex == iSelectedIndex )		{			if ( iSelectedIndex > elPaletteEntries.size( ) - 1 )			{				iSelectedIndex--;			}		}		if ( elPaletteEntries.isEmpty( ) )		{			iSelectedIndex = -1;			sb.setEnabled( false );		}		scrollToView( iSelectedIndex );		coPaletteEntries.redraw( );	}