Skip to content

Instantly share code, notes, and snippets.

@mancvso
Created August 26, 2013 13:55
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 mancvso/6341664 to your computer and use it in GitHub Desktop.
Save mancvso/6341664 to your computer and use it in GitHub Desktop.
JavaFX run on UI thread
Platform.runLater(new Runnable() {
@Override
public void run() {
//Execute some script to hide a div
webEngine.executeScript("document.getElementById('myDiv').style.display='none';");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment