1
有人可以解释/告诉我如何在document中使用requestShortcut
方法,我希望在程序运行时使我的jar成为桌面快捷方式。如何使用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应用程序,但生病等待其他审查和评论。 –