Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to extend number of lines in TextArea?

Status
Not open for further replies.

xabu

Programmer
Apr 26, 2001
6
0
0
DE
Hello out there...

After a certain number of lines you can´t write more on a TextArea. How can I extend the number of lines in a TextArea?

Thank you for your answers

!Xabu
 
use setRows(int rows) -- all this is contained i your javadocs, which you should have got when you got your development kit ;-)
b[sup]2[/sup] - benbiddington@surf4nix.com
 
Thank you for your answer. But thats not what I ment.
Probably I didn´t make my self clear enough.
You can even set the number of rows to 1000 but still iyou won´t be able to wirte more than a certain number of signs.
It just cuts.


 
Oh, a JTextArea? You need to add it to a ScrollPane - so the scrollbars appear. Is this what you mean? I think an awt TextArea automatically scrolls?
b[sup]2[/sup] - benbiddington@surf4nix.com
 
Thank you for your answer!

It´s ture that a TextArea automatically scrolls but still after a certain number of signs (letters) you just can´t write more even if you have scrollbars. There seems to be a limit of maximum signs (letters)!

!xabu
 
Use swing anyway, its better looking! ;-)
b[sup]2[/sup] - benbiddington@surf4nix.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top