View Single Post
Old 12-29-2011, 11:44 PM   PM User | #9
Scriptr
Regular Coder

 
Join Date: Oct 2011
Posts: 106
Thanks: 12
Thanked 0 Times in 0 Posts
Scriptr is an unknown quantity at this point
Quote:
Originally Posted by Fou-Lu View Post
I'm not sure I understand the issue you are having then.
If you insert a new line and append more data to the JTextArea, then it should show up without needing to change anything. The scrollbar will recalculate its area based on the size of the entire Text area component, and keep the view pane to the size specified. The only way to forbid writing to it is by explicitly stating that the JTextArea is non-writable by setting the setEditable to false.
That's just it: it didn't recalculate it's size. Also, I want it editable.
Scriptr is offline   Reply With Quote