Is the code added in following document change listener will always get executed in JavaFX application thread ?
webEngineObject.documentProperty().addListener(new ChangeListener<Document>(){
@Override
public void changed(
ObservableValue<? extends Document> arg0,
Document arg1, Document arg2) {
//some code here
}
});
Or do I need to add Platform.runLater() ?
When I looked at thread stack after hitting a breakpoint there, it looks like code was getting executed in JavaFX Application Thread itself, but wanted to confirm as couldn't find any comment in documentation regarding this. Any link to documentation which mentioned this would be really helpful.