/*
 * Weps_n.java
 *
 * Created on November 23, 2003, 5:03 PM
 */
package usda.weru.weps.gui;

import de.schlichtherle.truezip.file.TFile;
import java.awt.Frame;
import javax.swing.JButton;
import org.apache.log4j.Logger;
import usda.weru.soil.MassSoilChooser;
import usda.weru.util.ConfigData;

// It looks like this is structured so that this file contains no processing of input;
// it outsources all of it to Weps.java through a strange collection of method overrides - max
/**
 * The WEPS model here is the parent application GUI to which the user first
 * interacts when the application is executed. This application is used for the
 * soil erosion sub-model to predict the soil loss due to wind erosion and what
 * measures could be taken to reduce this erosion effect by analysing various
 * factors via the use of various generated reports.
 *
 * @author manmohan
 */
public class Weps_n extends javax.swing.JFrame {

    private static final long serialVersionUID = 1L;

    private static final Logger LOGGER = Logger.getLogger(Weps_n.class);

    protected boolean shouldNrmv = true;
    protected boolean nrmvSummary = true;

    /**
     * Default constructor for the WEPS GUI object. It also initializes the
     * components that go in the GUI with their default settings.
     */
    public Weps_n() {
        LOGGER.debug("Begin initComponents...");
        initComponents();
        LOGGER.debug("Finished initComponents.");

        LOGGER.debug("Begin pack...");
        pack();
        LOGGER.debug("Finished pack.");
    }

