[java-gnome-hackers] Java-Gnome thread model?
Brought to you by:
afcowie
From: Tom B. <Tom...@Su...> - 2003-02-20 19:28:13
|
Hi all, What's the thread model for Java-GNOME development? Swing requires that all GUI updating happen on the event dispatch thread, while the AWT pretends it's fully multithreaded. I haven't found any documentation suggesting threading rules for Java-GNOME, but there also isn't much synchronization effort either. What's prompting this question is that I'm writing a GUI front-end for Sun's VPN client using Java-GNOME, which will have a status window (a GtkTextView) updated by a timer. Since I couldn't find any timers in Java-GNOME, I'm writing a simple one that just loops in a separate thread. Can this thread directly set the TextBuffer's text, or should it conj an event to do it on the main thread? Tom |