Java ActionListener buttonPress() restriction

Posted by Extinct23 on Stack Overflow See other posts from Stack Overflow or by Extinct23
Published on 2012-09-30T21:35:31Z Indexed on 2012/09/30 21:37 UTC
Read the original article Hit count: 177

Filed under:
|

Is there a way to restrict this button to only being impressed once? The reason I ask is because for some reasons every time the button is pressed it disrupts the rest of my code. So in effort to save a massive amount of time debugging, it would be much easier to just somehow restrict the number of times it can be pressed. Thanks in advance.

ActionListener pushButton = new buttonPress();
start.addActionListener(pushButton);

© Stack Overflow or respective owner

Related posts about java

Related posts about actionlistener