How to close a windows explorer?
问题 I have a code that uses jDesktop to open a windows explorer interface when I clicked the button LOGIN and it's working right.. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: Desktop desktop = Desktop.getDesktop(); File dirToOpen; try { dirToOpen = new File("C://as//2010-0000-1"); desktop.open(dirToOpen); } catch (IOException ex) { ex.getMessage(); } catch (IllegalArgumentException iae) { System.out.println("File Not Found"); } }