Skip to main content

When i resize JTextArea,How can i change its Container(JPanel)'s size?

No replies
junxiang
Offline
Joined: 2006-02-14

A JTextArea,Its Container is JPanel.
I resize the JTextArea by calling setRows() Method.
When i resize the JTextArea,How can i change the JPanel's size auto?

Thanks!