Getting a list of editors, which are able to open a file
<p>i am having the following problem: </p>

<p>i wrote an application, in which the user can open some specific files.
The user should be able to to select the editor, he wants to open the file with.</p>

<p>At the moment i am doing it with this piece of Code:</p>

<pre><code>public void open(String path) {
    try {
        if(new File(path).exists())
            Runtime.getRuntime().exec("notepad.exe " + path);

    } catch (IOException e) {

    }
}
</code></pre>

<p>if i would change the Editor to <code>ultraedit.exe</code> for example, the Runtime wont be able to open it.</p>

<p>So now to my question, is there any way, to implement something like the <code>open with</code> function windows is using, and return all possible editors for a specific type of file? 
The extension of the file will be allways <code>.ini</code>  </p>