    /**
     * 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.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        JTB_main = new javax.swing.JToolBar();
        newButton = new javax.swing.JButton();
        openButton = new javax.swing.JButton();
        saveButton = new javax.swing.JButton();
        runButton = new javax.swing.JButton();
        runCalButton = new javax.swing.JButton();
        loadrunButton = new javax.swing.JButton();
        emailButton = new javax.swing.JButton();
        mantisButton = new javax.swing.JButton();
        LaunchNrmvToolbar = new javax.swing.JButton();
        aboutButton = new javax.swing.JButton();
        helpButton = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        JB_RR = new javax.swing.JButton();
        JB_MR = new javax.swing.JButton();
        JB_CR = new javax.swing.JButton();
        JB_CC = new javax.swing.JButton();
        JB_CI = new javax.swing.JButton();
        JB_SR = new javax.swing.JButton();
        JB_DR = new javax.swing.JButton();
        JB_IR = new javax.swing.JButton();
        JTF_mostRecentRun = new javax.swing.JTextField();
        scrollPane = new javax.swing.JScrollPane();
        JP_main = new javax.swing.JPanel();
        runLocationPanel = new javax.swing.JPanel();
        g_runlocation = new javax.swing.JLabel();
        JB_setRunLocation = new javax.swing.JButton();
        columnsPanel = new javax.swing.JPanel();
        leftColumnPanel = new javax.swing.JPanel();
        JP_not = new javax.swing.JPanel();
        JP_client = new javax.swing.JPanel();
        JP_sim = new javax.swing.JPanel();
        centerColumnPanel = new javax.swing.JPanel();
        JP_map = new javax.swing.JPanel();
        JP_reg = new javax.swing.JPanel();
        rightColumnPanel = new javax.swing.JPanel();
        JP_bar = new javax.swing.JPanel();
        JP_loc = new javax.swing.JPanel();
        JP_aux = new javax.swing.JPanel();
        MB_main = new javax.swing.JMenuBar();
        M_project = new javax.swing.JMenu();
        newItem = new javax.swing.JMenuItem();
        openItem = new javax.swing.JMenuItem();
        saveItem = new javax.swing.JMenuItem();
        saveAsItem = new javax.swing.JMenuItem();
        setRunLocation = new javax.swing.JMenuItem();
        resetProjectItem = new javax.swing.JMenuItem();
        deleteProjectItem = new javax.swing.JMenuItem();
        exportRunItem = new javax.swing.JMenuItem();
        deleteRunItem = new javax.swing.JMenuItem();
        deleteMgmtItem = new javax.swing.JMenuItem();
        deleteSoilItem = new javax.swing.JMenuItem();
        openDatabasesItem = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        exitItem = new javax.swing.JMenuItem();
        M_run = new javax.swing.JMenu();
        MI_makeRun = new javax.swing.JMenuItem();
        MI_makeCalibrationRun = new javax.swing.JMenuItem();
        MI_restoreRun = new javax.swing.JMenuItem();
        M_output = new javax.swing.JMenu();
        M_current = new javax.swing.JMenu();
        MI_currentProjectSummary = new javax.swing.JMenuItem();
        MI_currentYieldSummary = new javax.swing.JMenuItem();
        MI_currentCCSummary = new javax.swing.JMenuItem();
        MI_currentCISummary = new javax.swing.JMenuItem();
        MI_currentManagementSummary = new javax.swing.JMenuItem();
        MI_currentStirEnergyReport = new javax.swing.JMenuItem();
        MI_CurrentCropDet = new javax.swing.JMenuItem();
        MI_CurrentCCDet = new javax.swing.JMenuItem();
        MI_CurrentCIDet = new javax.swing.JMenuItem();
        MI_CurrentCIPDet = new javax.swing.JMenuItem();
        MI_currentConfidenceInterval = new javax.swing.JMenuItem();
        MI_currentOutput = new javax.swing.JMenuItem();
        MI_currentRawOutput = new javax.swing.JMenuItem();
        M_other = new javax.swing.JMenu();
        MI_otherProjectSummary = new javax.swing.JMenuItem();
        MI_otherYieldSummary = new javax.swing.JMenuItem();
        MI_otherCCSummary = new javax.swing.JMenuItem();
        MI_otherCISummary = new javax.swing.JMenuItem();
        MI_otherManagementSummary = new javax.swing.JMenuItem();
        MI_otherStirEnergyReport = new javax.swing.JMenuItem();
        MI_otherCropDet = new javax.swing.JMenuItem();
        MI_otherCCDet = new javax.swing.JMenuItem();
        MI_otherCIDet = new javax.swing.JMenuItem();
        MI_otherCIPDet = new javax.swing.JMenuItem();
        MI_otherConfidenceInterval = new javax.swing.JMenuItem();
        MI_otherOutput = new javax.swing.JMenuItem();
        MI_otherRawOutput = new javax.swing.JMenuItem();
        MI_runmanger = new javax.swing.JMenuItem();
        M_tools = new javax.swing.JMenu();
        M_dbreports = new javax.swing.JMenu();
        JMI_cropsreport = new javax.swing.JMenuItem();
        JMI_opsreport = new javax.swing.JMenuItem();
        JMI_manreport = new javax.swing.JMenuItem();
        MISendEmail = new javax.swing.JMenuItem();
        JMI_mantis = new javax.swing.JMenuItem();
        MIWindStation = new javax.swing.JMenuItem();
        MIDiff = new javax.swing.JMenuItem();
        Nrmv = new javax.swing.JMenu();
        LaunchNrmv = new javax.swing.JMenuItem();
        ClearNrmvData = new javax.swing.JMenuItem();
        CreateNrmvFiles = new javax.swing.JMenuItem();
        CreateNrmvFilesNoSummaries = new javax.swing.JMenuItem();
        JMI_massSoilChooser = new javax.swing.JMenuItem();
        MI_config = new javax.swing.JMenuItem();
        M_help = new javax.swing.JMenu();
        MI_helpTopics = new javax.swing.JMenuItem();
        MI_userGuide = new javax.swing.JMenuItem();
        MI_welcomWizard = new javax.swing.JMenuItem();
        MI_log = new javax.swing.JMenuItem();
        MI_aboutItem = new javax.swing.JMenuItem();

        setTitle("WEPS User Interface");
        setBackground(new java.awt.Color(255, 255, 255));
        setMinimumSize(new java.awt.Dimension(50, 40));
        addWindowFocusListener(new java.awt.event.WindowFocusListener() {
            public void windowGainedFocus(java.awt.event.WindowEvent evt) {
                windowGainedFocus_ActionPerformed(evt);
            }
            public void windowLostFocus(java.awt.event.WindowEvent evt) {
            }
        });
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                exitSystem(evt);
            }
        });

        JTB_main.setFloatable(false);
        JTB_main.setToolTipText("Weps:toolbar");

        newButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/new.gif"))); // NOI18N
        newButton.setToolTipText("Toolbar:new");
        newButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(newButton);

        openButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/open.gif"))); // NOI18N
        openButton.setToolTipText("Toolbar:open");
        openButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                openButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(openButton);

        saveButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/save.gif"))); // NOI18N
        saveButton.setToolTipText("Toolbar:save");
        saveButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(saveButton);

        runButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/run.gif"))); // NOI18N
        runButton.setToolTipText("Toolbar:run");
        runButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                runButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(runButton);

        runCalButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/runcal.png"))); // NOI18N
        runCalButton.setToolTipText("Toolbar:calibrationRun");
        runCalButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                runCalButtonActionPerformed(evt);
            }
        });
        JTB_main.add(runCalButton);

        loadrunButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/rerun.gif"))); // NOI18N
        loadrunButton.setToolTipText("Toolbar:loadRun");
        loadrunButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                loadrunButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(loadrunButton);

        emailButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/email.gif"))); // NOI18N
        emailButton.setToolTipText("Toolbar:email");
        emailButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                emailButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(emailButton);

        mantisButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/mantis.gif"))); // NOI18N
        mantisButton.setToolTipText("Toolbar:mantis");
        mantisButton.setFocusable(false);
        mantisButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        mantisButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        mantisButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mantisButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(mantisButton);

        LaunchNrmvToolbar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/SmallGraph.jpg"))); // NOI18N
        LaunchNrmvToolbar.setToolTipText("Toolbar:LauchNrmvToolbar");
        LaunchNrmvToolbar.setFocusable(false);
        LaunchNrmvToolbar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        LaunchNrmvToolbar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        LaunchNrmvToolbar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LaunchNrmvToolbarActionPerformed(evt);
            }
        });
        if(ConfigData.isNRMVVis())
        {
            JTB_main.add(LaunchNrmvToolbar);
        }

        aboutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/about.gif"))); // NOI18N
        aboutButton.setToolTipText("Toolbar:about");
        aboutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                aboutButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(aboutButton);

        helpButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/help.gif"))); // NOI18N
        helpButton.setToolTipText("Toolbar:help");
        helpButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                helpButton_ActionPerformed(evt);
            }
        });
        JTB_main.add(helpButton);

        jLabel2.setText("  ");
        JTB_main.add(jLabel2);

        JB_RR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportR.gif"))); // NOI18N
        JB_RR.setToolTipText("Toolbar:projectSummary");
        JB_RR.setName("Rep-Run"); // NOI18N
        JB_RR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_RR_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_RR);

        JB_MR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportM.gif"))); // NOI18N
        JB_MR.setToolTipText("Toolbar:managementSummary");
        JB_MR.setName("Rep-Man"); // NOI18N
        JB_MR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_MR_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_MR);

        JB_CR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportC.gif"))); // NOI18N
        JB_CR.setToolTipText("Toolbar:cropSummary");
        JB_CR.setName("Rep-Crop"); // NOI18N
        JB_CR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_CR_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_CR);

        JB_CC.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportCC.png"))); // NOI18N
        JB_CC.setToolTipText("Toolbar:coverCropSummary");
        JB_CC.setFocusable(false);
        JB_CC.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        JB_CC.setName("Rep-CCr"); // NOI18N
        JB_CC.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JB_CC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_CC_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_CC);

        JB_CI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportCI.png"))); // NOI18N
        JB_CI.setToolTipText("Toolbar:cropIntervalSummary");
        JB_CI.setFocusable(false);
        JB_CI.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        JB_CI.setName("Rep-CInt"); // NOI18N
        JB_CI.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JB_CI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_CI_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_CI);

        JB_SR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportS.gif"))); // NOI18N
        JB_SR.setToolTipText("Toolbar:stirEnergySummary");
        JB_SR.setFocusable(false);
        JB_SR.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        JB_SR.setName("Rep-STIR"); // NOI18N
        JB_SR.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JB_SR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_SR_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_SR);

        JB_DR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportD.gif"))); // NOI18N
        JB_DR.setToolTipText("Toolbar:detailedSummary");
        JB_DR.setName("Rep-Det"); // NOI18N
        JB_DR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_DR_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_DR);

        JB_IR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/ReportI.gif"))); // NOI18N
        JB_IR.setToolTipText("Toolbar:intervalSummary");
        JB_IR.setFocusable(false);
        JB_IR.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        JB_IR.setName("Rep-Conf"); // NOI18N
        JB_IR.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JB_IR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_IR_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_IR);

        JTF_mostRecentRun.setEditable(false);
        JTF_mostRecentRun.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
        JTF_mostRecentRun.setBorder(null);
        JTF_mostRecentRun.setOpaque(false);
        JTF_mostRecentRun.setPreferredSize(new java.awt.Dimension(265, 20));
        JTF_mostRecentRun.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                JTF_mostRecentRunMouseMoved(evt);
            }
        });
        JTB_main.add(JTF_mostRecentRun);

        scrollPane.setBorder(null);
        scrollPane.setOpaque(false);
        scrollPane.setPreferredSize(new java.awt.Dimension(915, 665));

        JP_main.setToolTipText("Weps:main");
        JP_main.setMinimumSize(new java.awt.Dimension(50, 30));
        JP_main.setPreferredSize(new java.awt.Dimension(900, 660));

        runLocationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Runs Location"));

        g_runlocation.setFont(g_runlocation.getFont().deriveFont(g_runlocation.getFont().getStyle() & ~java.awt.Font.BOLD));

        JB_setRunLocation.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        JB_setRunLocation.setToolTipText("Toolbar:setRunLocation");
        JB_setRunLocation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_setRunLocation_ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout runLocationPanelLayout = new javax.swing.GroupLayout(runLocationPanel);
        runLocationPanel.setLayout(runLocationPanelLayout);
        runLocationPanelLayout.setHorizontalGroup(
            runLocationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(runLocationPanelLayout.createSequentialGroup()
                .addComponent(JB_setRunLocation, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(g_runlocation, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        runLocationPanelLayout.setVerticalGroup(
            runLocationPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(JB_setRunLocation, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
            .addComponent(g_runlocation, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        columnsPanel.setLayout(new java.awt.GridLayout(1, 3, 3, 0));

        JP_not.setBorder(javax.swing.BorderFactory.createTitledBorder("Notes"));
        JP_not.setToolTipText("Weps:not");
        JP_not.setPreferredSize(new java.awt.Dimension(300, 300));
        JP_not.setLayout(new javax.swing.BoxLayout(JP_not, javax.swing.BoxLayout.LINE_AXIS));

        JP_client.setBorder(javax.swing.BorderFactory.createTitledBorder("Client Information"));
        JP_client.setToolTipText("Weps:sim");
        JP_client.setLayout(new java.awt.GridLayout(1, 1));

        JP_sim.setBorder(javax.swing.BorderFactory.createTitledBorder("Simulation"));
        JP_sim.setLayout(new java.awt.GridLayout(1, 0));

        javax.swing.GroupLayout leftColumnPanelLayout = new javax.swing.GroupLayout(leftColumnPanel);
        leftColumnPanel.setLayout(leftColumnPanelLayout);
        leftColumnPanelLayout.setHorizontalGroup(
            leftColumnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(JP_not, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
            .addComponent(JP_client, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
            .addComponent(JP_sim, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
        );
        leftColumnPanelLayout.setVerticalGroup(
            leftColumnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(leftColumnPanelLayout.createSequentialGroup()
                .addComponent(JP_client, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_sim, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_not, javax.swing.GroupLayout.DEFAULT_SIZE, 188, Short.MAX_VALUE))
        );

        columnsPanel.add(leftColumnPanel);

        JP_map.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        JP_map.setToolTipText("Weps:map");
        JP_map.setLayout(new java.awt.GridLayout(1, 0));

        JP_reg.setBorder(javax.swing.BorderFactory.createTitledBorder("Region"));
        JP_reg.setToolTipText("Weps:reg");
        JP_reg.setLayout(new java.awt.GridLayout(1, 0));

        javax.swing.GroupLayout centerColumnPanelLayout = new javax.swing.GroupLayout(centerColumnPanel);
        centerColumnPanel.setLayout(centerColumnPanelLayout);
        centerColumnPanelLayout.setHorizontalGroup(
            centerColumnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(JP_reg, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
            .addComponent(JP_map, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
        );
        centerColumnPanelLayout.setVerticalGroup(
            centerColumnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(centerColumnPanelLayout.createSequentialGroup()
                .addComponent(JP_reg, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(JP_map, javax.swing.GroupLayout.DEFAULT_SIZE, 377, Short.MAX_VALUE))
        );

        columnsPanel.add(centerColumnPanel);

        JP_bar.setBorder(javax.swing.BorderFactory.createTitledBorder("Barriers"));
        JP_bar.setToolTipText("Weps:bar");
        JP_bar.setLayout(new java.awt.GridLayout(1, 0));

        JP_loc.setBorder(javax.swing.BorderFactory.createTitledBorder("Location"));
        JP_loc.setToolTipText("Weps:loc");
        JP_loc.setLayout(new java.awt.GridLayout(1, 0));

        javax.swing.GroupLayout rightColumnPanelLayout = new javax.swing.GroupLayout(rightColumnPanel);
        rightColumnPanel.setLayout(rightColumnPanelLayout);
        rightColumnPanelLayout.setHorizontalGroup(
            rightColumnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(JP_loc, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
            .addComponent(JP_bar, javax.swing.GroupLayout.DEFAULT_SIZE, 304, Short.MAX_VALUE)
        );
        rightColumnPanelLayout.setVerticalGroup(
            rightColumnPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(rightColumnPanelLayout.createSequentialGroup()
                .addComponent(JP_loc, javax.swing.GroupLayout.DEFAULT_SIZE, 270, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_bar, javax.swing.GroupLayout.DEFAULT_SIZE, 242, Short.MAX_VALUE))
        );

        columnsPanel.add(rightColumnPanel);

        JP_aux.setToolTipText("Weps:aux");
        JP_aux.setLayout(new java.awt.BorderLayout());

        javax.swing.GroupLayout JP_mainLayout = new javax.swing.GroupLayout(JP_main);
        JP_main.setLayout(JP_mainLayout);
        JP_mainLayout.setHorizontalGroup(
            JP_mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(columnsPanel, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 926, Short.MAX_VALUE)
            .addComponent(runLocationPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(JP_aux, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        JP_mainLayout.setVerticalGroup(
            JP_mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, JP_mainLayout.createSequentialGroup()
                .addComponent(runLocationPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, 0)
                .addComponent(columnsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_aux, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(20, 20, 20))
        );

        scrollPane.setViewportView(JP_main);

        M_project.setMnemonic('P');
        M_project.setText("Project");
        M_project.setToolTipText("Menu:project");
        M_project.setActionCommand("File");

        newItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
        newItem.setMnemonic('N');
        newItem.setText("New");
        newItem.setToolTipText("Menu:new");
        newItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        newItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                newItem_ActionPerformed(evt);
            }
        });
        M_project.add(newItem);

        openItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));
        openItem.setMnemonic('O');
        openItem.setText("Open...");
        openItem.setToolTipText("Menu:open");
        openItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        openItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                openItem_ActionPerformed(evt);
            }
        });
        M_project.add(openItem);

        saveItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        saveItem.setMnemonic('S');
        saveItem.setText("Save");
        saveItem.setToolTipText("Menu:save");
        saveItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        saveItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveItem_ActionPerformed(evt);
            }
        });
        M_project.add(saveItem);

        saveAsItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        saveAsItem.setMnemonic('A');
        saveAsItem.setText("Save As...");
        saveAsItem.setToolTipText("Menu:saveAs");
        saveAsItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        saveAsItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                saveAsItem_ActionPerformed(evt);
            }
        });
        M_project.add(saveAsItem);

        setRunLocation.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.CTRL_MASK));
        setRunLocation.setMnemonic('U');
        setRunLocation.setText("Set Run Location");
        setRunLocation.setToolTipText("Menu:setRunLocation");
        setRunLocation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                setRunLocationActionPerformed(evt);
            }
        });
        M_project.add(setRunLocation);

        resetProjectItem.setText("Reset");
        resetProjectItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                resetProjectItemActionPerformed(evt);
            }
        });
        M_project.add(resetProjectItem);

        deleteProjectItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        deleteProjectItem.setMnemonic('P');
        deleteProjectItem.setText("Delete Project");
        deleteProjectItem.setToolTipText("Menu:deleteProject");
        deleteProjectItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        deleteProjectItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteProjectItemActionPerformed(evt);
            }
        });
        M_project.add(deleteProjectItem);

        exportRunItem.setText("Export Run...");
        exportRunItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exportRunItemActionPerformed(evt);
            }
        });
        M_project.add(exportRunItem);

        deleteRunItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        deleteRunItem.setMnemonic('D');
        deleteRunItem.setText("Delete Run");
        deleteRunItem.setToolTipText("Menu:deleteRun");
        deleteRunItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        deleteRunItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteRunItemActionPerformed(evt);
            }
        });
        M_project.add(deleteRunItem);

        deleteMgmtItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.CTRL_MASK));
        deleteMgmtItem.setMnemonic('M');
        deleteMgmtItem.setText("Delete Management Rotation File\n");
        deleteMgmtItem.setToolTipText("Menu:deleteMgmtFile");
        deleteMgmtItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        deleteMgmtItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteMgmtItemActionPerformed(evt);
            }
        });
        M_project.add(deleteMgmtItem);

        deleteSoilItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
        deleteSoilItem.setText("Delete IFC Soil File");
        deleteSoilItem.setToolTipText("Menu:deleteSoilFile");
        deleteSoilItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        deleteSoilItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                deleteSoilItemActionPerformed(evt);
            }
        });
        M_project.add(deleteSoilItem);

        openDatabasesItem.setText("Browse Databases Folder...");
        openDatabasesItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                openDatabasesItemActionPerformed(evt);
            }
        });
        M_project.add(openDatabasesItem);
        M_project.add(jSeparator1);

        exitItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
        exitItem.setMnemonic('X');
        exitItem.setText("Exit");
        exitItem.setToolTipText("Menu:exit");
        exitItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exitItem_ActionPerformed(evt);
            }
        });
        M_project.add(exitItem);

        MB_main.add(M_project);

        M_run.setMnemonic('R');
        M_run.setText("Run");
        M_run.setToolTipText("Menu:run");

        MI_makeRun.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
        MI_makeRun.setMnemonic('R');
        MI_makeRun.setText("Make a WEPS Run");
        MI_makeRun.setToolTipText("Menu:makeRun");
        MI_makeRun.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIMakeRun_ActionPerformed(evt);
            }
        });
        M_run.add(MI_makeRun);

        MI_makeCalibrationRun.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        MI_makeCalibrationRun.setMnemonic('C');
        MI_makeCalibrationRun.setText("Make a Yield Calibration WEPS Run");
        MI_makeCalibrationRun.setToolTipText("Menu:makeYieldCalibrationRun");
        MI_makeCalibrationRun.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIMakeCalibrationRun_ActionPerformed(evt);
            }
        });
        M_run.add(MI_makeCalibrationRun);

        MI_restoreRun.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
        MI_restoreRun.setMnemonic('E');
        MI_restoreRun.setText("Restore WEPS Run");
        MI_restoreRun.setToolTipText("Menu:restoreRun");
        MI_restoreRun.setActionCommand("Restore a WEPS Run");
        MI_restoreRun.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIRestoreRun_ActionPerformed(evt);
            }
        });
        M_run.add(MI_restoreRun);

        MB_main.add(M_run);

        M_output.setMnemonic('V');
        M_output.setText("ViewOutput");
        M_output.setToolTipText("Menu:output");

        M_current.setMnemonic('C');
        M_current.setText("Most Recent Run");
        M_current.setToolTipText("Menu:currentOutput");
        M_current.setActionCommand("ViewOutput");

        MI_currentProjectSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentProjectSummary.setMnemonic('R');
        MI_currentProjectSummary.setText("Run");
        MI_currentProjectSummary.setToolTipText("Menu:currentRS");
        MI_currentProjectSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentProjectSummary_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentProjectSummary);

        MI_currentYieldSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentYieldSummary.setMnemonic('C');
        MI_currentYieldSummary.setText("Crop");
        MI_currentYieldSummary.setToolTipText("Menu:currentYS");
        MI_currentYieldSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentYieldSummary_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentYieldSummary);

        MI_currentCCSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentCCSummary.setMnemonic('v');
        MI_currentCCSummary.setText("Cover Crop");
        MI_currentCCSummary.setToolTipText("Menu:currentCC");
        MI_currentCCSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentCCSummary_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentCCSummary);

        MI_currentCISummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentCISummary.setMnemonic('I');
        MI_currentCISummary.setText("Crop Interval");
        MI_currentCISummary.setToolTipText("Menu:currentCI");
        MI_currentCISummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentCISummary_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentCISummary);

        MI_currentManagementSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentManagementSummary.setMnemonic('M');
        MI_currentManagementSummary.setText("Management");
        MI_currentManagementSummary.setToolTipText("Menu:currentMS");
        MI_currentManagementSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentManagementSummary_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentManagementSummary);

        MI_currentStirEnergyReport.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentStirEnergyReport.setMnemonic('E');
        MI_currentStirEnergyReport.setText("STIR Energy");
        MI_currentStirEnergyReport.setToolTipText("Menu:currentSR");
        MI_currentStirEnergyReport.setActionCommand("Current Run Output");
        MI_currentStirEnergyReport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIcurrentSTIREnergyReport_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentStirEnergyReport);

        MI_CurrentCropDet.setText("Crop Detail");
        MI_CurrentCropDet.setToolTipText("Menu:currentYD");
        MI_CurrentCropDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentCropDet_actionPerformed(evt);
            }
        });
        M_current.add(MI_CurrentCropDet);

        MI_CurrentCCDet.setText("Cover Crop Detail");
        MI_CurrentCCDet.setToolTipText("Menu:currentCD");
        MI_CurrentCCDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_CurrentCCDetActionPerformed(evt);
            }
        });
        M_current.add(MI_CurrentCCDet);

        MI_CurrentCIDet.setText("Crop Interval Detail");
        MI_CurrentCIDet.setToolTipText("Menu:currentID");
        MI_CurrentCIDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_CurrentCIDetActionPerformed(evt);
            }
        });
        M_current.add(MI_CurrentCIDet);

        MI_CurrentCIPDet.setText("Crop Interval Period Detail");
        MI_CurrentCIPDet.setToolTipText("Menu:currentPD");
        MI_CurrentCIPDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_CurrentCIPerDetActionPerformed(evt);
            }
        });
        M_current.add(MI_CurrentCIPDet);

        MI_currentConfidenceInterval.setText("Confidence Interval");
        MI_currentConfidenceInterval.setToolTipText("Menu:currentIR");
        MI_currentConfidenceInterval.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_currentConfidenceIntervalActionPerformed(evt);
            }
        });
        M_current.add(MI_currentConfidenceInterval);

        MI_currentOutput.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentOutput.setMnemonic('T');
        MI_currentOutput.setText("Tabular Detail Report");
        MI_currentOutput.setToolTipText("Menu:currentTD");
        MI_currentOutput.setActionCommand("Current Run Output");
        MI_currentOutput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentOutput_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentOutput);

        MI_currentRawOutput.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_currentRawOutput.setText("Science Model Reports");
        MI_currentRawOutput.setToolTipText("Menu:currentSM");
        MI_currentRawOutput.setActionCommand("Current Run Output");
        MI_currentRawOutput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MICurrentRawOutput_ActionPerformed(evt);
            }
        });
        M_current.add(MI_currentRawOutput);

        M_output.add(M_current);

        M_other.setMnemonic('P');
        M_other.setText("Previous Run");
        M_other.setToolTipText("Menu:otherOutput");
        M_other.setActionCommand("ViewOutput");

        MI_otherProjectSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherProjectSummary.setMnemonic('R');
        MI_otherProjectSummary.setText("Run");
        MI_otherProjectSummary.setToolTipText("Menu:otherRS");
        MI_otherProjectSummary.setActionCommand("Other Run");
        MI_otherProjectSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherSummary_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherProjectSummary);

        MI_otherYieldSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherYieldSummary.setMnemonic('C');
        MI_otherYieldSummary.setText("Crop");
        MI_otherYieldSummary.setToolTipText("Menu:otherYS");
        MI_otherYieldSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherYieldSummary_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherYieldSummary);

        MI_otherCCSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherCCSummary.setMnemonic('v');
        MI_otherCCSummary.setText("Cover Crop");
        MI_otherCCSummary.setToolTipText("Menu:otherCC");
        MI_otherCCSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherCCSummary_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherCCSummary);

        MI_otherCISummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherCISummary.setMnemonic('I');
        MI_otherCISummary.setText("Crop Interval");
        MI_otherCISummary.setToolTipText("Menu:otherCI");
        MI_otherCISummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherCISummary_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherCISummary);

        MI_otherManagementSummary.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherManagementSummary.setMnemonic('M');
        MI_otherManagementSummary.setText("Management");
        MI_otherManagementSummary.setToolTipText("Menu:otherMS");
        MI_otherManagementSummary.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherManagementSummary_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherManagementSummary);

        MI_otherStirEnergyReport.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherStirEnergyReport.setMnemonic('E');
        MI_otherStirEnergyReport.setText("STIR Energy");
        MI_otherStirEnergyReport.setToolTipText("Menu:otherSR");
        MI_otherStirEnergyReport.setActionCommand("Current Run Output");
        MI_otherStirEnergyReport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherSTIREnergyReport_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherStirEnergyReport);

        MI_otherCropDet.setText("Crop Detail");
        MI_otherCropDet.setToolTipText("Menu:otherYD");
        MI_otherCropDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherCropDet_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherCropDet);

        MI_otherCCDet.setText("Cover Crop Detail");
        MI_otherCCDet.setToolTipText("Menu:otherCD");
        MI_otherCCDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_OtherCCDetActionPerformed(evt);
            }
        });
        M_other.add(MI_otherCCDet);

        MI_otherCIDet.setText("Crop Interval Detail");
        MI_otherCIDet.setToolTipText("Menu:otherID");
        MI_otherCIDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_OtherCIDetActionPerformed(evt);
            }
        });
        M_other.add(MI_otherCIDet);

        MI_otherCIPDet.setText("Crop Interval Period Detail");
        MI_otherCIPDet.setToolTipText("Menu:otherPD");
        MI_otherCIPDet.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_OtherCIPerDetActionPerformed(evt);
            }
        });
        M_other.add(MI_otherCIPDet);

        MI_otherConfidenceInterval.setText("Confidence Interval");
        MI_otherConfidenceInterval.setToolTipText("Menu:otherIR");
        MI_otherConfidenceInterval.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_otherConfidenceIntervalActionPerformed(evt);
            }
        });
        M_other.add(MI_otherConfidenceInterval);

        MI_otherOutput.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherOutput.setMnemonic('T');
        MI_otherOutput.setText("Tabular Detail Report");
        MI_otherOutput.setToolTipText("Menu:otherTD");
        MI_otherOutput.setActionCommand("Other Run Output");
        MI_otherOutput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherOutput_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherOutput);

        MI_otherRawOutput.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_otherRawOutput.setText("Science Model Reports");
        MI_otherRawOutput.setToolTipText("Menu:otherSM");
        MI_otherRawOutput.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIOtherRawOutput_ActionPerformed(evt);
            }
        });
        M_other.add(MI_otherRawOutput);

        M_output.add(M_other);

        MI_runmanger.setText("Multiple Run Manager");
        MI_runmanger.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_runmangerActionPerformed(evt);
            }
        });
        M_output.add(MI_runmanger);

        MB_main.add(M_output);

        M_tools.setMnemonic('T');
        M_tools.setText("Tools");
        M_tools.setToolTipText("Menu:tools");

        M_dbreports.setText("Database Reports");

        JMI_cropsreport.setText("Crops");
        JMI_cropsreport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_cropsreportActionPerformed(evt);
            }
        });
        M_dbreports.add(JMI_cropsreport);

        JMI_opsreport.setText("Operations");
        JMI_opsreport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_opsreportActionPerformed(evt);
            }
        });
        M_dbreports.add(JMI_opsreport);

        JMI_manreport.setText("Managements");
        JMI_manreport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_manreportActionPerformed(evt);
            }
        });
        M_dbreports.add(JMI_manreport);

        M_tools.add(M_dbreports);

        MISendEmail.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.ALT_MASK));
        MISendEmail.setMnemonic('E');
        MISendEmail.setText("Send Email");
        MISendEmail.setToolTipText("Menu:sendEmail");
        MISendEmail.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                MISendEmail_MouseClicked(evt);
            }
        });
        MISendEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MISendEmail_ActionPerformed(evt);
            }
        });
        M_tools.add(MISendEmail);

        JMI_mantis.setText("Send Bug / Comment Report");
        JMI_mantis.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.ALT_MASK));
        JMI_mantis.setMnemonic('B');
        JMI_mantis.setToolTipText("Menu:bugReport");
        JMI_mantis.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_mantisActionPerformed(evt);
            }
        });
        M_tools.add(JMI_mantis);

        MIWindStation.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_W, java.awt.event.InputEvent.ALT_MASK));
        MIWindStation.setMnemonic('W');
        MIWindStation.setText("Display Wind Station Info");
        MIWindStation.setToolTipText("Menu:windStation");
        MIWindStation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIWindStationActionPerformed(evt);
            }
        });
        M_tools.add(MIWindStation);
        MIWindStation.getAccessibleContext().setAccessibleName("Wind Station");

        MIDiff.setText("Diff WEPS Files");
        MIDiff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIDiffActionPerformed(evt);
            }
        });
        M_tools.add(MIDiff);

        Nrmv.setText("NRMV");

        LaunchNrmv.setText("Launch NRMV");
        LaunchNrmv.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LaunchNrmvActionPerformed(evt);
            }
        });
        Nrmv.add(LaunchNrmv);

        ClearNrmvData.setText("Clear NRMV Data");
        ClearNrmvData.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ClearNrmvDataActionPerformed(evt);
            }
        });
        Nrmv.add(ClearNrmvData);

        CreateNrmvFiles.setText("Create NRMV Files for a Past Run");
        CreateNrmvFiles.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CreateNrmvFilesActionPerformed(evt);
            }
        });
        Nrmv.add(CreateNrmvFiles);

        CreateNrmvFilesNoSummaries.setText("Create NRMV Files (no summaries)");
        CreateNrmvFilesNoSummaries.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CreateNrmvFilesNoSummariesActionPerformed(evt);
            }
        });
        Nrmv.add(CreateNrmvFilesNoSummaries);

        if(ConfigData.isNRMVVis())
        {
            M_tools.add(Nrmv);
        }

        JMI_massSoilChooser.setText("Mass Soil Chooser");
        JMI_massSoilChooser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_massSoilChooserActionPerformed(evt);
            }
        });
        M_tools.add(JMI_massSoilChooser);

        MI_config.setText("Edit Configuration");
        MI_config.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.ALT_MASK));
        MI_config.setMnemonic('C');
        MI_config.setToolTipText("Menu:editConfig");
        MI_config.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIEditConfig_ActionPerformed(evt);
            }
        });
        M_tools.add(MI_config);

        MB_main.add(M_tools);

        M_help.setMnemonic('H');
        M_help.setText("Help");
        M_help.setToolTipText("Menu:help");

        MI_helpTopics.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_H, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_helpTopics.setMnemonic('H');
        MI_helpTopics.setText("Help Topics");
        MI_helpTopics.setToolTipText("Menu:helpTopics");
        MI_helpTopics.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MIHelpTopics_ActionPerformed(evt);
            }
        });
        M_help.add(MI_helpTopics);

        MI_userGuide.setMnemonic('U');
        MI_userGuide.setText("User Guide");
        MI_userGuide.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_U, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_userGuide.setToolTipText("Menu:usersGuide");
        MI_userGuide.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_userGuideActionPerformed(evt);
            }
        });
        M_help.add(MI_userGuide);

        MI_welcomWizard.setText("Welcome Wizard");
        MI_welcomWizard.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_welcomWizardActionPerformed(evt);
            }
        });
        M_help.add(MI_welcomWizard);

        MI_log.setText("View Log Messages");
        MI_log.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_log.setMnemonic('L');
        MI_log.setToolTipText("Menu:logMessages");
        MI_log.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_logActionPerformed(evt);
            }
        });
        M_help.add(MI_log);

        MI_aboutItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MI_aboutItem.setMnemonic('A');
        MI_aboutItem.setText("About Weps");
        MI_aboutItem.setToolTipText("Menu:about");
        MI_aboutItem.setActionCommand("About...");
        MI_aboutItem.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
        MI_aboutItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MI_aboutItem_ActionPerformed(evt);
            }
        });
        M_help.add(MI_aboutItem);

        MB_main.add(M_help);

        setJMenuBar(MB_main);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(JTB_main, javax.swing.GroupLayout.DEFAULT_SIZE, 926, Short.MAX_VALUE)
            .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(JTB_main, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 662, Short.MAX_VALUE)
                .addContainerGap())
        );

        scrollPane.getAccessibleContext().setAccessibleName("");

        setSize(new java.awt.Dimension(934, 764));
        setLocationRelativeTo(null);
    }// </editor-fold>//GEN-END:initComponents

    protected void MI_userGuideActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_userGuideActionPerformed

    }//GEN-LAST:event_MI_userGuideActionPerformed

    protected void runCalButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_runCalButtonActionPerformed
        MIMakeCalibrationRun_actionPerformed(evt);
    }//GEN-LAST:event_runCalButtonActionPerformed

    protected void runCalButton_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void JP_center_componentResized(java.awt.event.ComponentEvent evt) {

    }
    protected void JTF_mostRecentRunMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_JTF_mostRecentRunMouseMoved
        JTF_mostRecentRun_mouseMoved(evt);
    }//GEN-LAST:event_JTF_mostRecentRunMouseMoved

    protected void JTF_mostRecentRun_mouseMoved(java.awt.event.MouseEvent evt) {

    }

    protected void JB_setRunLocation_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_setRunLocation_ActionPerformed
        setRunLocation_actionPerformed(evt);
    }//GEN-LAST:event_JB_setRunLocation_ActionPerformed

    protected void setRunLocationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setRunLocationActionPerformed
        setRunLocation_actionPerformed(evt);
    }//GEN-LAST:event_setRunLocationActionPerformed

    protected void setRunLocation_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void JB_DR_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_DR_ActionPerformed
        JB_DR_actionPerformed(evt);
    }//GEN-LAST:event_JB_DR_ActionPerformed

    protected void JB_CR_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_CR_ActionPerformed
        JB_CR_actionPerformed(evt);
    }//GEN-LAST:event_JB_CR_ActionPerformed

    protected void JB_MR_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_MR_ActionPerformed
        JB_MR_actionPerformed(evt);
    }//GEN-LAST:event_JB_MR_ActionPerformed

    protected void JB_RR_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_RR_ActionPerformed
        JB_RR_actionPerformed(evt);
    }//GEN-LAST:event_JB_RR_ActionPerformed

    /**
     * Action listener implementation of the toolbar button for detail report.
     *
     * @param evt
     */
    protected void JB_DR_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    /**
     * Action listener implementation of the toolbar button for crop report.
     *
     * @param evt
     */
    protected void JB_CR_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    /**
     * Action listener implementation of the toolbar button for management
     * summary report.
     *
     * @param evt
     */
    protected void JB_MR_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    /**
     * Action listener implementation of the toolbar button for run summary
     * report.
     *
     * @param evt
     */
    protected void JB_RR_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    /**
     * Action listener implementation of the toolbar button for cover crop
     * report.
     *
     * @param evt
     */
    protected void JB_CC_ActionPerformed(java.awt.event.ActionEvent evt) {
    }

