What's wrong with this code?
Hi, I am using the open method Desktop class. I have successfully opened a .txt file with the open method, but when I try to open a .wav or .wmv file, the following error occurs:
java.io.IOException: Failed to open file Error message: The parameter is incorrect.
The code is posted below.
Help is greatly appreciated.
public void actionPerformed(ActionEvent event)
Desktop desktop = null;
desktop = Desktop.getDesktop();
catch (IOException ioe)