/*
 * ConfigPanel_n.java
 *
 * Created on December 7, 2003, 1:25 PM
 */

package usda.weru.erosion.gui;

import usda.weru.util.ConfigData;

/**
 * This class build the configuration panel GUI that allows the user to initialize and 
 * modify all settings needed for the WEPS application.
 * @author  manmohan
 */
public class ConfigPanel_n extends javax.swing.JFrame {
    private static final long serialVersionUID = 1L;
    
    /**
    * Default constructor for the Configuration Panel GUI object that helps the
    * user in setting various paths like executables, directories such as management, 
    * soil, database, etc along with the miscellaneous factors like setting units,etc.
    */
    public ConfigPanel_n() {
        initComponents();
    }
    
    /**
    * Single argument constructor for the Configuration Panel GUI object that helps the
    * user in setting various paths like executables, directories such as management, 
    * soil, database, etc along with the miscellaneous factors like setting units,etc.
    * The string passed to the constructor sets the title of the configuration panel.
    * @param sTitle The title string for the parent frame of the GUI.
    */
    public ConfigPanel_n(java.lang.String sTitle) {
        this();
        setTitle(sTitle);
    }
    
    public ConfigData getConfigData(){
        return ConfigData.getDefault();
    }
    
    /** This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always 
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("rawtypes")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        JBGP_units = new javax.swing.ButtonGroup();
        JBGP_reportPeriod = new javax.swing.ButtonGroup();
        JBGP_runType = new javax.swing.ButtonGroup();
        JP_main = new javax.swing.JPanel();
        JTP_main = new javax.swing.JTabbedPane();
        JP_Directories = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        JTF_exe = new javax.swing.JTextField();
        JB_exe = new javax.swing.JButton();
        JLabel2 = new javax.swing.JLabel();
        JTF_cmd = new javax.swing.JTextField();
        JLabel11 = new javax.swing.JLabel();
        JTF_soilDB = new javax.swing.JTextField();
        soilDB_Button = new javax.swing.JButton();
        JLabel12 = new javax.swing.JLabel();
        JTF_projDir = new javax.swing.JTextField();
        projectsDir_Button = new javax.swing.JButton();
        jLabel8 = new javax.swing.JLabel();
        JTF_windDB = new javax.swing.JTextField();
        JB_windDB = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        JTF_barriers = new javax.swing.JTextField();
        JB_barriers = new javax.swing.JButton();
        JP_Run = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        JTF_xGrid = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        JTF_yGrid = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        JTF_surfaceUpdate = new javax.swing.JTextField();
        JCB_surfaceUpdate = new javax.swing.JCheckBox();
        jLabel5 = new javax.swing.JLabel();
        JCB_echo = new javax.swing.JCheckBox();
        JCB_summary = new javax.swing.JCheckBox();
        JCB_grid = new javax.swing.JCheckBox();
        JCB_subdaily = new javax.swing.JCheckBox();
        JCB_plot = new javax.swing.JCheckBox();
        JTF_output = new javax.swing.JTextField();
        JCB_subdailyGrid = new javax.swing.JCheckBox();
        JP_Email = new javax.swing.JPanel();
        JLabel13 = new javax.swing.JLabel();
        JLabel15 = new javax.swing.JLabel();
        JLabel16 = new javax.swing.JLabel();
        JTF_emailSender = new javax.swing.JTextField();
        JTF_emailWeps = new javax.swing.JTextField();
        JTF_emailBugs = new javax.swing.JTextField();
        JP_Buttons = new javax.swing.JPanel();
        JB_OK = new javax.swing.JButton();
        JB_Save = new javax.swing.JButton();
        JB_Help = new javax.swing.JButton();

        setTitle("Configuration");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                exitForm(evt);
            }
        });
        getContentPane().setLayout(null);

        JP_main.setToolTipText("ConfigPanel:main");
        JP_main.setLayout(null);

        JTP_main.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        JTP_main.setToolTipText("ConfigPanel:main");
        JTP_main.setPreferredSize(new java.awt.Dimension(500, 260));

        JP_Directories.setToolTipText("ConfigPanel:dir");
        JP_Directories.setLayout(null);

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel6.setText("SWEEP exe");
        JP_Directories.add(jLabel6);
        jLabel6.setBounds(10, 20, 90, 17);

        JTF_exe.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_exe.setToolTipText("ConfigPanel:windExe");
        JTF_exe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_exeActionPerformed(evt);
            }
        });
        JTF_exe.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_exeFocusLost(evt);
            }
        });
        JP_Directories.add(JTF_exe);
        JTF_exe.setBounds(110, 20, 260, 19);

        JB_exe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        JB_exe.setToolTipText("ConfigPanel:windGenExeButton");
        JB_exe.setPreferredSize(new java.awt.Dimension(35, 19));
        JB_exe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_exeActionPerformed(evt);
            }
        });
        JP_Directories.add(JB_exe);
        JB_exe.setBounds(380, 20, 35, 19);

        JLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JLabel2.setText("SWEEP cmd");
        JLabel2.setToolTipText("ConfigPanel:windCmd");
        JP_Directories.add(JLabel2);
        JLabel2.setBounds(10, 40, 90, 19);

        JTF_cmd.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_cmd.setToolTipText("ConfigPanel:windCmd");
        JTF_cmd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_cmdActionPerformed(evt);
            }
        });
        JTF_cmd.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_cmdFocusLost(evt);
            }
        });
        JP_Directories.add(JTF_cmd);
        JTF_cmd.setBounds(110, 40, 260, 19);

        JLabel11.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JLabel11.setText("Soil DB");
        JLabel11.setToolTipText("ConfigPanel:soilDB");
        JP_Directories.add(JLabel11);
        JLabel11.setBounds(10, 80, 90, 19);

        JTF_soilDB.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_soilDB.setToolTipText("ConfigPanel:soilDB");
        JTF_soilDB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTFSoilDB_ActionPerformed(evt);
            }
        });
        JTF_soilDB.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTFSoilDB_FocusLost(evt);
            }
        });
        JP_Directories.add(JTF_soilDB);
        JTF_soilDB.setBounds(110, 80, 260, 19);

        soilDB_Button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        soilDB_Button.setToolTipText("ConfigPanel:soilDbButton");
        soilDB_Button.setPreferredSize(new java.awt.Dimension(35, 19));
        soilDB_Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                soilDbButton_ActionPerformed(evt);
            }
        });
        JP_Directories.add(soilDB_Button);
        soilDB_Button.setBounds(380, 80, 35, 19);

        JLabel12.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JLabel12.setText("Work Directory");
        JLabel12.setToolTipText("ConfigPanel:projDir");
        JP_Directories.add(JLabel12);
        JLabel12.setBounds(10, 140, 90, 19);

        JTF_projDir.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_projDir.setToolTipText("ConfigPanel:projDir");
        JTF_projDir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTFProjDir_ActionPerformed(evt);
            }
        });
        JTF_projDir.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTFProjDir_FocusLost(evt);
            }
        });
        JP_Directories.add(JTF_projDir);
        JTF_projDir.setBounds(110, 140, 260, 19);

        projectsDir_Button.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        projectsDir_Button.setToolTipText("ConfigPanel:projectsDirButton");
        projectsDir_Button.setPreferredSize(new java.awt.Dimension(35, 19));
        projectsDir_Button.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                projectsDirButton_ActionPerformed(evt);
            }
        });
        JP_Directories.add(projectsDir_Button);
        projectsDir_Button.setBounds(380, 140, 35, 19);

        jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel8.setText("Wind DB File");
        JP_Directories.add(jLabel8);
        jLabel8.setBounds(10, 180, 90, 17);

        JTF_windDB.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_windDB.setToolTipText("ConfigPanel:projDir");
        JTF_windDB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_windDBActionPerformed(evt);
            }
        });
        JTF_windDB.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_windDBFocusLost(evt);
            }
        });
        JP_Directories.add(JTF_windDB);
        JTF_windDB.setBounds(110, 180, 260, 19);

        JB_windDB.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        JB_windDB.setToolTipText("ConfigPanel:projectsDirButton");
        JB_windDB.setPreferredSize(new java.awt.Dimension(35, 19));
        JB_windDB.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_windDBActionPerformed(evt);
            }
        });
        JP_Directories.add(JB_windDB);
        JB_windDB.setBounds(380, 180, 35, 19);

        jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        jLabel9.setText("Barriers File");
        JP_Directories.add(jLabel9);
        jLabel9.setBounds(10, 210, 90, 17);

        JTF_barriers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_barriersActionPerformed(evt);
            }
        });
        JTF_barriers.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_barriersFocusLost(evt);
            }
        });
        JP_Directories.add(JTF_barriers);
        JTF_barriers.setBounds(110, 210, 260, 27);

        JB_barriers.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/folder.gif"))); // NOI18N
        JB_barriers.setToolTipText("ConfigPanel:projectsDirButton");
        JB_barriers.setPreferredSize(new java.awt.Dimension(35, 19));
        JB_barriers.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_barriersActionPerformed(evt);
            }
        });
        JP_Directories.add(JB_barriers);
        JB_barriers.setBounds(380, 210, 35, 19);

        JTP_main.addTab("Files", JP_Directories);

        JP_Run.setToolTipText("ConfigPanel:run");
        JP_Run.setLayout(null);

        jLabel4.setText("Inputs");
        JP_Run.add(jLabel4);
        jLabel4.setBounds(10, 10, 200, 17);

        jLabel1.setText("# X grid points (1-499)");
        JP_Run.add(jLabel1);
        jLabel1.setBounds(20, 30, 300, 17);

        JTF_xGrid.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_xGridActionPerformed(evt);
            }
        });
        JTF_xGrid.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_xGridFocusLost(evt);
            }
        });
        JP_Run.add(JTF_xGrid);
        JTF_xGrid.setBounds(320, 30, 75, 27);

        jLabel2.setText("# Y grid points (1-499)");
        JP_Run.add(jLabel2);
        jLabel2.setBounds(20, 50, 300, 17);

        JTF_yGrid.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_yGridActionPerformed(evt);
            }
        });
        JTF_yGrid.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_yGridFocusLost(evt);
            }
        });
        JP_Run.add(JTF_yGrid);
        JTF_yGrid.setBounds(320, 50, 75, 27);

        jLabel3.setText("Surface updating interval (60-86400)");
        JP_Run.add(jLabel3);
        jLabel3.setBounds(20, 70, 300, 17);

        JTF_surfaceUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_surfaceUpdateActionPerformed(evt);
            }
        });
        JTF_surfaceUpdate.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_surfaceUpdateFocusLost(evt);
            }
        });
        JP_Run.add(JTF_surfaceUpdate);
        JTF_surfaceUpdate.setBounds(320, 70, 75, 27);

        JCB_surfaceUpdate.setText("Turn off surface updating");
        JCB_surfaceUpdate.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_surfaceUpdateItemStateChanged(evt);
            }
        });
        JCB_surfaceUpdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JCB_surfaceUpdateActionPerformed(evt);
            }
        });
        JP_Run.add(JCB_surfaceUpdate);
        JCB_surfaceUpdate.setBounds(20, 90, 280, 24);

        jLabel5.setText("Outputs");
        JP_Run.add(jLabel5);
        jLabel5.setBounds(10, 110, 200, 17);

        JCB_echo.setText("Echo input");
        JCB_echo.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_echoItemStateChanged(evt);
            }
        });
        JP_Run.add(JCB_echo);
        JCB_echo.setBounds(20, 130, 200, 24);

        JCB_summary.setText("Erosion summary");
        JCB_summary.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_summaryItemStateChanged(evt);
            }
        });
        JP_Run.add(JCB_summary);
        JCB_summary.setBounds(20, 150, 200, 24);

        JCB_grid.setText("Grid summary results");
        JCB_grid.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_gridItemStateChanged(evt);
            }
        });
        JP_Run.add(JCB_grid);
        JCB_grid.setBounds(20, 170, 200, 24);

        JCB_subdaily.setText("Subdaily erosion results");
        JCB_subdaily.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_subdailyItemStateChanged(evt);
            }
        });
        JP_Run.add(JCB_subdaily);
        JCB_subdaily.setBounds(220, 130, 200, 24);

        JCB_plot.setText("Append plot variables");
        JCB_plot.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_plotItemStateChanged(evt);
            }
        });
        JP_Run.add(JCB_plot);
        JCB_plot.setBounds(220, 170, 200, 24);

        JTF_output.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_outputActionPerformed(evt);
            }
        });
        JTF_output.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_outputFocusLost(evt);
            }
        });
        JP_Run.add(JTF_output);
        JTF_output.setBounds(24, 200, 380, 27);

        JCB_subdailyGrid.setText("Subdaily grid erosion results");
        JCB_subdailyGrid.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                JCB_subdailyGridItemStateChanged(evt);
            }
        });
        JP_Run.add(JCB_subdailyGrid);
        JCB_subdailyGrid.setBounds(220, 150, 200, 24);

        JTP_main.addTab("Run", null, JP_Run, "ConfigPanel:run");

        JP_Email.setToolTipText("ConfigPanel:email");
        JP_Email.setLayout(null);

        JLabel13.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JLabel13.setText("Sender Addr");
        JLabel13.setToolTipText("ConfigPanel:emailSender");
        JP_Email.add(JLabel13);
        JLabel13.setBounds(20, 20, 80, 19);

        JLabel15.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JLabel15.setText("Comments");
        JLabel15.setToolTipText("ConfigPanel:emailComments");
        JP_Email.add(JLabel15);
        JLabel15.setBounds(20, 60, 80, 19);

        JLabel16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        JLabel16.setText("Bugs");
        JLabel16.setToolTipText("ConfigPanel:emailBugs");
        JP_Email.add(JLabel16);
        JLabel16.setBounds(20, 80, 80, 19);

        JTF_emailSender.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_emailSender.setToolTipText("ConfigPanel:emailSender");
        JTF_emailSender.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTFEmailSender_ActionPerformed(evt);
            }
        });
        JTF_emailSender.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTFEmailSender_FocusLost(evt);
            }
        });
        JP_Email.add(JTF_emailSender);
        JTF_emailSender.setBounds(110, 20, 260, 19);

        JTF_emailWeps.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_emailWeps.setToolTipText("ConfigPanel:emailComments");
        JTF_emailWeps.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTFEmailWeps_FocusLost(evt);
            }
        });
        JTF_emailWeps.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTFEmailWeps_ActionPerformed(evt);
            }
        });
        JP_Email.add(JTF_emailWeps);
        JTF_emailWeps.setBounds(110, 60, 260, 19);

        JTF_emailBugs.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_emailBugs.setToolTipText("ConfigPanel:emailBugs");
        JTF_emailBugs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTFEmailBugs_ActionPerformed(evt);
            }
        });
        JTF_emailBugs.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTFEmailBugs_FocusLost(evt);
            }
        });
        JP_Email.add(JTF_emailBugs);
        JTF_emailBugs.setBounds(110, 80, 260, 19);

        JTP_main.addTab("Email", JP_Email);

        JP_main.add(JTP_main);
        JTP_main.setBounds(20, 10, 440, 280);

        getContentPane().add(JP_main);
        JP_main.setBounds(0, 0, 460, 290);

        JP_Buttons.setToolTipText("ConfigPanel:buttons");

        JB_OK.setMnemonic('O');
        JB_OK.setText("OK");
        JB_OK.setToolTipText("ConfigPanel:OK");
        JB_OK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JBOK_ActionPerformed(evt);
            }
        });
        JP_Buttons.add(JB_OK);

        JB_Save.setMnemonic('S');
        JB_Save.setText("Save");
        JB_Save.setToolTipText("ConfigPanel:save");
        JB_Save.setActionCommand("Cacel");
        JB_Save.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JBSave_ActionPerformed(evt);
            }
        });
        JP_Buttons.add(JB_Save);

        JB_Help.setMnemonic('H');
        JB_Help.setText("Help");
        JB_Help.setToolTipText("ConfigPanel:help");
        JB_Help.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_Help_ActionPerformed(evt);
            }
        });
        JP_Buttons.add(JB_Help);

        getContentPane().add(JP_Buttons);
        JP_Buttons.setBounds(40, 300, 390, 30);

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

    protected void JCB_subdailyGridItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_subdailyGridItemStateChanged
    }//GEN-LAST:event_JCB_subdailyGridItemStateChanged

    protected void JB_windDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_windDBActionPerformed
    }//GEN-LAST:event_JB_windDBActionPerformed

    protected void JTF_windDBFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_windDBFocusLost
    }//GEN-LAST:event_JTF_windDBFocusLost

    protected void JTF_windDBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_windDBActionPerformed
    }//GEN-LAST:event_JTF_windDBActionPerformed

    protected void JTF_cmdFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_cmdFocusLost
    }//GEN-LAST:event_JTF_cmdFocusLost

    protected void JTF_cmdActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_cmdActionPerformed
    }//GEN-LAST:event_JTF_cmdActionPerformed

    protected void JB_exeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_exeActionPerformed
    }//GEN-LAST:event_JB_exeActionPerformed

    protected void JTF_exeFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_exeFocusLost
    }//GEN-LAST:event_JTF_exeFocusLost

    protected void JTF_exeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_exeActionPerformed
    }//GEN-LAST:event_JTF_exeActionPerformed

    protected void JTF_outputFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_outputFocusLost
    }//GEN-LAST:event_JTF_outputFocusLost

    protected void JTF_outputActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_outputActionPerformed
    }//GEN-LAST:event_JTF_outputActionPerformed

    protected void JCB_plotItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_plotItemStateChanged
    }//GEN-LAST:event_JCB_plotItemStateChanged

    protected void JCB_subdailyItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_subdailyItemStateChanged
    }//GEN-LAST:event_JCB_subdailyItemStateChanged

    protected void JCB_gridItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_gridItemStateChanged
    }//GEN-LAST:event_JCB_gridItemStateChanged

    protected void JCB_summaryItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_summaryItemStateChanged
    }//GEN-LAST:event_JCB_summaryItemStateChanged

    protected void JCB_surfaceUpdateItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_surfaceUpdateItemStateChanged
    }//GEN-LAST:event_JCB_surfaceUpdateItemStateChanged

    protected void JCB_echoItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_JCB_echoItemStateChanged
    }//GEN-LAST:event_JCB_echoItemStateChanged

    protected void JCB_surfaceUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JCB_surfaceUpdateActionPerformed
    }//GEN-LAST:event_JCB_surfaceUpdateActionPerformed

    protected void JTF_surfaceUpdateFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_surfaceUpdateFocusLost
    }//GEN-LAST:event_JTF_surfaceUpdateFocusLost

    protected void JTF_yGridFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_yGridFocusLost
    }//GEN-LAST:event_JTF_yGridFocusLost

    protected void JTF_yGridActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_yGridActionPerformed
    }//GEN-LAST:event_JTF_yGridActionPerformed

    protected void JTF_xGridFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_xGridFocusLost
    }//GEN-LAST:event_JTF_xGridFocusLost

    protected void JTF_xGridActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_xGridActionPerformed
    }//GEN-LAST:event_JTF_xGridActionPerformed

    protected void JTF_surfaceUpdateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_surfaceUpdateActionPerformed
    }//GEN-LAST:event_JTF_surfaceUpdateActionPerformed

    protected void projectsDirButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_projectsDirButton_ActionPerformed
            }//GEN-LAST:event_projectsDirButton_ActionPerformed

    protected void soilDbButton_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_soilDbButton_ActionPerformed
            }//GEN-LAST:event_soilDbButton_ActionPerformed

    protected void JB_Help_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_Help_ActionPerformed
    }//GEN-LAST:event_JB_Help_ActionPerformed

    protected void JBSave_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JBSave_ActionPerformed
    }//GEN-LAST:event_JBSave_ActionPerformed

    protected void JBOK_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JBOK_ActionPerformed
    }//GEN-LAST:event_JBOK_ActionPerformed

    protected void JTFEmailSender_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTFEmailSender_FocusLost
    }//GEN-LAST:event_JTFEmailSender_FocusLost

    protected void JTFEmailWeps_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTFEmailWeps_FocusLost
    }//GEN-LAST:event_JTFEmailWeps_FocusLost

    protected void JTFEmailBugs_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTFEmailBugs_FocusLost
    }//GEN-LAST:event_JTFEmailBugs_FocusLost

    protected void JTFSoilDB_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTFSoilDB_FocusLost
    }//GEN-LAST:event_JTFSoilDB_FocusLost

    protected void JTFSoilDB_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTFSoilDB_ActionPerformed
    }//GEN-LAST:event_JTFSoilDB_ActionPerformed

    protected void JTFProjDir_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTFProjDir_FocusLost
    }//GEN-LAST:event_JTFProjDir_FocusLost

    protected void JTFEmailBugs_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTFEmailBugs_ActionPerformed
    }//GEN-LAST:event_JTFEmailBugs_ActionPerformed

    protected void JTFEmailWeps_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTFEmailWeps_ActionPerformed
    }//GEN-LAST:event_JTFEmailWeps_ActionPerformed

    protected void JTFEmailSender_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTFEmailSender_ActionPerformed
    }//GEN-LAST:event_JTFEmailSender_ActionPerformed

    protected void JTFProjDir_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTFProjDir_ActionPerformed
    }//GEN-LAST:event_JTFProjDir_ActionPerformed
    
    
    // ----------------------------- ADD BEFORE THIS ------------------------
        
  /** 
    * This method is called when the config panel is to be closed by hitting the 
    * "Red X" button of the window.
    * @param evt The window event generated when the " Red X " button on the window is hit. 
    */
    protected void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
     this.setVisible(false);
    }//GEN-LAST:event_exitForm

    private void JB_barriersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_barriersActionPerformed
        JB_barriers_actionPerformed(evt);
    }//GEN-LAST:event_JB_barriersActionPerformed

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

    }

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

    protected void JTF_barriers_focusLost(java.awt.event.FocusEvent evt) {
    }

    private void JTF_barriersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_barriersActionPerformed
        JB_barriers_actionPerformed(evt);
    }//GEN-LAST:event_JTF_barriersActionPerformed



    private void JTF_barriersFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_barriersFocusLost
        JTF_barriers_focusLost(evt);
    }//GEN-LAST:event_JTF_barriersFocusLost
    
  /**
   * This method is used if this dialog is rum as an independent application. If executed,
   * makes the GUI visible.
   * @param args These are the command line arguments passed to the main method.
   */
    public static void main(String args[]) {
        new ConfigPanel_n().setVisible(true);
    }
    
    /**
     * 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();
    }
    
    public void JCB_formatOperationDate_itemStateChanged(java.awt.event.ItemEvent evt) {

    }

    public void JCB_formatOperationDate_focusLost(java.awt.event.FocusEvent evt) {

    }

    public void JCB_formatOperationDate_actionPerformed(java.awt.event.ActionEvent evt) {

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

    }
     
     public void JTF_runFilesPurge_focusLost(java.awt.event.FocusEvent evt) {
    }
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.ButtonGroup JBGP_reportPeriod;
    public javax.swing.ButtonGroup JBGP_runType;
    public javax.swing.ButtonGroup JBGP_units;
    public javax.swing.JButton JB_Help;
    public javax.swing.JButton JB_OK;
    public javax.swing.JButton JB_Save;
    public javax.swing.JButton JB_barriers;
    public javax.swing.JButton JB_exe;
    public javax.swing.JButton JB_windDB;
    public javax.swing.JCheckBox JCB_echo;
    public javax.swing.JCheckBox JCB_grid;
    public javax.swing.JCheckBox JCB_plot;
    public javax.swing.JCheckBox JCB_subdaily;
    public javax.swing.JCheckBox JCB_subdailyGrid;
    public javax.swing.JCheckBox JCB_summary;
    public javax.swing.JCheckBox JCB_surfaceUpdate;
    public javax.swing.JLabel JLabel11;
    public javax.swing.JLabel JLabel12;
    public javax.swing.JLabel JLabel13;
    public javax.swing.JLabel JLabel15;
    public javax.swing.JLabel JLabel16;
    public javax.swing.JLabel JLabel2;
    public javax.swing.JPanel JP_Buttons;
    public javax.swing.JPanel JP_Directories;
    public javax.swing.JPanel JP_Email;
    public javax.swing.JPanel JP_Run;
    public javax.swing.JPanel JP_main;
    protected javax.swing.JTextField JTF_barriers;
    public javax.swing.JTextField JTF_cmd;
    public javax.swing.JTextField JTF_emailBugs;
    public javax.swing.JTextField JTF_emailSender;
    public javax.swing.JTextField JTF_emailWeps;
    public javax.swing.JTextField JTF_exe;
    public javax.swing.JTextField JTF_output;
    public javax.swing.JTextField JTF_projDir;
    public javax.swing.JTextField JTF_soilDB;
    public javax.swing.JTextField JTF_surfaceUpdate;
    public javax.swing.JTextField JTF_windDB;
    public javax.swing.JTextField JTF_xGrid;
    public javax.swing.JTextField JTF_yGrid;
    public javax.swing.JTabbedPane JTP_main;
    public javax.swing.JLabel jLabel1;
    public javax.swing.JLabel jLabel2;
    public javax.swing.JLabel jLabel3;
    public javax.swing.JLabel jLabel4;
    public javax.swing.JLabel jLabel5;
    public javax.swing.JLabel jLabel6;
    public javax.swing.JLabel jLabel8;
    public javax.swing.JLabel jLabel9;
    public javax.swing.JButton projectsDir_Button;
    public javax.swing.JButton soilDB_Button;
    // End of variables declaration//GEN-END:variables
    
}
