Hi,
I would like to make a JTextArea automatically size adjustable.
Specifically, for example, if I have a JTextArea, I'd like to
setText()
at runtime and then have the textArea adjust its size to display all
its text (SCROLLING IS NOT ALLOWED TO USE HERE). After that I can get
its preferredSize and adjust the outer container's preferred size
accordingly.
Is this possible at all or is there any other text container capable
to do the job?
Thanks!
Andrew Thompson - 21 Nov 2003 22:43 GMT
..
> I would like to make a JTextArea automatically size adjustable.
A JLabel given an html string should size itself
to fit the text.
HTH
--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site