Created
August 26, 2013 13:55
-
-
Save mancvso/6341664 to your computer and use it in GitHub Desktop.
JavaFX run on UI thread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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