I find the debug mode very helpfully, but sometimes it does not work I notice. I am making like a tic tac toe game and I notice that it just crashes in debug or something. I am wondering why this happens? The program works fine, like i click on each button and they change to x or o, but in debug mode it doesn't. This loop for instance, I click on a button and goes through the loop but it never changes the image in the selected tile and just goes through the loop and says at the end "Source not found". It wont even let me click on another button. Am I using the debug wrong, or its just how it is?
Thanks
int xxx = 1; while(xxx <=9){ if(source == btn[xxx] && turn < 10) { // btnEmptyClicked = true; if ((turn % 2 == 0)){ btn[xxx].setIcon(new ImageIcon(imagee)); } else { btn[xxx].setIcon(new ImageIcon(image)); } turn++; } xxx++; }