簡體   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