title: How to use java media framework to select video
body: <p>I am new to JMF, and the sample code allows the user to select a video from file</p>
  
  <pre><code>mediaURL = fileChooser.getSelectedFile().toURL();
  </code></pre>
  
  <p>But i actually need to know how to select a file with the code it self, so I want the application to start and the a video to be played</p>
  
  <p>I tried some thing like <code>mediaURL="video.mpg"</code> but it does not work, anyone with experience?</p>