@Override
	public void actionPerformed(ActionEvent action) {
		// TODO Auto-generated method stub
		if(action.getSource() == btnSend){
			String message = txtBox.getText();

			String showMessageForMe = "me: " + message + "\n";
			message = message.replace("<", "&lt;");
			message = message.replace(">", "&gt;");
			String messageToSend = Tags.CHAT_MSG_S + message + Tags.CHAT_MSG_E;
			try {
				write.writeUTF(messageToSend);
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			updateTxtBoard(showMessageForMe);
			txtBox.setText("");
		}else if( action.getSource() == menuSendFile){
			int returnVal = fc.showOpenDialog(GUIChat.this);
			if( returnVal == JFileChooser.APPROVE_OPTION){
				File file = fc.getSelectedFile();
			
				try {
					write.writeUTF(Tags.FILE_REQ_S + file.getName() + Tags.FILE_REQ_E);
					write.flush();
					if( rq == null){
						if(commingRq != null){
							commingRq.updateFile(file);
						}
					}else {
						rq.updateFile(file);
					}
					
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
				
			}else {
				// User didn't choose file
			}
		}

	}