Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import java.awt.Desktop;
Desktop.getDesktop().browse(new File("test.html").toURI());
import java.awt.Desktop;
Desktop.getDesktop().browse(new URI("http://www.google.de"));
import java.awt.Desktop;
Desktop.getDesktop().mail(new URI("mailto:mail@example.com"));
import java.awt.Desktop;
Desktop.getDesktop().open(new File("test.html"));
import java.awt.Desktop
Desktop.getDesktop().print(new File("test.html"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment