abcast
asked on
swing layouts & resizing
I have a JDialog. The layout used by this JDialog is SpringLayout. I have two JPanels within this JDialog. I would like both of these panels to resize when I resize the JDialog. How can I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
How can I do this with a GridBagLayout though? I know there must be some way. I want the JLabels to stay the same size, but the JTextFields to increase their vertical size as the user resizes the form.
use a BorderLayout for that
ASKER
Well, I would like to use a GridBagLayout because I want to control the vertical and horizontal spacing between some of the components.
can't help you sorry, i never use it. find it far too cryptic and never found a layout that couldn't be done with other managers.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER