Update swing components while calculating
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Kevin_Parret
Posted On:   Tuesday, June 4, 2002 07:55 AM

When I write to a textArea while my program is calculating, the Gui does not refresh, is it possible to refresh my Gui?

thx in advance

Re: Update swing components while calculating

Posted By:   Anonymous  
Posted On:   Tuesday, June 4, 2002 08:51 AM

yes it's possible to refresh GUI.



you must use a SwingWorker to execute your calcul.



swing is a thread based working, so if you want that your

interface will be able to refresh itself you must use

thread to do calcul.


look in the site of sun, swing worker is a standard

implementation of thread working in swing GUI.
About | Sitemap | Contact