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.
I got it, but how can I make a Jpanel witch uses GridLayout(8,8) ???
Originally Posted by Fubarable
I had done it with drawing rectangles !!
Ur solution seems to be better but how!?