[Java-gnome-developer] MultiThreaded Applications
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2003-07-02 12:32:02
|
Hi, I've committed some code to help create multi-threaded applications. org.gnu.glib.CustomEvents allows you to add custom 'events' (Runnable classes) to be executed in the main Gtk loop. In Gtk, all gui modification must be done from the main thread, so CustomEvents.addEvent should be used if you want to modify the gui from another thread. This is similar to swings SwingUtilities.invokeLater and invokeAndWait methods. I've tested with gcj and it does work well. -- .''`. Mark Howard : :' : `. `' http://www.tildemh.com `- mh...@de... | mh...@ti... | mh...@ca... |