@SuppressWarnings("deprecation")
	public synchronized void log(Color c, String s) {
		Document document = txtLog.getDocument();
	
		SimpleAttributeSet set = new SimpleAttributeSet();
		StyleConstants.setForeground(set, c);

		Date date = new Date();
		
		String hours = (date.getHours() + "").length() == 1 ? "0" + date.getHours() : Integer.toString(date.getHours());
		String minutes = (date.getMinutes() + "").length() == 1 ? "0" + date.getMinutes() : Integer.toString(date.getMinutes());
		String seconds = (date.getSeconds() + "").length() == 1 ? "0" + date.getSeconds() : Integer.toString(date.getSeconds());
		
		String time = hours + ":" + minutes + ":" + seconds;
		
		String line = "[" + time + "] [LOG]: " + s;
		
		try {
			document.insertString(document.getLength(), line + "\n\r", set);
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		txtLog.setSelectionStart(document.getLength());
		txtLog.setSelectionEnd(document.getLength());
	}