Results 1 to 3 of 3
Thread: chess game! plz help!
- 07-10-2011, 09:00 PM #1
Member
- Join Date
- Jul 2011
- Posts
- 2
- Rep Power
- 0
chess game! plz help!
I'm going to program a 2 player chess game..
it would be too simple! even not use mouse!
where should i start!?
I started a little, but now it seems to be unusable..
My problem is , using jLabels..
for moving, it get the coordinate and move the jLabel by .setLocation();
I don't now if use jLabel in a class for example pawn, and then when NEW a class a jLabel be newed in it or NOT..?
is it correct or I'm going the wrong way!?
plz help me!
-
One simple solution is to not move any components at all. Instead make a 2D grid of JLabels, say placed in a JPanel that uses GridLayout(8, 8), and rather than change JLabels, if you want to "move" a piece, simply change the ImageIcon held by involved the JLabels.
- 07-11-2011, 07:46 AM #3
Member
- Join Date
- Jul 2011
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Chess game selection screen
By gruffyddd in forum AWT / SwingReplies: 1Last Post: 03-19-2011, 03:27 AM -
Chess Game - Movement
By danborgir in forum Advanced JavaReplies: 1Last Post: 03-14-2011, 11:45 AM -
chess game
By michail in forum New To JavaReplies: 13Last Post: 01-12-2010, 07:24 AM -
Chess game
By michail in forum New To JavaReplies: 4Last Post: 12-23-2009, 06:51 PM -
New Chess-Like game
By jSarK0Y in forum Reviews / AdvertisingReplies: 3Last Post: 06-10-2009, 03:28 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks