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?
Check this page, this can give you a much more detailed usage of the Desktop API.