I decided that I would try Peppe's idea of using PDF files as embedded help in OpenJUMP.
I'm going to have a "help" button in some of the dialogs in my Super Select Tool. The button will open a designated PDF file using a PDF viewer/reader. I would like to know if we can use a common variable to store the location of the PDF file the user would like to use to view the help files. I can set this up for just my plug-in, but then we might get a situation where the user is specifying his PDF viewer for everyone's plug-in, and that would stink. I was thinking that we could use a text file with the path to the PDF viewer, or that we might have an entry in the Registry. What do you guys think? Is there a way to use the Java runtime to dynamically determine which program should be executed for a specific file type? (That would be too cool!) The Sunburned Surveyor P.S. - I'm going to try to use ProcessBuilder to fire up the PDF viewer with the correct help file. I've got the command down using the Microsoft Windows terminal, so I think ProcessBuilder will do the trick for me. If others will use this system to present embedded help I will try to wrap my code in a simple API that everyone can use. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel