Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT and Threads

You need to do something like:

                Display.getDefault().syncExec(new Runnable() {
                        public void run() {
                                listenerView.appendText(fmessage);
                        }
                });

You can also do asyncExec().

Regards,
Mary Kroening
Amzi! inc.

At 05:36 PM 7/15/2003 +0200, you wrote:
I have an application using SWT. This application launch a thread that is doing some things...
i would like that this thread writes some text into my SWT application...
i have a problem that is : "org.eclipse.swt.SWTException: Invalid thread access"
i don't find another way to do that...
is there someone who has a good idea ???
thanks a lot
regards
 
matthieu

Back to the top