i check`t the points and you right! all the points are the same...
where is the problem in may code because i adding the pieces to the panel ... way the draw is on the same point?
this is my...
Type: Posts; User: boaz1001
i check`t the points and you right! all the points are the same...
where is the problem in may code because i adding the pieces to the panel ... way the draw is on the same point?
this is my...
i get the same value in evry labels
public class Board implements MouseListener
{
private int x;
private int y;
private Point location;
private ImageIcon picture;
private JLabel label;
i added print because i want to print the points in evry piece... but he doesnt print the point... he prints me all the time the last x and y
of the last piece (map[8][11])
my game is like the game exagon know that game?
so i want that the board will be a matrix... i added printers because i want to know what is the pointers in evry piece and piece...
but i write me...
I built a game that built an matrix of labels i add the labels an mouselistener and The problem is that when I press event on a
particular label, say there is map[0][0] It create an event no...