```
if(clicked == button) {
    button.setIcon(image1);
    if(clicked == button2) {
        button2.setIcon(image2)
        button1.setIcon(image0)
     }
}

```

Basically what I want the code to do, is upon clicking '`button`' it's image will be set to '`image1`' and after that happens(specifically not before) if another button is clicked it will set that button(button2) to '`image2`' and make the first button display '`image0`' it's "idle" image, if you will. 

Now if all of this makes sense, I'd like to get an answer of why clicking 'button2' after clicking 'button' doesn't do anything.

YES, I have the action listeners, and everything setup for the JLabels etc, all I need help on is getting the if statement inside of the other if statement to be 'run' after the first if statement, and only if the first '`button`' is clicked.