Hi list,
 
I appologize if the question has already been asked and answered. It seems to be very simple but I can't figure out how to do it.
 
I have a JButton with an action listener registered. The goal is to prevent a "multiple click" on the button to multiply the "fireActionPerformed".
My first idea was to override the fireActionPerformed method to first disable the button, really fireActionPerformed and then re-enable the button. This doesn't work since the multiple cliks seem to be forwarded to the eventDispatchThread before the button gets disabled.
 
Did any one ever solve this problem ?
Thanks for all your answers.
 
Vincent.
 

Reply via email to