/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package semesterprojectv5;
/**
*
* @author alexa
*/
public class Start
extends javax.
swing.
JFrame {
/**
* Creates new form Start
*/
public Start() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jLabel1
= new javax.
swing.
JLabel();
jMenu1
= new javax.
swing.
JMenu();
jMenu2
= new javax.
swing.
JMenu();
jMenuItem2.setText("jMenuItem2");
jLabel1.
setFont(new java.
awt.
Font("Tahoma",
1,
24)); // NOI18N
jLabel1.setText("Covid Data Analyzer");
jMenu1.setText("Options");
jMenuItem1.setText("Data Manager");
public void actionPerformed
(java.
awt.
event.
ActionEvent evt
) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);
jMenuItem3.setText("Show Data");
public void actionPerformed
(java.
awt.
event.
ActionEvent evt
) {
jMenuItem3ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem3);
jMenuBar1.add(jMenu1);
jMenu2.setText("Exit");
jMenuItem4.setText("Exit");
public void actionPerformed
(java.
awt.
event.
ActionEvent evt
) {
jMenuItem4ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem4);
jMenuBar1.add(jMenu2);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(132, 132, 132)
.addComponent(jLabel1)
.
addContainerGap(149,
Short.
MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(118, 118, 118)
.addComponent(jLabel1)
.
addContainerGap(161,
Short.
MAX_VALUE))
);
pack();
}// </editor-fold>
private void jMenuItem1ActionPerformed
(java.
awt.
event.
ActionEvent evt
) {
new Datamanager().setVisible(true);
}
private void jMenuItem4ActionPerformed
(java.
awt.
event.
ActionEvent evt
) {
// TODO add your handling code here:
}
private void jMenuItem3ActionPerformed
(java.
awt.
event.
ActionEvent evt
) {
new Showdata().setVisible(true);
}
/**
* @param args the command line arguments
*/
public static void main
(String args
[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
if ("Nimbus".equals(info.getName())) {
javax.
swing.
UIManager.
setLookAndFeel(info.
getClassName());
break;
}
}
java.util.logging.Logger.getLogger(Start.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
java.util.logging.Logger.getLogger(Start.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
java.util.logging.Logger.getLogger(Start.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
java.util.logging.Logger.getLogger(Start.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
public void run() {
new Start().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.
swing.
JLabel jLabel1
;
private javax.
swing.
JMenu jMenu1
;
private javax.
swing.
JMenu jMenu2
;
// End of variables declaration
}