I've done some reading on swing and JButtons but obviously not enough. I'm confused I have a program that uses JButtons and is essential that when the button is pressed it executes the code within the action performed method once (its a counter that increases once each time the button is pressed). But when the button is pressed once it continues to loop until the button is pressed again, then it starts with a loop all over again. Is this normal? and how do I get it to stop?