I'm writing MineSweeper and using JButton
s on a GridLayout
. The numbers of rows and columns are entered by the user, so setting fixed size may cause several problems.
How can I remove the space between the buttons without setting the fixed size of the panel?