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.

[476 byte] By [JakeJeckela] at [2007-11-27 11:43:31]
# 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.

1cMas5_cowa at 2007-7-29 17:50:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 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.

JakeJeckela at 2007-7-29 17:50:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

If the window is unfocused it does need 2 clicks anyway (1 to focus it and 1 to do the action).

Am I correct?

1cMas5_cowa at 2007-7-29 17:50:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 4

I just tested the out of focus theory and it seems that the simulator is built so that you do not have to have focus on a window in order to select a button.

Any other ideas?

JakeJeckela at 2007-7-29 17:50:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 5

No.

1cMas5_cowa at 2007-7-29 17:50:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 6

One of the guys I'm working with says that there was one case where he had to press the button on the hmi several times before it finally registered and did what it was suppose to. Could this be a bug in the older version of java?

JakeJeckela at 2007-7-29 17:50:26 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...