I developed a desktop application in Java Swing. When I click a button, I want to open Microsoft Outlook. I am unable to figure it out to do this. Can anybody help me?
See Question&Answers more detail:osI developed a desktop application in Java Swing. When I click a button, I want to open Microsoft Outlook. I am unable to figure it out to do this. Can anybody help me?
See Question&Answers more detail:osOne approach is to use the Desktop
class to open(File)
for which Outlook is the default consumer. Or as pointed out by @Guillaume use Dekstop.mail()
(or the overloaded variant) specifically for the email client.