I have a JList holding objects of type
Result(String title, String content, String filePath)
This JList has a MouseListener. I would like to implement a double clicked MouseEvent that passess the selected result's filePath, so it can open the File outside of my Java GUI application.
For Example:
If I double click a Result object in the JList with title: "Document1" content: "This is Document1" filePath: "C:\doc1.doc"
I would like the program to open this document outside of the application in Microsoft Word.
In otherwords, how can I bypass JFileChooser and open a File outside of my application in its default application?