java.awt.Desktop 是哪个包里的?
答案:2 悬赏:50 手机版
解决时间 2021-03-15 15:44
- 提问者网友:难遇难求
- 2021-03-15 02:08
java.awt.Desktop 是哪个包里的?
最佳答案
- 五星知识达人网友:走死在岁月里
- 2021-03-15 03:34
lz你都已经说了是java.awt.Desktop了
java已经到头了。
java已经到头了。
全部回答
- 1楼网友:野味小生
- 2021-03-15 04:39
看看你的jdk的版本是不是1.6,1.6才有这个类desktop。
如果是1.5或者以下版本,没有这个类。
java.awt
class desktop
java.lang.object
java.awt.desktop
--------------------------------------------------------------------------------
public class desktopextends objectthe desktop class allows a java application to launch associated applications registered on the native desktop to handle a uri or a file.
supported operations include:
launching the user-default browser to show a specified uri;
launching the user-default mail client with an optional mailto uri;
launching a registered application to open, edit or print a specified file.
this class provides methods corresponding to these operations. the methods look for the associated application registered on the current platform, and launch it to handle a uri or file. if there is no associated application or the associated application fails to be launched, an exception is thrown.
an application is registered to a uri or file type; for example, the "sxi" file extension is typically registered to staroffice. the mechanism of registereing, accessing, and launching the associated application is platform-dependent.
each operation is an action type represented by the desktop.action class.
note: when some action is invoked and the associated application is executed, it will be executed on the same system as the one on which the java application was launched.
since:
1.6
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