Java Programming:Threads and Swing Components?

java programming
Bishnu B asked:


I have to work in threads and swing.
I have a class that has some frame components like textarea,textfield and so on.When the button from the frame is clicked, a new working thread is created which reads the input from the InputStream.Now I want to display the read data to the textarea of the frame.How can I do this any idea?I have tried but the message is only printed on the standard output and not displayed on the textarea.

Tags: , , , , , ,

2 Responses to “Java Programming:Threads and Swing Components?”

  1. Alibaba Says:

    For if not check the internet visit httpwwwgreatfundablogspotcom httpwwwexpertsviewblogspotcom.

  2. Hominid Says:

    You shoud do such update GUI things on event dispatch thread where you can pown n00bs. There is some method on object where asks isEDT? or some n00b shite like that. Use context hellp or don’t be n00b. Update property on object inline and should be fine or SwingUriliities.InvokeLater().

    pownage

Leave a Reply