Lou Hamers wrote:AFAIK The same that you'd do in Swing/AWT, unless you mean something different. (Inside an event handler, ex https://docs.oracle.com/javase/8/javafx/api/javafx/scene/control/ButtonBase.html#setOnAction-javafx.event.EventHandler- )
Thanks for the help. I tried but an error is encountered on the Desktop class.
I found this alternative:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
What functionality do you need? if you're looking for a way to open web pages like with Desktop.getDesktop().browse(new URI("www.stackoverflow.com"));, you can use this function:
(this needs to be an instance of Application)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I wrote this code:
--------------------------------
-------------------------------
that does not give errors, but unfortunately it doesn't work!