There are some limitations with GTextArea.
- It cannot be completely empty. If you try and delete all the test it will put in a single space
- You cannot have two adjacent lines with no text i.e. zero length. You can use lines with one or more spaces to represent blanks lines.
- It is not designed to hold massive amounts of text.
The reason for these limitations is due to the fact I used a number of Java classes so that some or all of the text can be styled i.e. bold, italic, font, font size, foreground colour etc. To do this I used a number of Java classes that were never designed to be used directly.