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.
Below is my Java code
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?
P/s : The purpose I want to create shortcut because I will move the shortcut to path all program/startup.
我认为Java应用程序不能使用requestShortcut()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.