When I assigned the task of building a panel containing a TextArea at the top, a label directly below it, and a button directly below the label.
If the three components are added directly to the panel, which layout manager that selected can the panel use to ensure that the TextArea absorbs all of the free vertical space when the panel is resized?
There are two layout manager can be used,i.e GridLayout and GridBagLayout.But I don't make decision .which should I select?And why?
Thank u