I'm making a Swing application that will only run on Windows and I want to package everything into a single .jar file. I want to include a .chm help file in the JAR and be able to launch it from clicking a JMenuItem
marked "Help" or "Contents" (I already have a working understanding of creating AbstractAction
subclasses). How can I programmatically open a .chm file from a JAR file?
Desktop
provides an open()
method. You'll probably have to retrieve the .chm
as an embedded-resource and park it at a known location in the file system.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.