1

I have a simple Gui that lets a FileChooser select a text file. When I click on a button, I want the file to open in a default text editor, how do I do that with JavaFX, please? Thanks.

  • 2
    Have you tried this [post](http://stackoverflow.com/questions/550329/how-to-open-a-file-with-the-default-associated-program)? – Kevin May 18 '16 at 20:15

1 Answers1

1

See: How to open a file with the default associated program

Just call

Desktop.getDesktop.open(yourFile);

Community
  • 1
  • 1
Marcel
  • 1,606
  • 16
  • 29