title: Open file with WordPad in Java
body: <p>I want to open a file in <a href="http://en.wikipedia.org/wiki/WordPad" rel="nofollow">WordPad</a>. I've tried the following:</p>
  
  <pre><code>Desktop.getDesktop().edit(fileName);
  </code></pre>
  
  <p>But the file opens with <a href="http://en.wikipedia.org/wiki/Notepad_%28software%29" rel="nofollow">Notepad</a>. How can I force WordPad to open the file?</p>