public void actionPerformed(ActionEvent arg0) 
			{
				if(checkUsername(txtName.getText()))
				{
					try
					{
						UDPsocket = new DatagramSocket();
						IPaddress = InetAddress.getByName(txtIP.getText());
						portNumber = Integer.parseInt(txtPort.getText());
						dataBuffer = ("JOIN "+txtName.getText()).getBytes("UTF-8");
						sendPacket = new DatagramPacket(dataBuffer, dataBuffer.length, IPaddress, portNumber);
						UDPsocket.send(sendPacket);
						addMessage("Connecting to server ...");
						startDatagramListener();
					} catch (UnknownHostException e)
					{
						addMessage("Unable to get IP-Address"+e.getMessage());
					} catch (IOException e)
					{
						addMessage("Unable to connect"+e.getMessage());
					}
				}
				else
					addMessage("please use letters only");
			}