Quantcast
Viewing all articles
Browse latest Browse all 4

How to launch default mail application with Java 6

The Desktop class was added in Java 6 to handle launching associated applications on the native desktop. Following shows how to launch the default mail application and open a mail composing window. Desktop desktop = Desktop.getDesktop(); desktop.mail(); Or you can use a mailto: URI to also fill out the address field. Desktop desktop = Desktop.getDesktop(); […]

Viewing all articles
Browse latest Browse all 4

Trending Articles