Skip to content

Instantly share code, notes, and snippets.

@kaskavalci
Created September 26, 2015 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaskavalci/720a2a3226f59080cf48 to your computer and use it in GitHub Desktop.
Save kaskavalci/720a2a3226f59080cf48 to your computer and use it in GitHub Desktop.
Runnable runner = new Runnable() {
@Override
public void run() {
File index = new File(getMyURL());
if (index.exists()) {
browser.setUrl(getMyURL());
}
browser.refresh();
}
}
Display.getDefault().syncExec(runner);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment