Setup Oracle Help Web(OHW) for Java applications - java

I need to setup an online help system for my Java application. Its totally swing based. On searching I found OHW is good.
Can anyone suggest me how to configure or setup OJW to an Java application. Any tutorial link will be very useful.
Thanks in advance...

I know I am not answering your question.. but we designed a help system for our java swing application as well. We felt html files were the best. The kind that has iframes and a small java script on the index page that will load the center frame based on a parameter you set in the URL. You can make context sensitive help with this. Also, there is a free editor out there for non-commercial application called helpndoc. Pretty good HTML editor and will generate the HTML files and/or chm file for you. http://www.helpndoc.com/
Also, if your java app is for a windows only system then you can go with just a chm file. You can open a chm file to show context sensitive help as well. The helpndoc tutorial shows you how.
If its cross platform then html files are the best.

Related

Add a custom file type with java application installation

I am trying to have my custom file type .vrs (which for all intents and purposes is an rich text format).
I am pleased with what I have since I am self taught.
But am having difficulties associating that file with my program so that when a user double clicks it, it automatically open my document editor.
All searches so far have come up with either right clicking and setting the association, but this is not what I would need.
I may not have explained as well as needed so think Photoshop's .psd when you install Photoshop all psd files are automatically set to open when you double click them.
Hopefully I have been clear enough for you to help.
Also whilst the question is regarding Java any resource be it for C# C++ etc, would also be appreciated.
Thanks for your time and any responses.
This functionality is system dependent, and in Windows involves the registry. If you really want to delve into this, take a look at this post, which goes into great detail on how to accomplish programmatically setting a file extension association using C++. If this is helpful, please write back telling us how you solved the problem in your individual situation.
If that isn't helpful I would try this link instead, as it links to more resources and demonstrates a little C# code.

How do i view or access java docs offline?

I downloaded java docs or what i think was java docs from oracle. But i'm not really sure how to summon all that drama without going online or using eclipse.
By the way, I use jedit. (Yeah, baby. Hurts so good). I'm a student, and i need to limit my distractions and going online is my enemy right now. Any help would help. Thanks.
Use your webbrowser and open up the index.html page that's probably in the root directory of the docs.
Download Javadoc in HTML Help format for offline use. For Windows users only.
http://www.allimant.org/javadoc/

Displaying location on a world map

I am working on a Java desktop application. In this project I want to highlight some location on a world map. These locations are stored in a database. I have found a link to Building Maps into Your Swing Application with the JXMapViewer,
but I'm still not finding the proper way to do this. Can anyone can give me some ideas.
for me google works http://today.java.net/pub/a/today/2007/10/30/building-maps-into-swing-app-with-jxmapviewer.html any google related question(s)
If you are building swt app, you can use SWT Browser widget with Google Maps API. All you need is to generate simple html page and show it with the use of SWT Browser
You might like to look at JMapViewer, recently mentioned in this question.
Addendum: For example,
svn co http://svn.openstreetmap.org/applications/viewer/jmapviewer jmapviewer
ant
java -cp bin org.openstreetmap.gui.jmapviewer.Demo

Java, using another java program in jar format

i want to embed an open source editor to my java desktop application. But i am not sure yet how to do it. I got jnlp web start and jar file to import library.
The program which will be imported is like below.
In fact i just need internal frames but if it is too completed i can embed whole program too.
I think about 3 options but don't know which one really works and which one is better.
Run jnlp webstart in java code
Run jar file in java code(non-executable jar)
Import jar and use its api (This is really what i need but i m not sure how to do this. I debugged the code to understand which frame works how but i have no experience about it and i found it very complicated)
Any advices how to solve this problem ?
Thanks,
Bilal
The picture just shows the view but there's more behind. You can't just embed the internal frames into you application and use the editors functionality. You'll need all the model, controller, support, ... classes too.
You may be lucky, that the main frame is just a simple container and you can "replace" it with your own container. But I not too optimistic. I don't think, that the editor has an API that allows integrating the internal frames into another container. So Option 3 would be the best but I think it's out of reach. Is it a common editor? Maybe more help is possible if you just tell us its name.

Instructions Package for Java

I want to make a help/instructions page for my Java program but I really don't want to have to go through and program all the frames and searching and such. Is there a package or program that I can just insert the data into and it will read it and create the dialog? I couldn't seem to find anything about it on Google.
It doesn't have to look like this at all but I like having the table of contents and the search at least.
alt text http://www.freeimagehosting.net/uploads/752f287397.png
Thanks
Java help system : https://javahelp.dev.java.net/
The windows help dialog you show is part of the Window Help subsystem. You could easily create a help file for that and launch it from your Java application, but it would be platform specific. If you want to implement cross-platform help functionality, you're probably going to have to implement it yourself, but you could probably do it simply by including a set of HTML resources and using an embedded lucene index to supply search functionalty.
Have you consider using a simple HTML based manual and/or website where all that information may be accessed through?
Pretty much like http://java.sun.com/javase/6/docs/ for instance where you have a main page and you can navigate the topics from there?
If that's a website ( rather than a local /doc directory ) you can have the extra benefit from having a full featured search engine index it for you.
See also: Google is the Help menu
After all, how many times do you use these help systems instead of searching the web?

Categories