forked from meteoinfo/TrajStat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
wyq
committed
Sep 29, 2014
1 parent
bc0e771
commit 0b43f71
Showing
10 changed files
with
89 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* To change this template, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package trajstat.help; | ||
|
||
import java.net.URL; | ||
import javax.help.HelpSet; | ||
import javax.help.JHelp; | ||
import javax.swing.ImageIcon; | ||
import javax.swing.JFrame; | ||
|
||
/** | ||
* | ||
* @author yaqiang | ||
*/ | ||
public class Help extends JFrame{ | ||
|
||
JHelp helpViewer = null; | ||
|
||
public Help() { | ||
try { | ||
ClassLoader cl = Help.class.getClassLoader(); | ||
URL hsURL = this.getClass().getResource("mi.hs"); | ||
HelpSet hs = new HelpSet(cl, hsURL); | ||
//URL url = HelpSet.findHelpSet(cl, "mi.hs"); | ||
helpViewer = new JHelp(hs); | ||
helpViewer.setCurrentID("top"); | ||
} catch (Exception e) { | ||
System.err.println("API Help Set not found"); | ||
} | ||
|
||
this.getContentPane().add(helpViewer); | ||
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); | ||
} | ||
|
||
public void setIconImage(String imagePath) { | ||
this.setIconImage(new ImageIcon(getClass().getResource(imagePath)).getImage()); | ||
} | ||
|
||
public static void main(String args[]) { | ||
java.awt.EventQueue.invokeLater(new Runnable() { | ||
@Override | ||
public void run() { | ||
new Help(); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters