To maximize JTextArea on maximizing the Jframe ?
i have a JFrame which contains a JTextArea now on it's default size it looks good but when i clicked on maximizing option the frame gets bigger but the text area is still smaller,is there any way that on maximizing the frame the text area size also increases itself ??
Any comment will be appreciated.
Re: To maximize JTextArea on maximizing the Jframe ?
The key to this is in the layout managers your GUI is using. If the JTextArea (which is usually held by a JScrollPane) is held by a container that allows the scrollpane to enlarge when the container enlarges, such as a BorderLayout in the CENTER position, you're all set. For more on how to use the layout managers, please check out: Lesson: Laying Out Components Within a Container