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!

TextArea - Is it possible to get the number of lines?

ascuccimarraJan 31 2013 — edited Feb 1 2013
I was wondering if there's any way to know how many lines of text a textarea has. And also, if it'd be possible to listen for number of lines changes. I'm trying to develop a component which displays just one line at first, and then starts to grow as necessary, as the number of written lines increase.
Let me know if it's not clear enough.

Thanks in advance.
This post has been answered by Sai Pradeep Dandem on Feb 1 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2013
Added on Jan 31 2013
8 comments
2,113 views