question: @ Override public void actionPerformed ( ActionEvent e ) { historyAdd ( getText ( ) ) ; historyPosition = history . size ( ) ; setText ( "" ) ; historyTextEdited = false ; }
target:  Adds sent text to the history, sets history position and clears the input field.