some work on help
This commit is contained in:
parent
fe7af043b7
commit
4011aa4846
@ -18,6 +18,7 @@
|
|||||||
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
||||||
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
||||||
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
||||||
|
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,125,0,0,1,-3"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
|
||||||
|
@ -42,30 +42,28 @@ public class SeSimHelp extends javax.swing.JFrame {
|
|||||||
*/
|
*/
|
||||||
public SeSimHelp() {
|
public SeSimHelp() {
|
||||||
initComponents();
|
initComponents();
|
||||||
String helpHS = "resources/helpset.hs";
|
String helpHS = "opensesim/resources/help/helpset.hs";
|
||||||
ClassLoader cl = Help.class.getClassLoader();
|
ClassLoader cl = Help.class.getClassLoader();
|
||||||
HelpSet hs;
|
HelpSet hs;
|
||||||
JHelp helpViewer = null;
|
JHelp helpViewer = null;
|
||||||
try {
|
try {
|
||||||
URL url = HelpSet.findHelpSet(null, helpHS); //, "xml", Locale.ENGLISH);
|
URL url = HelpSet.findHelpSet(null, helpHS); //, "xml", Locale.ENGLISH);
|
||||||
// URL hsURL = HelpSet.findHelpSet(cl, helpHS);
|
// URL hsURL = HelpSet.findHelpSet(cl, helpHS);
|
||||||
//hs = new HelpSet(null, hsURL);
|
hs = new HelpSet(null, url);
|
||||||
helpViewer = new JHelp(new HelpSet(cl, url));
|
//helpViewer = new JHelp(new HelpSet(cl, url));
|
||||||
} catch (Exception ee) {
|
helpViewer = new javax.help.JHelp(hs);
|
||||||
// Say what the exception really is
|
} catch (Exception ee) {
|
||||||
System.out.println( "HelpSet " + ee.getMessage());
|
// Say what the exception really is
|
||||||
|
// System.out.println("HelpSet " + ee.getMessage());
|
||||||
// System.out.println("HelpSet "+ helpHS +" not found")
|
// System.out.println("HelpSet "+ helpHS +" not found")
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTitle("Help");
|
||||||
|
setSize(800, 600);
|
||||||
|
getContentPane().add(helpViewer);
|
||||||
setTitle("Help");
|
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
||||||
setSize(800,600);
|
//setVisible(true);
|
||||||
getContentPane().add(helpViewer);
|
|
||||||
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
|
|
||||||
//setVisible(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<helpset version="2.0">
|
<helpset version="2.0">
|
||||||
<!-- title -->
|
<!-- title -->
|
||||||
<title>Java Development Environment - Help</title>
|
<title>OpenSeSim - Help</title>
|
||||||
|
|
||||||
<!-- maps -->
|
<!-- maps -->
|
||||||
<maps>
|
<maps>
|
||||||
@ -44,8 +44,8 @@
|
|||||||
<label>Glossary</label>
|
<label>Glossary</label>
|
||||||
<type>javax.help.GlossaryView</type>
|
<type>javax.help.GlossaryView</type>
|
||||||
<data>glossary.xml</data>
|
<data>glossary.xml</data>
|
||||||
</view>
|
</view> -->
|
||||||
-->
|
|
||||||
<!-- A favorites navigator -->
|
<!-- A favorites navigator -->
|
||||||
<view>
|
<view>
|
||||||
<name>favorites</name>
|
<name>favorites</name>
|
@ -44,4 +44,10 @@ public class SimpleTrader extends AbstractTrader{
|
|||||||
super(world);
|
super(world);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SimpleTrader(){
|
||||||
|
this(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user