posted 13 years ago
GridLayout makes all components added to it the same size. What you would have to do is add the button to a panel with a different layout (i.e. FlowLayout) and then add that panel to the container with the GridLayout. The panel will take up the entire "grid segment", but the button will just be default size inside the panel.