From: Kevin M. <qk...@lm...> - 2001-07-19 13:57:45
|
I am trying to use threads so that I can revalidate some panes while performing a series of long tasks, i.e. long task update & revalidate pane long task update & revalidate pane etc. This would be done in a loop. I have tried several things: synchronize module ------------------ This is used with the notify() & wait() methods. While there are seperate threads they are not running concurrently. This is no good, What I need is synchronous threads. A good example at http://groups.yahoo.com/group/jpython/message/1641 swing.Timer ----------- More promising. I started a timer to update the GUI every 5 seconds and ran long tasks as swing.SwingUtilities.invokeLater(task). However, this didn't work. It seems the timer is blocked until the task is completed (demo attached). SwingWorker Class ----------------- ? Can someone point me in the right direction here? Any good examples,links? Any help appreciated, Kevin _________________________________________________ Name/Title : Kevin McNamee, Software Consultant Phone : +46 13 32 1165 E-Mail : kev...@er... |