Load HTML or word doc from Java application. ?

  • Thread starter Thread starter lkool
  • Start date Start date
L

lkool

Guest
I just want to load a file when a user clicks on a button. the file could be HTML or word doc I don't care. it is nothing fancy. The file is located in the same directory as the app.
 
How about something like...

Runtime.getRuntime().exec( new String[] { "open", "/Applications/TextEdit.app" } );
 
How about something like...

Runtime.getRuntime().exec( new String[] { "open", "/Applications/TextEdit.app" } );
 
Back
Top