Desktop desktop = Desktop.getDesktop(); if (desktop.isDesktopSupported()&& desktop.isSupported(Desktop.Action.BROWSE)) { try { desktop.browse(new URI("https://www.dsttl3.cn")); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (URISyntaxException e1)…
java 调用默认浏览器