开发者

JavaFX partial refresh

开发者 https://www.devze.com 2023-01-10 12:34 出处:网络
Can JavaFX refresh part开发者_如何学Go of the page? Example, rearrange the top scorer in scoreboard like AJAX?If you\'re implying that you want to refresh part of a web page, then the only way to get

Can JavaFX refresh part开发者_如何学Go of the page? Example, rearrange the top scorer in scoreboard like AJAX?


If you're implying that you want to refresh part of a web page, then the only way to get a JavaFX running on a webpage is to distribute it as a Java applet. You can make Javascript calls from JavaFX (see here for example) however I would argue that in most cases you'd want to avoid mixing applets and Javascript unless you have a very good reason to do so.

If you want to stick with JavaFX, then I would recommend trying to write the whole app with JavaFX and distributing as an applet, but be warned that there are still many criticisms of the user experience with JavaFX and applets, thought it has been done.

In answer to your question, assuming you had written a complete JavaFX app, then refreshing part of the app "page" would be trivial.

0

精彩评论

暂无评论...
验证码 换一张
取 消