Re: Starting XUL from JavaXPCOM

Michal Ceresna <[email protected]>
Newsgroups gmane.comp.mozilla.devel.java
Message-ID <200605102042.08176.michal.ceresna__38334.2847497717$1147286488$gmane$org@gmail.com>
On Wednesday 10 May 2006 19:31, Ray Hilton wrote:
Hello,

the nsIAppStartup.run() starts the main gui (event-dispatching) thread. 

How to execute some code on the gui thread depends on your widget
system. E.g. in SWT you have Display.asyncExec(), in  Swing you have
SwingUtilities.invokeLater(), and so on.

Also, one common solution is to trigger some event, e.g. set a Timer 
and execute your code in the callback.

best regards,
Michal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.