title: opening file with java application automatically
body: <p>I want to create my own file format for a particular kind of file. When someone downloads this file I want their system to know it should be opened with my application.</p>
  
  <p>For example when I download a .doc file, my computer asks me whether I want to save the file or open it with Open Office. Similarly, If that .doc file is sitting on my desktop, and I double click it, it automatically opens with the correct application.</p>
  
  <p>I believe this has to do with associating the file extension with the application in the context of the underlying OS.</p>
  
  <p>Can any one point me to some good resources about how to do this in java?</p>
  
  <p>Thanks.</p>
  
  <p>Edit:
  Sorry I want to clarify. Is there a way I can have my application associate the file type with itself when it is installed?</p>
  
  <p>Edit:
  found this...
  <a href="http://java.sun.com/developer/technicalArticles/J2SE/Desktop/jdic_assoc/" rel="nofollow">http://java.sun.com/developer/technicalArticles/J2SE/Desktop/jdic_assoc/</a>
  platform independent solution</p>