I am using netbeans 7.0.1 to build a simple JFrame application
I am putting a textarea and a couple of buttons on using the gui builder
the buttons are on the same vertical level and the right hand button shifts right on resize of the window – that is fine but I would like the text area to do the same – i.e. resize to fit the relevant width of the window.
For the life of me I cannot see how this is done – I have looked around and I can find code for a hand coded app but not for netbeans gui builder
It’s all about the layout you’re using. I would personally use GridBagLayout, probably because I am accustomed to it. Basically, you should follow these steps:
You can read more about GridBagLayout here: http://netbeans.org/kb/docs/java/gbcustomizer-basic.html
Learning GridBagLayout could take a couple of hours, getting used to it could take a couple of days, but it’s worth learning. Just my 2 cents.