gheystyle
gheystyle

Reputation: 65

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.

Upvotes: 1

Views: 4643

Answers (1)

Vincent Ramdhanie
Vincent Ramdhanie

Reputation: 103145

You can disable the button on the click.

   b1.setEnabled(false);

Upvotes: 5

Related Questions