protected void addNewChat() {
		String chatContent = chatInputJTxa.getText();
		DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm a");
		Date date = new Date();
		if (!(chatContent == null || chatContent.isEmpty())) {
			//chatHistoryDLM.addElement(userLogin.getName() + " (" + dateFormat.format(date) + "):"+ chatContent);
			// public Chat(String content, String timeAdded, int userId, int debateId) {
			Chat c = new Chat(chatContent, dateFormat.format(date), userLogin.getName(), debateSelected.getId());
			if (chat.addChat(fileName, c) ) {
				chatInputJTxa.setText("");
				getChatHistory();
			}
			
		}