Resizing JButton's in swing/awt
843804Jul 25 2005 — edited Jul 25 2005Hi, I am trying to create a monopoly board in java. So far I have created the board using the following technique. I put a borderlayout on the main panel, then gridlayouts on the outside panes in order to have to 10 spaces along each edge of the board (each space being a JButton). My problem is that these JButtons are not all perfect squares. I have tried using the setSize() method and the resize() method (now deprecated) but they do nothing. The code will compile and run fine but the JButtons still remain the same squished rectangles. Any help on how I can turn these into perfect squares?