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.
            Asked
            
        
        
            Active
            
        
            Viewed 1,785 times
        
    1
            
            
        - 
                    2Have 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 Answers
1
            See: How to open a file with the default associated program
Just call
Desktop.getDesktop.open(yourFile);