Originally posted by Ricardo Estafan:
Frans i'm not quite sure what you mean. Thing is: if i create the help based on the user directory obtained from the System properties. then adding a file separator and finally the path to my document problem is when in windows root c:\
the path to my helpfile will become c:\\docs\userguide.html
This won't work unfortunately how to deal with this problem??
Just let the user pick the file with the FileDialog and store the absolute file name in the properties file. If there is no properties file simply start the dialog with the default file name and no directory.
The FileDialog and File classes are designed to figure this stuff out, you shouldn't do it yourself, or as Frans pointed out, it won't work on other platforms.
For the help, your best bet is to include the html files in your jar file and use Class.getResource() to return the URL.