After a button is clicked I would like text to be displayed in a text area that I have on the same GUI. I have accomplished this but after each new entry to the output text area, the line previously there gets erased. I understand that this is the normal functionality of setText. I was wondering if there was anyway that I can keep entering input but be able to keep the previous entries, in other words not have the previous input erased.
code inside event listener:
output_TextArea.setText("Make a left turn \n");
Any help would be much appreciated. Thanks.
code inside event listener:
output_TextArea.setText("Make a left turn \n");
Any help would be much appreciated. Thanks.