Calling the Windows "Open With" dialog from Java Application
843798Apr 13 2002 — edited Apr 18 2002I have an email application written which caters for the opening of email message attachments.
I have a configuration file that enables mapping of email attachment extensions to the windows application that should be used to run the attachment. I use the Java Runtime exec() command to open the attachments - this works fine.
The problem is that if I get an email attachment with an unusual file extension, then I need a mechanism such as the "Open With" dialog in Windows to enable the user to select the application that should run the attachment.
Does anyone know how to call the Windows "Open With" dialog from a Java Application, or is there a different approach that could be taken. Somebody mentioned using JFileChooser, but I have had no luck using this approach yet.
Any suggestions would be welcome, thanks