单击Java Swing中的按钮后如何调用Outlook? [英] How to call Outlook after clicking a button in Java Swing?
本文介绍了单击Java Swing中的按钮后如何调用Outlook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用Java Swing开发了一个桌面应用程序.当我单击一个按钮时,我想打开Microsoft Outlook.我无法弄清楚做到这一点.有人可以帮我吗?
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?
推荐答案
一种方法是将Desktop
类用于open(File)
,Outlook是默认使用者.或@Guillaume指出,请使用 Dekstop.mail()
(或重载的变体),专门用于电子邮件客户端.
One 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.
这篇关于单击Java Swing中的按钮后如何调用Outlook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文