JavaFX redirect to pure html webpage
Hi
Does anyone know a simple way to get, for example, a button action event within a web deployed java fx application to direct the browser to a new web page?
So in my application I want to go to the home page of my website when the user clicks a javafx button.
I think this can be done with javascript & javafx, but i think it is messy......
Re: JavaFX redirect to pure html webpage
When seeking help with JavaFX, you should always mention the version. The solution for FX Script (1.x) may be totally different to one for FX 2.x, which is a Java API.
You can probably use java.awt.Desktop#browse(...) with either version, though. Or if you can include an Applet (maybe not visible) on the same page and communicate with it, you can use getAppletContext().showDocument(...).
db
Re: JavaFX redirect to pure html webpage
Re: JavaFX redirect to pure html webpage
There's a way with pure FX2 code, but maybe someone will point your nose in the right direction over at SO.
db