I need to use gridbaglayout. I have a selfdefined panel, that i use for my panels. I thought it is possible with a static variable, which stores the size of the largest instanze of a panel. other panels should return this variable with getPreferredSize.
posted 14 years ago
you can set the gridBagConstraints.ipadx value for the constraints of the panels. then the gridbaglayout will set the width of each panel to this value. Chantal