cntomcom
January 5th, 2003, 11:31 PM
I want to click on a menuItem or Button and then chm file is opened, just like I open it in Windows OS.
|
Click to See Complete Forum and Search --> : How could I open a chm file in java application? cntomcom January 5th, 2003, 11:31 PM I want to click on a menuItem or Button and then chm file is opened, just like I open it in Windows OS. dlorde January 6th, 2003, 06:41 AM 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 (http://java.sun.com/j2se/1.4/docs/api/java/io/FileInputStream.html). 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... codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |