Quantcast
Channel: How to update SWT GUI from another thread in Java - Stack Overflow
Browsing latest articles
Browse All 5 View Live

Answer by Ravi Chandra for How to update SWT GUI from another thread in Java

When creating the separate thread from the main thread pass the Gui object to the new thread and u can access all the properties of that GUI object.

View Article



Answer by McDowell for How to update SWT GUI from another thread in Java

Use Display.asyncExec or Display.syncExec, depending on your needs.For example, another thread might call this method to safely update a label: private static void doUpdate(final Display display, final...

View Article

Answer by nanda for How to update SWT GUI from another thread in Java

You can actually just sent a message to the GUI thread that some modification has been changed. This is cleaner if you see it from MVC perspective.

View Article

Answer by Adamski for How to update SWT GUI from another thread in Java

There's a tutorial here."SWT does make a point to fail-fast when it comes to threading problems; so at least the typical problems don't go unnoticed until production. The question is, however, what do...

View Article

How to update SWT GUI from another thread in Java

I am writing a desktop application using SWT. What is the simplest way to update GUI controls from another thread?

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images