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 limit TextArea row number

dukkeDec 1 2011 — edited Dec 1 2011
Hi,

I want to set the TextArea row number to 1 initially. And I want the number of rows to grow dynamically as the user inserts "enters".
I could do this in javafx 1.3 with the lines property, in javafx 2.0 that is gone. I've tried using the setPrefRowCount(..) but it doesn't do anything (I suppose because it's just a preferred setting).

How can I achieve this in javafx2.0?

Thanks in advance,
Pedro Duque Vieira
This post has been answered by zonski on Dec 1 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2011
Added on Dec 1 2011
3 comments
1,042 views