您将不得不使用ProcessBuilder(或者Runtime.exec()来使用您想要的选项显式执行 explorer.exe 。
Process p = new ProcessBuilder("explorer.exe", "http://yourpage.com/Myjsp.jsp").start();
您可以将要自动填充的值作为 pat pf URL 参数发送,例如
Process p = new ProcessBuilder("explorer.exe", "http://yourpage.com/Myjsp.jsp?myvar="+my value).start();//where myvalue is String variable where you have the value from Frame.
我认为您可以使用以下代码...
if(java.awt.Desktop.isDesktopSupported()){ // Desktop Not supported on all Platforms.
Desktop desktop=Desktop. getDesktop();
desktop.browse(new java.net.URI("http://yourpage.com/Myjsp.jsp?myvar="+myvalue));
}else{
Process p = new ProcessBuilder("explorer.exe", "http://yourpage.com/Myjsp.jsp?myvar="+my value).start();
}