I want to click on a menuItem or Button and then chm file is opened, just like I open it in Windows OS.
Printable View
I want to click on a menuItem or Button and then chm file is opened, just like I open it in Windows OS.
To open a file for reading from a menu or button, add an ActionListener to the control and in the actionPerformed(...) method, pass the full file name (and path if necessary) to the constructor of FileInputStream. You can then read bytes from this stream, or pass it to other java.io classes to read in other ways.
Too many cooks make too much soup...