Think about how your method works - better yet step through the code under the conditions you wish to test. Consider the scenario where your mouse is over the red square - the code first evaluates...
Type: Posts; User: copeg
Think about how your method works - better yet step through the code under the conditions you wish to test. Consider the scenario where your mouse is over the red square - the code first evaluates...
Add some println's in there to look at the boolean value after the evaluation of each square in the mouseMoved method, then move your mouse over the boxes to see what the value is after each...