In my Swing application I have an action which opens a file with the system application
Desktop.getDesktop().open(myFile);
This action must be disabled when no application is registered for this file. I cann't understand how to get this information before the application has been launched (after that I get this information when an IOException is thrown).