[英]How to Create Desktop Shortcut with requestShortcut()?
Can someone explain/show me how to use requestShortcut
method in this document , I want to make my jar a desktop shortcut while program was running. 有人可以解释/教我如何使用requestShortcut
方法在这个文件 ,我想让我的罐子桌面快捷方式程序运行时。
Below is my Java code 下面是我的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.
}
How do we actually implement this requestShortcut() method? 我们如何实际实现此requestShortcut()方法?
P/s : The purpose I want to create shortcut because I will move the shortcut to path all program/startup. P / s:之所以要创建快捷方式,是因为我将快捷方式移至所有程序/启动路径。
我认为Java应用程序不能使用requestShortcut()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.