    /**
     * Action listener implementation of the toolbar button for crop interval
     * report.
     *
     * @param evt
     */
    protected void JB_CI_ActionPerformed(java.awt.event.ActionEvent evt) {
    }

    /**
     * Action listener implementation of the toolbar button for STIR report.
     *
     * @param evt
     */
    protected void JB_SR_actionPerformed(java.awt.event.ActionEvent evt) {

    }


    protected void MIDiffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIDiffActionPerformed
        MIDiff_actionPerformed(evt);
    }//GEN-LAST:event_MIDiffActionPerformed

    protected void MIDiff_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void MI_runmangerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_runmangerActionPerformed
        MI_runmanger_actionPerformed(evt);
    }//GEN-LAST:event_MI_runmangerActionPerformed
    protected void MI_runmanger_actionPerformed(java.awt.event.ActionEvent evt) {
    }
    protected void MIWindStationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIWindStationActionPerformed
        MIWindStation_actionPerformed(evt);
    }//GEN-LAST:event_MIWindStationActionPerformed

    protected void windowGainedFocus_ActionPerformed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_windowGainedFocus_ActionPerformed
        windowGainedFocus_actionPerformed(evt);
    }//GEN-LAST:event_windowGainedFocus_ActionPerformed

    protected void deleteSoilItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteSoilItemActionPerformed
        deleteSoilItem_actionPerformed(evt);
    }//GEN-LAST:event_deleteSoilItemActionPerformed

    protected void deleteMgmtItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteMgmtItemActionPerformed
        deleteMgmtItem_actionPerformed(evt);
    }//GEN-LAST:event_deleteMgmtItemActionPerformed

    protected void deleteRunItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteRunItemActionPerformed
        deleteRunItem_actionPerformed(evt);
    }//GEN-LAST:event_deleteRunItemActionPerformed

    protected void deleteProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteProjectItemActionPerformed
        deleteProjectItem_actionPerformed(evt);
    }//GEN-LAST:event_deleteProjectItemActionPerformed

    protected void MIMakeCalibrationRun_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIMakeCalibrationRun_ActionPerformed
        MIMakeCalibrationRun_actionPerformed(evt);
    }//GEN-LAST:event_MIMakeCalibrationRun_ActionPerformed

    protected void MIMakeRun_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIMakeRun_ActionPerformed
        MIMakeRun_actionPerformed(evt);
    }//GEN-LAST:event_MIMakeRun_ActionPerformed

    protected void emailButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_emailButton_ActionPerformed
        //MISendEmail2_actionPerformed(evt);
        MISendEmail.doClick();
    }//GEN-LAST:event_emailButton_ActionPerformed

    protected void MISendEmail_MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_MISendEmail_MouseClicked
        try {
            // MI_sendEmail Click the JMenuItem
            MISendEmail.doClick();
        } catch (java.lang.Exception e) {
        }
    }//GEN-LAST:event_MISendEmail_MouseClicked

    protected void exitSystem(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitSystem
        exitApplication();
    }//GEN-LAST:event_exitSystem

    protected void helpButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpButton_ActionPerformed
        MIHelpTopics_actionPerformed(evt);
    }//GEN-LAST:event_helpButton_ActionPerformed

    protected void aboutButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutButton_ActionPerformed
        MI_aboutButton_actionPerformed(evt);
    }//GEN-LAST:event_aboutButton_ActionPerformed

    protected void loadrunButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_loadrunButton_ActionPerformed
        MIRestoreRun_actionPerformed(evt);
    }//GEN-LAST:event_loadrunButton_ActionPerformed

    protected void runButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_runButton_ActionPerformed
        MIMakeRun_actionPerformed(evt);
    }//GEN-LAST:event_runButton_ActionPerformed

    protected void saveButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveButton_ActionPerformed
        saveItem_actionPerformed(evt);
    }//GEN-LAST:event_saveButton_ActionPerformed

    protected void openButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openButton_ActionPerformed
        openItem_actionPerformed(evt);
    }//GEN-LAST:event_openButton_ActionPerformed

    protected void MIEditConfig_ActionPerformed(java.awt.event.ActionEvent evt) {
        MIEditConfig_actionPerformed(evt);
    }

    protected void MIcurrentSTIREnergyReport_ActionPerformed(java.awt.event.ActionEvent evt) {
        MICurrentSTIRSummary_actionPerformed(evt);
    }

    protected void newButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newButton_ActionPerformed
        newItem_actionPerformed(evt);
    }//GEN-LAST:event_newButton_ActionPerformed

    protected void MIHelpTopics_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIHelpTopics_ActionPerformed
        MIHelpTopics_actionPerformed(evt);
    }//GEN-LAST:event_MIHelpTopics_ActionPerformed

    protected void MI_aboutItem_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_aboutItem_ActionPerformed
        MI_aboutItem_actionPerformed(evt);
    }//GEN-LAST:event_MI_aboutItem_ActionPerformed

    protected void MISendEmail_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MISendEmail_ActionPerformed
        MISendEmail_actionPerformed(evt);
    }//GEN-LAST:event_MISendEmail_ActionPerformed

    protected void MIRestoreRun_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIRestoreRun_ActionPerformed
        MIRestoreRun_actionPerformed(evt);
    }//GEN-LAST:event_MIRestoreRun_ActionPerformed

    protected void MIOtherRawOutput_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIOtherRawOutput_ActionPerformed
        MIOtherRawOutput_actionPerformed(evt);
    }//GEN-LAST:event_MIOtherRawOutput_ActionPerformed

    protected void MIOtherOutput_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIOtherOutput_ActionPerformed
        MIOtherOutput_actionPerformed(evt);
    }//GEN-LAST:event_MIOtherOutput_ActionPerformed

    protected void MIOtherManagementSummary_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIOtherManagementSummary_ActionPerformed
        MIOtherManagementSummary_actionPerformed(evt);
    }//GEN-LAST:event_MIOtherManagementSummary_ActionPerformed

    protected void MIOtherYieldSummary_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIOtherYieldSummary_ActionPerformed
        MIOtherYieldSummary_actionPerformed(evt);
    }//GEN-LAST:event_MIOtherYieldSummary_ActionPerformed

    protected void MIOtherSummary_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MIOtherSummary_ActionPerformed
        MIOtherSummary_actionPerformed(evt);
    }//GEN-LAST:event_MIOtherSummary_ActionPerformed

    protected void MICurrentRawOutput_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MICurrentRawOutput_ActionPerformed
        MICurrentRawOutput_actionPerformed(evt);
    }//GEN-LAST:event_MICurrentRawOutput_ActionPerformed

    protected void MICurrentOutput_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MICurrentOutput_ActionPerformed
        MICurrentOutput_actionPerformed(evt);
    }//GEN-LAST:event_MICurrentOutput_ActionPerformed

    protected void MICurrentManagementSummary_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MICurrentManagementSummary_ActionPerformed
        MICurrentManagementSummary_actionPerformed(evt);
    }//GEN-LAST:event_MICurrentManagementSummary_ActionPerformed

    protected void MICurrentYieldSummary_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MICurrentYieldSummary_ActionPerformed
        MICurrentYieldSummary_actionPerformed(evt);
    }//GEN-LAST:event_MICurrentYieldSummary_ActionPerformed

    protected void MICurrentProjectSummary_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MICurrentProjectSummary_ActionPerformed
        MICurrentProjectSummary_actionPerformed(evt);
    }//GEN-LAST:event_MICurrentProjectSummary_ActionPerformed

    protected void exitItem_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exitItem_ActionPerformed
        exitItem_actionPerformed(evt);
    }//GEN-LAST:event_exitItem_ActionPerformed

    protected void saveAsItem_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveAsItem_ActionPerformed
        saveAsItem_actionPerformed(evt);
    }//GEN-LAST:event_saveAsItem_ActionPerformed

    protected void saveItem_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveItem_ActionPerformed
        saveItem_actionPerformed(evt);
    }//GEN-LAST:event_saveItem_ActionPerformed

    protected void openItem_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openItem_ActionPerformed
        openItem_actionPerformed(evt);
    }//GEN-LAST:event_openItem_ActionPerformed

    protected void newItem_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_newItem_ActionPerformed
        newItem_actionPerformed(evt);
    }//GEN-LAST:event_newItem_ActionPerformed

    protected void exportRunItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportRunItemActionPerformed
        exportRunItem_actionPerformed(evt);
    }//GEN-LAST:event_exportRunItemActionPerformed

