Removed some menu items
This commit is contained in:
parent
4f52a96f03
commit
480c0723cd
@ -211,22 +211,6 @@
|
|||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="viewTraderListCheckBoxActionPerformed"/>
|
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="viewTraderListCheckBoxActionPerformed"/>
|
||||||
</Events>
|
</Events>
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="viewClock">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="Clock"/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="viewClockActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="jMenuItem3">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" value="LogWindow"/>
|
|
||||||
</Properties>
|
|
||||||
<Events>
|
|
||||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jMenuItem3ActionPerformed"/>
|
|
||||||
</Events>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem class="javax.swing.JCheckBoxMenuItem" name="jCheckBoxMenuItem1">
|
<MenuItem class="javax.swing.JCheckBoxMenuItem" name="jCheckBoxMenuItem1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" value="Orderbook"/>
|
<Property name="text" type="java.lang.String" value="Orderbook"/>
|
||||||
@ -243,12 +227,6 @@
|
|||||||
<Property name="text" type="java.lang.String" value="Help"/>
|
<Property name="text" type="java.lang.String" value="Help"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="contentMenuItem">
|
|
||||||
<Properties>
|
|
||||||
<Property name="mnemonic" type="int" value="99"/>
|
|
||||||
<Property name="text" type="java.lang.String" value="Contents"/>
|
|
||||||
</Properties>
|
|
||||||
</MenuItem>
|
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="aboutMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="aboutMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="mnemonic" type="int" value="97"/>
|
<Property name="mnemonic" type="int" value="97"/>
|
||||||
|
@ -68,7 +68,7 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
|
|
||||||
this.chartSrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER);
|
this.chartSrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER);
|
||||||
// Globals.frame = this;
|
// Globals.frame = this;
|
||||||
//this.setLocationRelativeTo(null);
|
this.setLocationRelativeTo(null);
|
||||||
System.out.printf("Set title\n");
|
System.out.printf("Set title\n");
|
||||||
setTitle("SeSim - Stock Exchange Simmulator");
|
setTitle("SeSim - Stock Exchange Simmulator");
|
||||||
}
|
}
|
||||||
@ -194,11 +194,8 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
jMenuItem5 = new javax.swing.JMenuItem();
|
jMenuItem5 = new javax.swing.JMenuItem();
|
||||||
viewMenu = new javax.swing.JMenu();
|
viewMenu = new javax.swing.JMenu();
|
||||||
viewTraderListCheckBox = new javax.swing.JCheckBoxMenuItem();
|
viewTraderListCheckBox = new javax.swing.JCheckBoxMenuItem();
|
||||||
viewClock = new javax.swing.JMenuItem();
|
|
||||||
jMenuItem3 = new javax.swing.JMenuItem();
|
|
||||||
jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
|
jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
|
||||||
helpMenu = new javax.swing.JMenu();
|
helpMenu = new javax.swing.JMenu();
|
||||||
contentMenuItem = new javax.swing.JMenuItem();
|
|
||||||
aboutMenuItem = new javax.swing.JMenuItem();
|
aboutMenuItem = new javax.swing.JMenuItem();
|
||||||
|
|
||||||
jTextArea1.setColumns(20);
|
jTextArea1.setColumns(20);
|
||||||
@ -474,22 +471,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
});
|
});
|
||||||
viewMenu.add(viewTraderListCheckBox);
|
viewMenu.add(viewTraderListCheckBox);
|
||||||
|
|
||||||
viewClock.setText("Clock");
|
|
||||||
viewClock.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
viewClockActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
viewMenu.add(viewClock);
|
|
||||||
|
|
||||||
jMenuItem3.setText("LogWindow");
|
|
||||||
jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
|
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
||||||
jMenuItem3ActionPerformed(evt);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
viewMenu.add(jMenuItem3);
|
|
||||||
|
|
||||||
jCheckBoxMenuItem1.setText("Orderbook");
|
jCheckBoxMenuItem1.setText("Orderbook");
|
||||||
jCheckBoxMenuItem1.addActionListener(new java.awt.event.ActionListener() {
|
jCheckBoxMenuItem1.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -503,10 +484,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
helpMenu.setMnemonic('h');
|
helpMenu.setMnemonic('h');
|
||||||
helpMenu.setText("Help");
|
helpMenu.setText("Help");
|
||||||
|
|
||||||
contentMenuItem.setMnemonic('c');
|
|
||||||
contentMenuItem.setText("Contents");
|
|
||||||
helpMenu.add(contentMenuItem);
|
|
||||||
|
|
||||||
aboutMenuItem.setMnemonic('a');
|
aboutMenuItem.setMnemonic('a');
|
||||||
aboutMenuItem.setText("About");
|
aboutMenuItem.setText("About");
|
||||||
aboutMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
aboutMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
@ -615,12 +592,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
|
|
||||||
private final LoggerDialog log_d = new LoggerDialog(this, false);
|
private final LoggerDialog log_d = new LoggerDialog(this, false);
|
||||||
|
|
||||||
private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
|
|
||||||
log_d.setVisible(!log_d.isShowing());
|
|
||||||
|
|
||||||
|
|
||||||
}//GEN-LAST:event_jMenuItem3ActionPerformed
|
|
||||||
|
|
||||||
private void openMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openMenuItemActionPerformed
|
private void openMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openMenuItemActionPerformed
|
||||||
|
|
||||||
}//GEN-LAST:event_openMenuItemActionPerformed
|
}//GEN-LAST:event_openMenuItemActionPerformed
|
||||||
@ -661,12 +632,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
|
|
||||||
}//GEN-LAST:event_editExchangeMenuItemActionPerformed
|
}//GEN-LAST:event_editExchangeMenuItemActionPerformed
|
||||||
|
|
||||||
private void viewClockActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewClockActionPerformed
|
|
||||||
ClockDialog cd = new ClockDialog(this, true);
|
|
||||||
cd.setVisible(rootPaneCheckingEnabled);
|
|
||||||
|
|
||||||
}//GEN-LAST:event_viewClockActionPerformed
|
|
||||||
|
|
||||||
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
|
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
|
||||||
// TODO add your handling code here:
|
// TODO add your handling code here:
|
||||||
}//GEN-LAST:event_jMenuItem1ActionPerformed
|
}//GEN-LAST:event_jMenuItem1ActionPerformed
|
||||||
@ -711,7 +676,10 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
|
|
||||||
TraderListDialog tld = null;
|
TraderListDialog tld = null;
|
||||||
private void viewTraderListCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewTraderListCheckBoxActionPerformed
|
private void viewTraderListCheckBoxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewTraderListCheckBoxActionPerformed
|
||||||
System.out.printf("Trwindow: %s\n", Boolean.toString(this.viewTraderListCheckBox.getState()));
|
|
||||||
|
javax.swing.SwingUtilities.invokeLater(()->{
|
||||||
|
|
||||||
|
System.out.printf("Trwindow: %s\n", Boolean.toString(this.viewTraderListCheckBox.getState()));
|
||||||
if (this.viewTraderListCheckBox.getState()) {
|
if (this.viewTraderListCheckBox.getState()) {
|
||||||
if (tld == null) {
|
if (tld == null) {
|
||||||
tld = new TraderListDialog(this, false);
|
tld = new TraderListDialog(this, false);
|
||||||
@ -725,11 +693,14 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tld.setVisible(true);
|
tld.setVisible(true);
|
||||||
} else if (tld != null) {
|
} else if (tld != null) {
|
||||||
System.out.printf("Set visible = false\n");
|
System.out.printf("Set visible = false\n");
|
||||||
tld.setVisible(false);
|
tld.setVisible(false);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}//GEN-LAST:event_viewTraderListCheckBoxActionPerformed
|
}//GEN-LAST:event_viewTraderListCheckBoxActionPerformed
|
||||||
|
|
||||||
private void accelSpinnerPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_accelSpinnerPropertyChange
|
private void accelSpinnerPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_accelSpinnerPropertyChange
|
||||||
@ -763,6 +734,8 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
Globals.prefs = Preferences.userNodeForPackage(c);
|
Globals.prefs = Preferences.userNodeForPackage(c);
|
||||||
|
|
||||||
Globals.setLookAndFeel(Globals.prefs.get("laf", "Nimbus"));
|
Globals.setLookAndFeel(Globals.prefs.get("laf", "Nimbus"));
|
||||||
|
|
||||||
|
JDialog.setDefaultLookAndFeelDecorated(true);
|
||||||
|
|
||||||
java.awt.EventQueue.invokeLater(new Runnable() {
|
java.awt.EventQueue.invokeLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
@ -786,7 +759,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
private gui.MainChart chart;
|
private gui.MainChart chart;
|
||||||
private javax.swing.JScrollPane chartSrollPane;
|
private javax.swing.JScrollPane chartSrollPane;
|
||||||
private gui.Clock clock;
|
private gui.Clock clock;
|
||||||
private javax.swing.JMenuItem contentMenuItem;
|
|
||||||
private javax.swing.JMenuItem deleteMenuItem;
|
private javax.swing.JMenuItem deleteMenuItem;
|
||||||
private javax.swing.JMenuItem editExchangeMenuItem;
|
private javax.swing.JMenuItem editExchangeMenuItem;
|
||||||
private javax.swing.JMenu editMenu;
|
private javax.swing.JMenu editMenu;
|
||||||
@ -798,7 +770,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
|
private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
|
||||||
private javax.swing.JLabel jLabel1;
|
private javax.swing.JLabel jLabel1;
|
||||||
private javax.swing.JMenuItem jMenuItem1;
|
private javax.swing.JMenuItem jMenuItem1;
|
||||||
private javax.swing.JMenuItem jMenuItem3;
|
|
||||||
private javax.swing.JMenuItem jMenuItem4;
|
private javax.swing.JMenuItem jMenuItem4;
|
||||||
private javax.swing.JMenuItem jMenuItem5;
|
private javax.swing.JMenuItem jMenuItem5;
|
||||||
private javax.swing.JPanel jPanel2;
|
private javax.swing.JPanel jPanel2;
|
||||||
@ -827,7 +798,6 @@ public class NewMDIApplication extends javax.swing.JFrame {
|
|||||||
private javax.swing.JMenuItem simMenuStop;
|
private javax.swing.JMenuItem simMenuStop;
|
||||||
private gui.Statistics statistics1;
|
private gui.Statistics statistics1;
|
||||||
private javax.swing.JButton stopButton;
|
private javax.swing.JButton stopButton;
|
||||||
private javax.swing.JMenuItem viewClock;
|
|
||||||
private javax.swing.JMenu viewMenu;
|
private javax.swing.JMenu viewMenu;
|
||||||
private javax.swing.JCheckBoxMenuItem viewTraderListCheckBox;
|
private javax.swing.JCheckBoxMenuItem viewTraderListCheckBox;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
Loading…
Reference in New Issue
Block a user