jQuery in Action, 2nd edition*
The moose likes Game Development and the fly likes Square game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Square game" Watch "Square game" New topic
Author

Square game

Abhin Balur
Greenhorn

Joined: Feb 18, 2008
Posts: 21
Hi All,

I want to try my hands on developing some small games. I would like to start with the Square game; the one which involves sequecning the numbers, and placing them in sorted order. However i am new to Swings. So the only hurdle here is developing the GUI for me beause rest all would be pure logic. I would like to know which layout manager would be helpful, as it will involve relocating the components on a Jpanel and any method which would do the same.

Thank You.
Regards.
Brian Legg
Ranch Hand

Joined: Nov 07, 2008
Posts: 488
If I had to guess I would say probably a grab bag layout.... but you may want to ask the guys over on the Swing/AWT forum since this is more of a GUI question then an actual game question.

GL


SCJA
~Currently preparing for SCJP6
Fred Hamilton
Ranch Hand

Joined: May 13, 2009
Posts: 679
Consider using JLabels as piece components. You might also consider a gridlayout. which would be simpler than a gridbag layout. if there are any issues with gridlayout having an empty cell then you could just use a blank Jlabel for that cell.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Square game