Reputation: 1427
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
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