protected void JMI_mantisActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_mantisActionPerformed

}//GEN-LAST:event_JMI_mantisActionPerformed

private void JB_SR_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_SR_ActionPerformed
    JB_SR_actionPerformed(evt);
}//GEN-LAST:event_JB_SR_ActionPerformed

private void resetProjectItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_resetProjectItemActionPerformed
    resetProjectItem_ActionPerformed(evt);
}//GEN-LAST:event_resetProjectItemActionPerformed

private void mantisButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mantisButton_ActionPerformed
    JMI_mantisActionPerformed(evt);
}//GEN-LAST:event_mantisButton_ActionPerformed

private void MI_welcomWizardActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_welcomWizardActionPerformed
    MI_welcomWizard_actionPerformed(evt);
}//GEN-LAST:event_MI_welcomWizardActionPerformed

private void openDatabasesItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openDatabasesItemActionPerformed
    openDatabasesItem_actionPerformed(evt);
}//GEN-LAST:event_openDatabasesItemActionPerformed

private void MI_logActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_logActionPerformed
    MI_log_actionPerformed(evt);
}//GEN-LAST:event_MI_logActionPerformed

private void JMI_cropsreportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_cropsreportActionPerformed
    JMI_cropsreport_actionPerformed(evt);
}//GEN-LAST:event_JMI_cropsreportActionPerformed

