@Override
	public void actionPerformed(ActionEvent e) {
		
		if (e.getSource().equals(btnConnect)) {
			try {
				guiInter.connect(getTxtEnterName().getText() ,getServerField().getText(), Integer.valueOf(getPortField().getText()));
				txtEnterName.setEnabled(false);
				serverField.setEnabled(false);
				portField.setEnabled(false);
				btnConnect.setEnabled(false);
				btnSend.setEnabled(true);
				WriteMessage.setEditable(true);
				ActiveUsers.setBackground(Color.WHITE);
				ChatArea.setBackground(Color.WHITE);
			} catch (Exception e2) {
				// TODO: handle exception
			}
		}
		else if (e.getSource().equals(btnSend)) {
			if (!WriteMessage.getText().equals("")) {
				guiInter.sendMsg(WriteMessage.getText());
				WriteMessage.setText("");
			}
		}
	}