public void handleCommand(){
		String text = input.getText();
		try {
			log.getDocument().insertString(log.getSelectionEnd(), text+"\n", new SimpleAttributeSet());
		} catch (BadLocationException e1) {
			e1.printStackTrace();
		}
		input.setText("");
		entries.add(0,text);
		index = -1;
		if (!text.trim().equals("")){
			fire(text);
		}
	}