Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Expand the height of JTextarea dynamically

843804Mar 10 2005 — edited Jan 11 2008
Hello!
I m facing a typical problem in expanding the JTextArea component. I want to make it grow in height if the user types past its actual predefined size , i.e grow vertically as he types( if crossing past its boundaries). Also i cant use the scrollbars . Actually i m making a 'typetext' tool like the one available in MS-Paint / Photoshop. Plz help. I m not able to find events or methods to handle this anywhere.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2008
Added on Mar 10 2005
4 comments
688 views