Arjun Shastry wrote:Is there any better way for doing this?
That really depends on your situation. If you are building a commercial program, or learning in order to make a commercial program, then I would sugggest that you use JavaHelp. It is very mature, and it gives you a interface that most Window$ users know how to use (since it will look just like Windows' help interface).
Arjun Shastry wrote:Contents are just 1 page or 2 pages long.
On the other hand, if this means that you only have 2 help pages, then using JTextPane seems like a good choise to display HTML in a Java application.
Hope this helps,