SyntaxFix
Write A Post
Hire A Developer
Questions
Disable the button with setEnabled(false) until it is safe for the user to click it again.
setEnabled(false)