繁体   English   中英

如何使用requestShortcut()创建桌面快捷方式?

[英]How to Create Desktop Shortcut with requestShortcut()?

有人可以解释/教我如何使用requestShortcut方法在这个文件 ,我想让我的罐子桌面快捷方式程序运行时。

下面是我的Java代码

private static Component frame;

  public static void main(String[] args){

  JOptionPane.showMessageDialog(
                null, "Hello World", "Hello World",
                JOptionPane.INFORMATION_MESSAGE);

   //I want to create shortcut code here

  requestShortcut(true, false, ""); // return cannot find symbol
                                    // this method should create desktop
                                    // shortcut if i understand it right.
}

我们如何实际实现此requestShortcut()方法?

P / s:之所以要创建快捷方式,是因为我将快捷方式移至所有程序/启动路径。

我认为Java应用程序不能使用requestShortcut()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM