Re: [Java-gnome-developer] How do you fire an event on the main Gtk thread?
Brought to you by:
afcowie
From: Alexey T. <a_t...@ma...> - 2009-01-01 20:34:08
|
> 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. > Hello. I think this is very important feature. Can developers explain how to do this? |