JTextArea resizes if setLineWrap() is set
Posted on 2002-07-30
Wonder if someone could help me folks....
I have a JTextArea control that is inside a JScrollPane. The JScrollPane control is inside a GridBagLayout panel.
What I want the control to support is word and line wrapping so I've set both properties as follows:
The problem I have is when the app is run, the JTextArea control quickly resizes itself just after its displayed. This is annoying and something that I cannot have happen.
The constraints I've set and are required for the JSrollPane are:
Can someone help? Thanks.