Javafx webview in swing component not reloading html page on document change

I have created two tab editor for html language one tab is for source and another is for design.Whenever I change source document it calls javascript method and changes html file which i have loaded in design tab using javafx webview.
currently html file is not reflecting changes immediately.If I load webview manually using right click reload option it changes but i want reload page on tab change and webview reload method is not working.

Please sign in to leave a comment.