private void JMI_opsreportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_opsreportActionPerformed
    JMI_opsreport_actionPerformed(evt);
}//GEN-LAST:event_JMI_opsreportActionPerformed

private void JMI_manreportActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_manreportActionPerformed
    JMI_manreport_actionPerformed(evt);
}//GEN-LAST:event_JMI_manreportActionPerformed

    private void MI_currentConfidenceIntervalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_currentConfidenceIntervalActionPerformed
        MI_currentConfidenceInterval_actionPerformed(evt);
    }//GEN-LAST:event_MI_currentConfidenceIntervalActionPerformed

    private void MI_otherConfidenceIntervalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_otherConfidenceIntervalActionPerformed
        MI_otherConfidenceInterval_actionPerformed(evt);
    }//GEN-LAST:event_MI_otherConfidenceIntervalActionPerformed

    private void LaunchNrmvToolbarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LaunchNrmvToolbarActionPerformed
        System.out.println("toolbar button NRMV launch action performed");
        RunNRMV();
    }//GEN-LAST:event_LaunchNrmvToolbarActionPerformed

    private void LaunchNrmvActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LaunchNrmvActionPerformed
        System.out.println("dropdown menu NRMV launch action performed");
        RunNRMV();
    }//GEN-LAST:event_LaunchNrmvActionPerformed

    private void ClearNrmvDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ClearNrmvDataActionPerformed
        ClearNRMVFiles();
    }//GEN-LAST:event_ClearNrmvDataActionPerformed

    private void CreateNrmvFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CreateNrmvFilesActionPerformed
        createNrmvFiles(true);
    }//GEN-LAST:event_CreateNrmvFilesActionPerformed

    private void CreateNrmvFilesNoSummariesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CreateNrmvFilesNoSummariesActionPerformed
        createNrmvFiles(false);
    }//GEN-LAST:event_CreateNrmvFilesNoSummariesActionPerformed

    private void JB_IR_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_IR_ActionPerformed
        JBIRActionPerformed(evt);
    }//GEN-LAST:event_JB_IR_ActionPerformed

    private void MI_CurrentCCDetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_CurrentCCDetActionPerformed
        MICurrentCCDetActionPerformed(evt);
    }//GEN-LAST:event_MI_CurrentCCDetActionPerformed

    private void MI_otherCIPerDetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MI_otherCIPerDetActionPerformed
        MI_OtherCIPerDetActionPerformed(evt);
    }//GEN-LAST:event_MI_otherCIPerDetActionPerformed

    private void JMI_massSoilChooserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_massSoilChooserActionPerformed
        MassSoilChooser msc = new MassSoilChooser(this);
        msc.setVisible(true);
        msc.requestFocus();
    }//GEN-LAST:event_JMI_massSoilChooserActionPerformed
    /**
     * Action listener implementation of the toolbar button for confidence
     * interval report.
     *
     * @param evt
     */
    protected void JBIRActionPerformed(java.awt.event.ActionEvent evt) {

    }

    public void MICurrentSTIRSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    protected void MI_currentConfidenceInterval_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void MI_otherConfidenceInterval_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void JMI_opsreport_actionPerformed(java.awt.event.ActionEvent evt) {
    }

    protected void JMI_cropsreport_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void JMI_manreport_actionPerformed(java.awt.event.ActionEvent evt) {
    }

    protected void MI_log_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void openDatabasesItem_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void MI_welcomWizard_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void resetProjectItem_ActionPerformed(java.awt.event.ActionEvent evt) {

    }

    protected void exportRunItem_actionPerformed(java.awt.event.ActionEvent evt) {

    }

    public void windowGainedFocus_actionPerformed(java.awt.event.WindowEvent evt) {
    }

    // ============ PROJECT submenu items =============
    /**
     * This method is invoked whenever a new project is to be created and all
     * the "RUNS" made specific to that project will be saved in that project
     * directory.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user intends to create a new WEPS project.
     */
    public void newItem_actionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever a file is to be opened from the existing
     * project directory.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user intends to open an existing WEPS project.
     */
    public void openItem_actionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the data needs to be saved in a currently
     * open project.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user intends to save the data in a currently open WEPS project.
     */
    public void saveItem_actionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the data needs to be saved in a different
     * but a newer project.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user intends to save (SaveAs) the data in a new WEPS project.
     */
    public void saveAsItem_actionPerformed(java.awt.event.ActionEvent event) {
    }

    // ============ CONFIGURATION submenu items =============
    /**
     * This method is invoked whenever the user intends to set or modify the
     * project configuration settings like the executable paths, various
     * directory settings, output settings, email details, run specifics, etc.
     *
     * @param event The mouse click or keyboard selection event generated when
     * the user tries to get to the configuration screen from the meu options
     * provided in the WEPS GUI under configuration.
     */
    public void MIEditConfig_actionPerformed(java.awt.event.ActionEvent event) {
    }

    public void deleteProjectItem_actionPerformed(java.awt.event.ActionEvent event) {
    }

    public void deleteRunItem_actionPerformed(java.awt.event.ActionEvent event) {
    }

    public void deleteMgmtItem_actionPerformed(java.awt.event.ActionEvent evt) {
    }

    public void deleteSoilItem_actionPerformed(java.awt.event.ActionEvent evt) {
    }

    // ============ ViewOutput CURRENT submenu items =============
    /**
     * This method is invoked whenever the user intends to view the current
     * project's summary report showing project details, the details of that
     * simulation run and the site on which the simulation was executed, its
     * details, the crop & barrier details along with the notes that were saved
     * for that run.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the current project's summary.
     */
    public void MICurrentProjectSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's crop summary report, corresponding the the yield summary report
     * but only containing the summary block for each crop cycle.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MICurrentYieldSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's cover crop summary report, corresponding the the yield summary
     * report but only containing the summary block for each crop cycle.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MICurrentCCSummary_ActionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's crop interval summary report, corresponding the the yield
     * summary report but only containing the summary block for each crop cycle.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MICurrentCISummary_ActionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's "YIELD" detailed report showing crop yields in different
     * scenarios for a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MICurrentCropDet_actionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's cover crop detailed report showing crop yields in different
     * scenarios for a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MICurrentCCDetActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's crop interval detailed report showing crop yields in different
     * scenarios for a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MI_CurrentCIDetActionPerformed(java.awt.event.ActionEvent event) {
    }
    
    //generate period data report  
    public void MI_CurrentCIPerDetActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's "MANAGEMENT" summary report showing all the operation's that
     * belong to that particular run of the project.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view all the operations & crops associated to that run.
     */
    public void MICurrentManagementSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's "OUTPUT" summary report called "Detail Report" showing all
     * different types of outputs screens based on the specifics of each screen
     * designed earlier to be pulled out such as field or boundary loss, weather
     * or erosion details, crop, residue, bio-mass or soil surface details.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user selects any particular report from the choice list provided
     * after the main output screen has appeared.
     */
    public void MICurrentRawOutput_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's "OUTPUT" summary report called "Debugging Report" showing the
     * debug screens for all the files associated to the current "WEPS Run".
     * They can be vied in a text only format.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user clicks under the the "ViewOutput" report the debugging report
     * option and select anny particular report from the choice list provided on
     * the GUI screen that appears.
     */
    public void MICurrentOutput_actionPerformed(java.awt.event.ActionEvent event) {

    }

    // ======== ViewOutput PREVIOUS submenu items =========
    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's summary report showing project details, the details of that
     * simulation run and the site on which the simulation was executed, its
     * details, the crop & barrier details along with the notes that were saved
     * for that run.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the previous project's summary.
     */
    public void MIOtherSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's "YIELD" summary report showing crop yields in different
     * scenarios for a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MIOtherYieldSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's cover crop summary report showing crop yields in different
     * scenarios for a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MIOtherCCSummary_ActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's cover crop summary report showing crop yields in different
     * scenarios for a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MIOtherCISummary_ActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's crop summary report, corresponding the the yield summary report
     * but only containing the summary block for each crop cycle.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MIOtherCropDet_ActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's cover crop detail report, corresponding the the yield summary
     * report but only containing the summary block for each crop cycle.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MI_OtherCCDetActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the current
     * project's crop interval detail report, corresponding the the yield
     * summary report but only containing the summary block for each crop cycle.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MI_OtherCIDetActionPerformed(java.awt.event.ActionEvent event) {
    }
    
    public void MI_OtherCIPerDetActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's "MANAGEMENT" summary report showing all the operation's
     * that belong to that particular run of the project.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view all the operations & crops associated to that run.
     */
    public void MIOtherManagementSummary_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's STIR report showing crop yields in different scenarios for
     * a particular rotation cycle in different rotation years.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user wants to view the crop's yield summary for a particular run of a
     * project.
     */
    public void MIOtherSTIREnergyReport_ActionPerformed(java.awt.event.ActionEvent event) {
    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's "OUTPUT" summary report called "Detail Report" showing all
     * different types of outputs screens based on the specifics of each screen
     * designed earlier to be pulled out such as field or boundary loss, weather
     * or erosion details, crop, residue, bio-mass or soil surface details.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user selects any particular report from the choice list provided
     * after the main output screen has appeared.
     */
    public void MIOtherRawOutput_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to view the previously
     * run project's "OUTPUT" summary report called "Debugging Report" showing
     * the debug screens for all the files associated to the current "WEPS Run".
     * They can be vied in a text only format.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user clicks under the the "ViewOutput" report the debugging report
     * option and select anny particular report from the choice list provided on
     * the GUI screen that appears.
     */
    public void MIOtherOutput_actionPerformed(java.awt.event.ActionEvent event) {

    }

    // ====== Submenu of RUN =======
    /**
     * This method is invoked whenever the user intends to execute WEPS
     * application making a run to visualize the GUI contents for that
     * particularly selected operation. All reports there on can be viewed using
     * "ViewOutput" report option and more research done on those wun file using
     * the WEPS GUI options.
     *
     * @param event The mouse click or keyboard selection event generated when
     * the user clicks the "Run" menu option to execute a WEPS run
     *
     */
    public void MIMakeRun_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is invoked whenever the user intends to execute WEPS
     * application using a calibration run to visualize the GUI contents and
     * setting for the operations that have crop information that will be used
     * in crop rotation editor for analysing various parameters and genrating
     * different reports as needed by the WEPS/MCREW GUI user. Also all reports
     * can be viewed using "ViewOutput" report option and more research done on
     * those run file using the WEPS GUI options.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user clicks the "Calibrate Run" menu option to execute a WEPS run.
     */
    public void MIMakeCalibrationRun_actionPerformed(java.awt.event.ActionEvent event) {
    }

    public void MIRestoreRun_actionPerformed(java.awt.event.ActionEvent event) {

    }

    // ============ TOOLS submenu items =============
    /**
     * Invoked when the user intends to send an Email from the application's
     * email option using pre-configured settings. An email screen pops up that
     * can send attachmets such as run files or directories and project
     * directories to the WEPS support team as bug report when a crash happens
     * while running the application or any other query related to the
     * application.
     *
     * @param event The mouse click or keyborad event generated when the user
     * clicks the "Send Email" menu option to bring the Email screen up in
     * running.
     */
    public void MISendEmail_actionPerformed(java.awt.event.ActionEvent event) {
        //System.out.println("Weps_n .. ");

    }

    // ============ HELP submenu items =============
    /**
     * Invoked when the user intends to get some generic help regarding WEPS
     * application on the main screen as well as the sub screens. The details of
     * each panel on the main scree along with the symbol information is
     * explained in the help documentation. The description on the report
     * screens is also explained there.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user clicks the "Help" menu option to bring the WEPS specific help.
     */
    public void MIHelpTopics_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * Invoked when the user intends to get the information about the
     * application s such as its build date,release number, JRE, etc.
     *
     * @param event The mouse click or keyborad selection event generated when
     * the user clicks the "About" menu option to bring the application's
     * information up on screen.
     */
    public void MI_aboutItem_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * Invoked when the user intends to get the information about the
     * application such as its build date, release number, JRE used using the
     * toolbar button.
     *
     * @param event The button click event generated when the user clicks the
     * "About" button on WEPS main toolbar to bring the application's
     * information up on screen.
     */
    public void MI_aboutButton_actionPerformed(java.awt.event.ActionEvent event) {

    }

    public void MIWindStation_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * Invoked when the user intends to send an Email from the application's
     * email option using pre-configured settings. An email screen pops up that
     * can send attachmets such as run files or directories and project
     * directories to the WEPS support team as bug report when a crash happens
     * while running the application or any other query related to the
     * application.
     *
     * @param event The button click event generated when the user clicks the
     * "Send Email" button on the main WEPS toolbar to bring the Email screen up
     * in running.
     */
    public void MISendEmail2_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is called when the WEPS application is to be closed by using
     * the "Exit" option from the File menu.
     *
     * @param event
     */
    public void exitItem_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /**
     * This method is called when the WEPS application is to be closed by using
     * the "Exit" option from the File menu.
     */
    public void exitApplication() {

    }

    /**
     * This method is used if this dialog is run as an independent application.
     *
     * @param args These are the command line arguments passed to the main
     * method if and when required.
     */
    public static void main(String args[]) {
        new Weps_n().setVisible(true);
    }

    protected void RunNRMV() {

    }

    protected void ClearNRMVFiles() {

    }

    protected void createNrmvFiles(boolean summaries) {

    }

    /**
     * This method notifies when the window or frame is resized and the
     * components need to be re-arranged so they are evenly spaced relative to
     * each other.
     */
    @Override
    public void addNotify() {
        super.addNotify();
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JMenuItem ClearNrmvData;
    public javax.swing.JMenuItem CreateNrmvFiles;
    public javax.swing.JMenuItem CreateNrmvFilesNoSummaries;
    public javax.swing.JButton JB_CC;
    public javax.swing.JButton JB_CI;
    public javax.swing.JButton JB_CR;
    public javax.swing.JButton JB_DR;
    public javax.swing.JButton JB_IR;
    public javax.swing.JButton JB_MR;
    public javax.swing.JButton JB_RR;
    public javax.swing.JButton JB_SR;
    public javax.swing.JButton JB_setRunLocation;
    public javax.swing.JMenuItem JMI_cropsreport;
    public javax.swing.JMenuItem JMI_manreport;
    public javax.swing.JMenuItem JMI_mantis;
    public javax.swing.JMenuItem JMI_massSoilChooser;
    public javax.swing.JMenuItem JMI_opsreport;
    public javax.swing.JPanel JP_aux;
    public javax.swing.JPanel JP_bar;
    public javax.swing.JPanel JP_client;
    public javax.swing.JPanel JP_loc;
    public javax.swing.JPanel JP_main;
    public javax.swing.JPanel JP_map;
    public javax.swing.JPanel JP_not;
    public javax.swing.JPanel JP_reg;
    public javax.swing.JPanel JP_sim;
    public javax.swing.JToolBar JTB_main;
    public javax.swing.JTextField JTF_mostRecentRun;
    public javax.swing.JMenuItem LaunchNrmv;
    public javax.swing.JButton LaunchNrmvToolbar;
    public javax.swing.JMenuBar MB_main;
    public javax.swing.JMenuItem MIDiff;
    public javax.swing.JMenuItem MISendEmail;
    public javax.swing.JMenuItem MIWindStation;
    public javax.swing.JMenuItem MI_CurrentCCDet;
    public javax.swing.JMenuItem MI_CurrentCIDet;
    public javax.swing.JMenuItem MI_CurrentCIPDet;
    public javax.swing.JMenuItem MI_CurrentCropDet;
    public javax.swing.JMenuItem MI_aboutItem;
    public javax.swing.JMenuItem MI_config;
    public javax.swing.JMenuItem MI_currentCCSummary;
    public javax.swing.JMenuItem MI_currentCISummary;
    public javax.swing.JMenuItem MI_currentConfidenceInterval;
    public javax.swing.JMenuItem MI_currentManagementSummary;
    public javax.swing.JMenuItem MI_currentOutput;
    public javax.swing.JMenuItem MI_currentProjectSummary;
    public javax.swing.JMenuItem MI_currentRawOutput;
    public javax.swing.JMenuItem MI_currentStirEnergyReport;
    public javax.swing.JMenuItem MI_currentYieldSummary;
    public javax.swing.JMenuItem MI_helpTopics;
    public javax.swing.JMenuItem MI_log;
    public javax.swing.JMenuItem MI_makeCalibrationRun;
    public javax.swing.JMenuItem MI_makeRun;
    public javax.swing.JMenuItem MI_otherCCDet;
    public javax.swing.JMenuItem MI_otherCCSummary;
    public javax.swing.JMenuItem MI_otherCIDet;
    public javax.swing.JMenuItem MI_otherCIPDet;
    public javax.swing.JMenuItem MI_otherCISummary;
    public javax.swing.JMenuItem MI_otherConfidenceInterval;
    public javax.swing.JMenuItem MI_otherCropDet;
    public javax.swing.JMenuItem MI_otherManagementSummary;
    public javax.swing.JMenuItem MI_otherOutput;
    public javax.swing.JMenuItem MI_otherProjectSummary;
    public javax.swing.JMenuItem MI_otherRawOutput;
    public javax.swing.JMenuItem MI_otherStirEnergyReport;
    public javax.swing.JMenuItem MI_otherYieldSummary;
    public javax.swing.JMenuItem MI_restoreRun;
    public javax.swing.JMenuItem MI_runmanger;
    public javax.swing.JMenuItem MI_userGuide;
    public javax.swing.JMenuItem MI_welcomWizard;
    public javax.swing.JMenu M_current;
    public javax.swing.JMenu M_dbreports;
    public javax.swing.JMenu M_help;
    public javax.swing.JMenu M_other;
    public javax.swing.JMenu M_output;
    public javax.swing.JMenu M_project;
    public javax.swing.JMenu M_run;
    public javax.swing.JMenu M_tools;
    public javax.swing.JMenu Nrmv;
    public javax.swing.JButton aboutButton;
    public javax.swing.JPanel centerColumnPanel;
    public javax.swing.JPanel columnsPanel;
    public javax.swing.JMenuItem deleteMgmtItem;
    public javax.swing.JMenuItem deleteProjectItem;
    public javax.swing.JMenuItem deleteRunItem;
    public javax.swing.JMenuItem deleteSoilItem;
    public javax.swing.JButton emailButton;
    public javax.swing.JMenuItem exitItem;
    public javax.swing.JMenuItem exportRunItem;
    public javax.swing.JLabel g_runlocation;
    public javax.swing.JButton helpButton;
    public javax.swing.JLabel jLabel2;
    public javax.swing.JPopupMenu.Separator jSeparator1;
    public javax.swing.JPanel leftColumnPanel;
    public javax.swing.JButton loadrunButton;
    public javax.swing.JButton mantisButton;
    public javax.swing.JButton newButton;
    public javax.swing.JMenuItem newItem;
    public javax.swing.JButton openButton;
    public javax.swing.JMenuItem openDatabasesItem;
    public javax.swing.JMenuItem openItem;
    public javax.swing.JMenuItem resetProjectItem;
    public javax.swing.JPanel rightColumnPanel;
    public javax.swing.JButton runButton;
    public javax.swing.JButton runCalButton;
    public javax.swing.JPanel runLocationPanel;
    public javax.swing.JMenuItem saveAsItem;
    public javax.swing.JButton saveButton;
    public javax.swing.JMenuItem saveItem;
    public javax.swing.JScrollPane scrollPane;
    public javax.swing.JMenuItem setRunLocation;
    // End of variables declaration//GEN-END:variables

    public JButton getButton(String name)
    {
        switch(name)
        {
            case ConfigData.RunVis:
                return JB_RR;
            case ConfigData.ManVis:
                return JB_MR;
            case ConfigData.CropVis:
                return JB_CR;
            case ConfigData.CCrVis:
                return JB_CC;
            case ConfigData.CIntVis:
                return JB_CI;
            case ConfigData.STIRVis:
                return JB_SR;
            case ConfigData.DetVis:
                return JB_DR;
            case ConfigData.ConfVis:
                return JB_IR;
            default:
                return null;
        }
    }
}
