Results 1 to 2 of 2
  1. #1
    Fiaz is offline Member
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Question How to notify the completion of a process in SwingWorker to another class

    I have an application in which I have an action class (GUI) that brings up a table (another class) with related data. Now the data for the table loaded from DB being too huge, needs to be done in a SwingWorker (doInBackground method). The table class is inherited by a number of other classes and has various other functions.

    If I do some action in the GUI (say click on a button), it invokes a method in the corresponding table class and in here the SwingWorker does all the loading. Once loading is done, I need to notify the GUI class of the same to update some related gui. Any suggestions of how to connect from the done() method of SwingWorker in one class (say Class1) to another class (say Class2) is appreciated.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Code completion for textarea
    By praba@spiretek.in in forum AWT / Swing
    Replies: 7
    Last Post: 11-16-2009, 01:03 PM
  2. Problem in Java Class Loading process
    By gppme in forum Advanced Java
    Replies: 4
    Last Post: 04-18-2009, 05:04 AM
  3. set timeout for completion of each thread
    By bourn2lead in forum Advanced Java
    Replies: 1
    Last Post: 02-26-2009, 11:53 PM
  4. IDE with auto completion?
    By iceflyin in forum New To Java
    Replies: 8
    Last Post: 04-21-2008, 02:07 PM
  5. auto completion window does not pop-up
    By erdaffi in forum NetBeans
    Replies: 0
    Last Post: 12-11-2007, 01:48 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •