I was wondering if there was some sort of API library for Java (Swing) that allows your program to tell the system that it just opened a file so it can add it to the user's recent documents for any OS (like Windows' SHAddToRecentDocs). Does such a thing exist? Note: I am not considering j7Goodies as a solution.
Edit: The file in question I have already opened and I don't want the system to open it. I also keep track of recent documents in my program, I want to know how to tell the system I opened it without the system instructing the default program to open it.