public void nameConfirmed(String s,boolean isAvail) {
		if (s.compareTo(name) == 0) {
			nameStatus.setText((isAvail)?"Name available!":"Name unavailable");
			name = s;
			joinButton.setEnabled(isAvail);
			if (isAvail && joinChatPressed)
				joinChat();
			else
				joinChatPressed = false;
		} else {
			joinButton.setEnabled(false);
			joinChatPressed = false;
		}
		
	}