This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I the GridLayout, I add several buttons into the pane, the size of all the buttons are same: the same size as the grid. How can I make one button smaller than others? or How can I make components smaller than the size of a grid in GridLayout?
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.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.