gheystyle gheystyle - 4 months ago 26
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

You can disable the button on the click.

   b1.setEnabled(false);