-
Jan 20th, 2011, 01:08 AM
#1
Why should any swing call back implementation execute quickly?
Hi all,
I have a java swing query as above. can you please answer me?
Last edited by ydeveloper66; Jan 20th, 2011 at 01:13 AM.
-
Feb 21st, 2011, 07:27 AM
#2
-
Mar 9th, 2011, 05:54 PM
#3
If by "swing callback implementation" you mean a chunk of code executing on the Event Dispatch Thread. Then the answer is, so it won't block the user interface, as Swing is single threaded. While the EDT runs your long running process it is not responding to user interaction, this makes your application appear sluggish, or in worst case scenarios, freeze completely until the long running process is finished.
If you mean something run off of the EDT then there is no reason it needs to be a short process.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules