/**
     * @title 使用默认浏览器打开
     * @param url 要打开的网址
     */
    private static void browse2(String url) throws Exception {
        Desktop desktop = Desktop.getDesktop();
        if (Desktop.isDesktopSupported() && desktop.isSupported(Desktop.Action.BROWSE)) {
            URI uri = new URI(url);
            desktop.browse(uri);
        }
    }

 

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2022-01-31
猜你喜欢
  • 2022-02-01
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
相关资源
相似解决方案