Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008, 10:04 AM
Member
 
Join Date: Dec 2007
Posts: 37
rameshraj is on a distinguished road
Threads and Swing!
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-11-2008, 06:54 PM
Member
 
Join Date: May 2008
Location: SA
Posts: 4
Johnny Kewl is on a distinguished road
Google for SwingWorker, its made for this, and then have a squiz at the source to see how it re-joins the gui thread, if you interested in the details.

Essentially of the thread has done its thing, it asks the gui thread to do the display when its ready... thats the idea
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-12-2008, 03:49 PM
Member
 
Join Date: Dec 2007
Posts: 37
rameshraj is on a distinguished road
Thank you the problem now seems to be solved.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Threads! rameshraj Advanced Java 1 05-04-2008 05:11 PM
Java Threads JavaForums Java Blogs 0 12-17-2007 01:21 PM
Using threads Java Tip Java Tips 0 12-11-2007 11:25 AM
Threads one198 Threads and Synchronization 1 11-20-2007 07:15 PM
Using threads as a countdowntimer lacoste Threads and Synchronization 4 07-20-2007 02:06 PM


All times are GMT +3. The time now is 12:59 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org