title: Utilising a file association in a Java application
body: <p>I am in the process of writing a cross platform Swing based application in which I want to utilize a file association which has been registered with the OS.</p>
  
  <p>So iv got to the point where I can click on a file and my app loads, but what I need to know is how I can get my application to know where the file is that launched it and then query the contents.</p>
  
  <p>Is there something further I have to do with the file association registration? Or can Java do this for me?</p>