Swingworker thread or just a plain thread?

Discussion in 'Software' started by smily, Jul 8, 2010.

  1. smily

    smily

    Joined:
    Jul 8, 2010
    Messages:
    1
    Likes Received:
    0
    Hello,

    I'm trying to write an application which reads streaming information from a socket and displays it in graphical form. I'm using a Java Swing application. Should I put the code for reading information from the socket in a Swingworker thread or just a plain thread. By plain thread I mean something like:

    private static class MessageLoop implements Runnable {
    ..

    Thanks!
    smily
     
    smily, Jul 8, 2010
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.