• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can i call a .chm file

 
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
Marshal
Posts: 52516
118
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!