[Java-gnome-developer] How do you fire an event on the main Gtk thread?
Brought to you by:
afcowie
From: Jacek <ja...@gm...> - 2008-12-22 14:18:46
|
If I am processing some logic on a background thread and want to exec asynchronously some event on the main GTK+ thread, how can I do that in java-gnome? In Swing, you use SwingUtilitilies.invokeLater(Runnable) for this. In SWT, it's Display.asyncExec(Runnable). What is the equivalent API for Java-Gnome? P.S. A typical usage is for propertyChange events in JavaBeans...if any UI element listens to them, it's logic should (usually) only be invoked on the main thread. -- View this message in context: http://www.nabble.com/How-do-you-fire-an-event-on-the-main-Gtk-thread--tp21128584p21128584.html Sent from the Gnome - Java Binding - General mailing list archive at Nabble.com. |