Results 1 to 2 of 2

Thread: GUI and Threads

  1. #1
    rp181 is offline Member
    Join Date
    Mar 2009
    Rep Power

    Default GUI and Threads

    I have a runnable class that starts a thread (new Thread().start). This thread will be entering a loop that lasts forever. How do i update the invoking classes GUI while running? Even without a loop, appending to a textarea wont show. I tried JPanel.revalidate.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    What does your current program look like now? How are you trying to solve this now? Are you performing background processes off of the EDT? Are you calling Swing calls on the EDT? An article that might interest you: Concurrency in Swing

Similar Threads

  1. Threads!
    By rameshraj in forum Advanced Java
    Replies: 1
    Last Post: 05-04-2008, 04:11 PM
  2. How to use Java threads
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-09-2008, 06:30 PM
  3. applets & threads
    By willemjav in forum Java Applets
    Replies: 2
    Last Post: 04-04-2008, 06:59 AM
  4. Using threads
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-11-2007, 10:25 AM
  5. Threads
    By one198 in forum Threads and Synchronization
    Replies: 1
    Last Post: 11-20-2007, 06:15 PM

Posting Permissions

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