Posting the rest of that code sheds much light on the problem. The issue lies in your creation of the two buttons:
/********** 2 button ******************/
JButton click_1 = new...
Type: Posts; User: copeg
Posting the rest of that code sheds much light on the problem. The issue lies in your creation of the two buttons:
/********** 2 button ******************/
JButton click_1 = new...
Can you post the full code that reproduces the problem? The code you posted doesn't seem like it should behave as you describe, making me think the problem lies outside of the code you posted.