How To Keep Size Of JTextArea constant?

Posted by Supereme on Stack Overflow See other posts from Stack Overflow or by Supereme
Published on 2010-03-16T13:08:01Z Indexed on 2010/03/16 13:36 UTC
Read the original article Hit count: 301

Filed under:
|
|

Hi!
I'm using an object of JTextArea in my application which deals with sending sms. I've used a DocumentFilter so as to allow only 160 characters to be typed in the textarea but now, I want the size of the textarea to be constant. it goes on increasing if I keep writing on the same line without pressing 'enter' key or even when I keep on pressing only 'enter' key. I tried once using 'scrollbar' too but the problem remains same. Suggest me something over this.

© Stack Overflow or respective owner

Related posts about textarea

Related posts about java