Opening Text Files with Default System Editor
Is there a platform independent way to open a text file using the default system text editor?
Barring that, how difficult would it be to set up some swing components to display text files? I have very little experience with GUI programming or Swing.
Where does Java find the "user-default' programs?
I just tried the DesktopDemo program from the Java Tutorial and find that it does NOT use my defauts. I've tailored my system changing MS's defaults to what I like. For example, DC on a .html file starts Firefox. DC on a .txt file starts Wordpad.
In the DesktopDemo program, it started IE for a .html file and Notepad for a .txt file. Those are NOT my defaults.
Where does the JVM look to find the "user-default" programs? I would assume on Windows it'd look in the registry. It obviously doesn't use the same path as a user can to set the defaults: Tools|Folder Options|File Types|Registered Filetypes ...