【发布时间】:2012-06-13 14:40:08
【问题描述】:
如何通过单击按钮在默认浏览器中打开链接,类似于
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
open("www.google.com"); // just what is the 'open' method?
}
});
?
【问题讨论】:
-
您可能已经尝试查看在您的last question 接受的答案中使用的JavaDocs for the class!那些文档。非常方便,可以将它们附加到您的 IDE 或将在线版本添加为书签。
标签: java swing browser hyperlink desktop