My Java Swing application generates an HTML file, and I want to open it with the default browser when it is generated and saved. How can I do this?
If you are using Java 6, use Desktop.open(). It allows you to open any file with the default application associated with its file type on the system.