Announcement Announcement Module
Collapse
No announcement yet.
Why should any swing call back implementation execute quickly? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 01:13 AM.

  • #2
    Yes I come back...

    Comment


    • #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.

      Comment

      Working...
      X