public void updateClientList(ArrayList<String> nameList)
	{
		lblOnlineUsers.setText("Online User(s): "+nameList.size());
		String selectedName = connectionList.getSelectedItem();
		clearConnectionList();
		int selectedIndex=-1;
		for(String name : nameList)
		{
			addConnectionToList(name.trim());
			if(name.equals(selectedName))
				selectedIndex = connectionList.getItemCount()-1;
		}
		if(selectedIndex!=-1)
			connectionList.select(selectedIndex);
	}