This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Question about help file , Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Question about help file ," Watch "Question about help file ," New topic
Author

Question about help file ,

Sam Stackly
Ranch Hand

Joined: May 04, 2002
Posts: 109
Hi Guys,
I have a html file for on line help, I implemented it in JEditorPane through setPage method, setPage ask for URL or String which is references to HTML file (which can be different if they change working directory of application), The question is how can I get the path of my working directory (my application)? Then I can find help.html file dynamically
Thanks in advance
Sam
Nate Johnson
Ranch Hand

Joined: May 13, 2002
Posts: 301
I put my online docs in the executable jar


scwcd, scjd, scjp<br /><a href="http://natejohnson.us" target="_blank" rel="nofollow">http://natejohnson.us</a><br /><a href="http://rice.kuali.org" target="_blank" rel="nofollow">http://rice.kuali.org</a>
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
I put mine in the executable jars too. I had separate client and server help files, so I created a help subdirectory in both the client and server package directories.
Hope this helps,
Michael Morris


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Sam Stackly
Ranch Hand

Joined: May 04, 2002
Posts: 109
Thanks Guys, I'll do that too,
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Question about help file ,
 
Similar Threads
question about userguide.html
JEditorPane and finding the page to load
My Program is not loading the image files in the jar.
displaying HTML in a JEditorPane
Anchor tags in JEditorPane