title: Java Select File in windows Explorer?
body: <p>I am working on a Java GUI, in which i have a JTable in which i have populated my file system, on JTable i have a Right Click Context Menu Like This</p>
  
  <p><img src="https://i.stack.imgur.com/viAMj.png" alt="My JTable GUI"></p>
  
  <p>i right click on my File and it opens this folders in windows Explorer, to open a file/folder in windows explorer i am using this code</p>
  
  <pre><code>Desktop desktop = Desktop.getDesktop();
      if (Desktop.isDesktopSupported()) {
      }
      try {
          desktop.open(myFile); //myFile is my Selected File
      } catch (IOException e) {
      }
  </code></pre>
  
  <p>This opens myFile in windows Explorer Like this</p>
  
  <p><img src="https://i.stack.imgur.com/BJV4K.png" alt="myimage"></p>
  
  <p>i want that it should open windows and my file should be selected in windows explorer.</p>
  
  <p><img src="https://i.stack.imgur.com/6Twnb.png" alt="enter image description here"></p>
  
  <p>Thanks</p>