private void nameChanged() {
		joinButton.setEnabled(false);
		joinChatPressed = false;
		String text = nameField.getText().trim();
		name = text;
		if (text.compareTo("") == 0) {
			nameStatus.setText("");
			return;
		}
		String message = null;
		if ((message = checkName(text)) == null) {
			name = text;
			nameStatus.setText("");
			checkNameAvailability(name);
		} else 
			nameStatus.setText(message);
	}