Work on better charts ...

This commit is contained in:
7u83
2017-09-16 13:54:42 +02:00
parent b4a39bdc4e
commit ae0f89df39
11 changed files with 525 additions and 20 deletions

View File

@ -247,6 +247,14 @@
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="aboutMenuItemActionPerformed"/>
</Events>
</MenuItem>
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem1">
<Properties>
<Property name="text" type="java.lang.String" value="jMenuItem1"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem1ActionPerformed"/>
</Events>
</MenuItem>
</SubComponents>
</Menu>
</SubComponents>
@ -441,12 +449,12 @@
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="100" max="32767" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<EmptySpace min="0" pref="100" max="32767" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>

View File

@ -25,6 +25,7 @@
*/
package gui;
import chart.ChartTestDialog;
import java.awt.Dialog;
import java.awt.Frame;
import java.awt.GraphicsDevice;
@ -220,6 +221,7 @@ public class SeSimApplication extends javax.swing.JFrame {
jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
helpMenu = new javax.swing.JMenu();
aboutMenuItem = new javax.swing.JMenuItem();
jMenuItem1 = new javax.swing.JMenuItem();
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
@ -329,11 +331,11 @@ public class SeSimApplication extends javax.swing.JFrame {
chart.setLayout(chartLayout);
chartLayout.setHorizontalGroup(
chartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
.addGap(0, 0, Short.MAX_VALUE)
);
chartLayout.setVerticalGroup(
chartLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
.addGap(0, 0, Short.MAX_VALUE)
);
chartSrollPane.setViewportView(chart);
@ -544,6 +546,14 @@ public class SeSimApplication extends javax.swing.JFrame {
});
helpMenu.add(aboutMenuItem);
jMenuItem1.setText("jMenuItem1");
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
helpMenu.add(jMenuItem1);
menuBar.add(helpMenu);
setJMenuBar(menuBar);
@ -877,6 +887,12 @@ public class SeSimApplication extends javax.swing.JFrame {
Globals.clearAll();
}//GEN-LAST:event_clearMenuItemActionPerformed
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
ChartTestDialog d = new ChartTestDialog(this,false);
d.setVisible(true);
}//GEN-LAST:event_jMenuItem1ActionPerformed
/**
* @param args the command line arguments
* @throws java.lang.IllegalAccessException
@ -943,6 +959,7 @@ public class SeSimApplication extends javax.swing.JFrame {
private javax.swing.JButton jButton2;
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
private javax.swing.JLabel jLabel1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JPanel jPanel2;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JPopupMenu.Separator jSeparator1;