javafx webengine - How to reload a page in DukeScript -


dukescript quite clever in way handle changes model code hot-swapped @ runtime, see example here. 1 thing doesn't seem handle @ runtime though changes html layout. given runs in webview, kind of browse, nice able reload page without having stop , restart app.

so, i've tried adding "reload" button, can't find easy way after initialization:

browserbuilder .newbrowser() .loadpage("pages/index.html") .loadclass(main.class). invoke("onpageload", args). showandwait(); 

showandwait() it's supposed do, doesn't return until browser closed. there doesn't seem way act on underlying instance of webview , thread.

ha ha, simple effective solution:

<a href="index.html">reload</a> 

note: toni epple says netbeans detect change, no reload needed.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -