T
Todd
Hello all,
I am using NetBeans 5.5.1 (can't upgrade to 6) to develop a GUI. I
have done this many times before, but have never run across this
issue. I don't know if it is NetBeans related, but I included which
IDE I am using in case someone believes that it may be.
So, as the subject says, when I single-click on a JButton in my GUI,
the application responds as if the button had been clicked at least
twice (sometimes more). Is there some button setting that I am
missing? I am utterly at a loss.
The only thing I could think of was to put a lock around the code in
the callback, however, it seems to run so quickly that the lock is
released almost as quickly as it is set, allowing the code to execute
twice. BTW, the code is just a call to a method, whereas the method
is longer and called from multiple places.
Thanks for any insights,
Todd
I am using NetBeans 5.5.1 (can't upgrade to 6) to develop a GUI. I
have done this many times before, but have never run across this
issue. I don't know if it is NetBeans related, but I included which
IDE I am using in case someone believes that it may be.
So, as the subject says, when I single-click on a JButton in my GUI,
the application responds as if the button had been clicked at least
twice (sometimes more). Is there some button setting that I am
missing? I am utterly at a loss.
The only thing I could think of was to put a lock around the code in
the callback, however, it seems to run so quickly that the lock is
released almost as quickly as it is set, allowing the code to execute
twice. BTW, the code is just a call to a method, whereas the method
is longer and called from multiple places.
Thanks for any insights,
Todd