I would like to create a text area for showing the output of the program, something like the console window. I dont want the previous text to be replaced, so the next output will be on the new line. Is there a way to create this? All the text area that I found cant be append.
The easiest solution is to store the text (program output) in a String or String array and append the latest data to this. Everytime you append data display the new String/String array in your text area component replacing the existing text.
So far I have been using the ControlP5 library and check the G4P library too. I have tried that method by keep appending the string before. But this way, the text area won't handle the "\n", it will throw an error. So the text will keep continuing in one line. I would like it to be on the next line. Is this possible?
Yes I tried using the TextField, it works, but since it is a textField, it allow the user to edit it, and it doesn't scroll when the line is more than the area. I don't see the option for this, any idea on this?
Anyway thank you so much for answering, really appreciate it!