public void drawMessage(ChatPacket pkt){
		calendar = new GregorianCalendar();
		DateFormat dfm = new SimpleDateFormat("HH:mm:ss");
		String time = dfm.format(calendar.getTime());
		System.out.println(pkt.get_sender()+" "+pkt.get_message());
		if (pkt.get_sender().equals("ADMIN") && pkt.get_message().equals("Session Frozen")) {
			MainWindow.frozen = true;
			JOptionPane.showMessageDialog(this, "The session has been frozen, you are only drawing locally");
		} else if (pkt.get_sender().equals("ADMIN") && pkt.get_message().equals("Session Unfrozen")) {
			MainWindow.frozen = false;
			JOptionPane.showMessageDialog(this, "The session has been unfrozen, you are drawing with peers");
		} else if(!pkt.get_sender().equals(username)) { //If the sender is not you, display username.
			chatBox.append(pkt.get_sender() + ":  " +time+"\n   "+pkt.get_message()+"\n");
		} else {
			//If the sender is you then 'You' is displayed rather than username
			chatBox.append("You:  "+time+"\n   "+pkt.get_message()+"\n");
		}
		chatBox.selectAll(); // Forces chatbox to autoscroll to bottom
	}