Sometimes a single click is unresponsive with JButton
I'm working on a simulator that can run pretty slow at times due to it's massive size. There have been complaints made that sometimes when a user presses a button on the hmi, nothing seems to happen and they have to press it again.
Do you guys have any incite into what could be causing this?
Unfortunatelly, I can't show you guys any of the source code and my team is stuck using Java version 1.4.2_04_605.
Any help would be GREATLY appreciated.
# 1
It is responsive, the problem is that you are using so much memory you create a sort of delay while resources are loading. Its not a code error, but the problem can be solved by speeding up your application.
# 2
Although I'd like to think this is what's happening, I've had occurences where I'll press the button and nothing will happen but the rest of the hmi continues to update regularly. It's not until I press the button a second time, will something happen. The event triggered by the button also only occurs once, so I'd assume that the first click just never registered.
My current belief is that there is something weird going on with pushing a button on an unfocused window or maybe there is some kind of bug with the event listener.