CIOC
CIOC

Reputation: 1427

Asynchronously open page in SWT Browser

I have an SWT application that is using theSWT Browser class, like this:

Browser browser = new Browser(parent, SWT.NONE);
browser.setUrl(myURL);

When a big page is loading it blocks the UI because it is running on the same thread, is there any way to prevent this?

Upvotes: 0

Views: 73

Answers (1)

greg-449
greg-449

Reputation: 111142

Display.asyncExec always runs the Runnable in the UI thread. It is only useful for running UI code from a background thread, so it won't help you here.

There is no way to load UI code in the background.

Upvotes: 1

Related Questions