0

I got 1 when i pass button and if i pass the second timeis still 1 not is ++

int click = 0;
public ButtonHandler(int x, int y, MineGrid g)
{
row = x;
col = y;
grid = g;
}
public void actionPerformed(ActionEvent event)
else
{
    click ++;
    JButton button = (JButton)event.getSource();
    //        click ++;

    button.setText(String.valueOf(grid.getInfoAt(row, col)));
     //      click ++;
    System.out.println (click);
    MineSweeper2.checkforwinner(click);
}
1
Contributor
1
Reply
14
Views
2 Years
Discussion Span
Last Post by My_1
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.