• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i call a .chm file  RSS feed

 
Gopal krushna Das
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can anyone help me to call "userguide.chm" in my java swing program.

here is my code for help button.
----------------------------------
btnHelp.setText("Help");
btnHelp.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
btnHelp_actionPerformed(e);
System.out.println("Help");
}

});
 
Campbell Ritchie
Sheriff
Posts: 55351
157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open the file in the usual fashion with a FileReader (or in Java5 a Scanner) and you can read its contents and insert them into your display.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!