Building a Monopoly Board with GridBagLayout

Posted by Oetzi on Stack Overflow See other posts from Stack Overflow or by Oetzi
Published on 2010-06-14T15:45:03Z Indexed on 2010/06/14 15:52 UTC
Read the original article Hit count: 260

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing