File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Question about help file , Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Question about help file ," Watch "Question about help file ," New topic

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
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="" target="_blank" rel="nofollow"></a><br /><a href="" target="_blank" rel="nofollow"></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:
subject: Question about help file ,
It's not a secret anymore!