I'm probaly missing something but I'm having difficulty doing the following:
I would like to create an empty document of a certain size. Then I would like to insert strings at various places in this document. I am however running in invalid insert errors. Is there a way to create an empty document of JTextArea of lets say 50 lines without having to do setText(" ...")? Can someone give me some advice?
posted 12 years ago
have you tried using constructor:- JTextArea(int rows, int columns) Constructs a new empty TextArea with the specified number of rows and columns.