Building a Monopoly Board with GridBagLayout
- by Oetzi
I have been building a Java version of Monopoly in my spare time and am having some trouble understanding layouts etc for Swing.
Each one of my spaces on the board is a essentially a custom JButton and I have been trying to lay them around the edge of a frame (like on the monopoly board itself). I can't seem to find a useful explanation of how the layout system works and so am having trouble do so.
Could someone please give me an example of how they would lay the buttons around the edge of the frame? Should I be using a different layout?