Hi, I am having an AWT window with a TextArea and few buttons. i wanted to view text files in my TextArea box. as i dont know the file size before how can i set the size of the TextArea. is there an way that we can dynamically set the size of TextArea. Thanks Regards Chandhrasekar Saravanan
I think i havent mentioned the problem clearly. I do have a scrollbars in my Textarea. the problem is i need to mention an initial size. if my file is too large, even though i have scrollbars, i am not able to display the files when it exceeds the Textarea size. how to overcome this problem
Oh, sounds like a layout problem. What kind of layout does the component you are adding the text area to have? BorderLayout would make the most sense. Add the text area to the center and it takes up all available space not taken up by other components in the other sections of the layout.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop