I may have misunderstood the question. I thought the OP didn't want to be able to press the button again, once it has been changed.
Regards,
Jim
Type: Posts; User: jim829
I may have misunderstood the question. I thought the OP didn't want to be able to press the button again, once it has been changed.
Regards,
Jim
The easiest way would be to disable the button. It will then change the textual appearance to indicate it has been disabled.
JButton b = myButton("X");
b.setEnabled(false);
Regards,
Jim