gheystyle gheystyle - 1 year ago 76
Java Question

Is there a way to limit user to click a jbutton once in java

If in a card game i only want to the user to click the deal button once.

Answer Source

You can disable the button on the click.

   b1.setEnabled(false);