Hai Friends,

Iam using swing application in my project with short cut keys to perform some action, it takes few seconds to process(retrieve data from server to client) ,when i press the shortcut key for three times means the action is performing thrice, i want to perform single action.is there any event queue process? how can i avoid this. please help me for this problem.

Recommended Answers

All 3 Replies

if its takes a few seconds, I assume you are using a Thread for that process. Or are you just leaving it to normal program flow??

If its the former, there are useful built-in methods to prevent duplicate runnings.

If its the latter, its the wrong way.

if its takes a few seconds, I assume you are using a Thread for that process. Or are you just leaving it to normal program flow??

If its the former, there are useful built-in methods to prevent duplicate runnings.

If its the latter, its the wrong way.

what are the buid in methods to avoid this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.