/*
 * Mcrew_n.java
 *
 * Created on February 11, 2004, 11:35 AM
 */

package usda.weru.mcrew.gui;

/**
 * This class is responsible for generating the GUI for the MCREW application and
 * to intereact with the various sub-sections of the application for data representation,
 * manipulation and analysis purposes. 
 * @author  manmohan
 */
public class Mcrew_n extends javax.swing.JFrame {
    
  /**
   * Default constructor for the calendar dialog GUI object.
   */
    public Mcrew_n() {        
        initComponents();
        //Delete2JMI.setVisible(false);
    }
    
    /**
     * Single argument constructor for the Mcrew dialog GUI object.
     * @param sTitle The title of the frame in which the Mcrew dialog sits.
     */
    public Mcrew_n(java.lang.String sTitle) {
        this();
	setTitle(sTitle);
    }
    
    /** 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() {

        JP_base = new javax.swing.JPanel();
        JP_toolBar = new javax.swing.JPanel();
        JTB_main = new javax.swing.JToolBar();
        JB_new = new javax.swing.JButton();
        JB_open = new javax.swing.JButton();
        JB_save = new javax.swing.JButton();
        JB_cut = new javax.swing.JButton();
        JB_copy = new javax.swing.JButton();
        JB_paste = new javax.swing.JButton();
        JB_sort = new javax.swing.JButton();
        JB_cycleFwd = new javax.swing.JButton();
        JB_cycleBwd = new javax.swing.JButton();
        JB_help = new javax.swing.JButton();
        JTB_view = new javax.swing.JToolBar();
        JB_notes = new javax.swing.JButton();
        JB_close = new javax.swing.JButton();
        JL_yrofRot = new javax.swing.JLabel();
        JTF_rotYears = new javax.swing.JTextField();
        JSP_rotFile = new javax.swing.JScrollPane();
        JP_rotationFile = new javax.swing.JPanel();
        JL_rotation1 = new javax.swing.JLabel();
        JL_rotation2 = new javax.swing.JLabel();
        JP_main = new javax.swing.JPanel();
        JMB_main = new javax.swing.JMenuBar();
        JM_file = new javax.swing.JMenu();
        JMI_new = new javax.swing.JMenuItem();
        JMI_open = new javax.swing.JMenuItem();
        JMI_openCT = new javax.swing.JMenuItem();
        JMI_save = new javax.swing.JMenuItem();
        JMI_saveAs = new javax.swing.JMenuItem();
        JMI_saveAsT = new javax.swing.JMenuItem();
        JMI_print = new javax.swing.JMenuItem();
        JMI_exit = new javax.swing.JMenuItem();
        JM_edit = new javax.swing.JMenu();
        JMI_cut = new javax.swing.JMenuItem();
        JMI_copy = new javax.swing.JMenuItem();
        JMI_paste = new javax.swing.JMenuItem();
        JMI_delete = new javax.swing.JMenuItem();
        JMI_undoDelete = new javax.swing.JMenuItem();
        JMI_sort = new javax.swing.JMenuItem();
        JMI_insert = new javax.swing.JMenuItem();
        JMI_insertOperation = new javax.swing.JMenuItem();
        JMI_cycleFwd = new javax.swing.JMenuItem();
        JMI_cycleBwd = new javax.swing.JMenuItem();
        JMI_notes = new javax.swing.JMenuItem();
        JM_view = new javax.swing.JMenu();
        JMI_defaultView = new javax.swing.JMenuItem();
        JS_bar = new javax.swing.JSeparator();
        JM_configure = new javax.swing.JMenu();
        JMI_config = new javax.swing.JMenuItem();
        JMI_colOptions = new javax.swing.JMenuItem();
        JM_tools = new javax.swing.JMenu();
        JMI_email = new javax.swing.JMenuItem();
        JM_m2xml = new javax.swing.JMenu();
        JMI_m2xmlFiles = new javax.swing.JMenuItem();
        JMI_m2xmlRec = new javax.swing.JMenuItem();
        JM_xml2m = new javax.swing.JMenu();
        JMI_xml2mFiles = new javax.swing.JMenuItem();
        JMI_xml2mRec = new javax.swing.JMenuItem();
        JM_updateWeps = new javax.swing.JMenu();
        JMI_updateFiles = new javax.swing.JMenuItem();
        JMI_updateRec = new javax.swing.JMenuItem();
        JM_help = new javax.swing.JMenu();
        JMI_help = new javax.swing.JMenuItem();
        JMI_about = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("MCREW Management Crop Rotation Editor");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                exitForm(evt);
            }
        });
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentResized(java.awt.event.ComponentEvent evt) {
                McrewN_ComponentResized(evt);
            }
        });
        getContentPane().setLayout(null);

        JP_base.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_base.setLayout(null);

        JP_toolBar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_toolBar.setToolTipText("Weps:toolbar");
        JP_toolBar.setLayout(null);

        JTB_main.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JTB_main.setFloatable(false);
        JTB_main.setToolTipText("Weps:toolbar");
        JTB_main.setAlignmentY(0.473684F);
        JTB_main.setDoubleBuffered(true);

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

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

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

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

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

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

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

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

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

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

        JTB_view.setBorder(null);
        JTB_view.setFloatable(false);
        JTB_main.add(JTB_view);

        JB_notes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/pencil_18.gif"))); // NOI18N
        JB_notes.setToolTipText("Notes :Current Management file related information");
        JB_notes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_notes_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_notes);

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

        JP_toolBar.add(JTB_main);
        JTB_main.setBounds(0, 0, 405, 30);

        JL_yrofRot.setText("Years in Rotation:");
        JL_yrofRot.setToolTipText("Toolbar:yrsinrot");
        JP_toolBar.add(JL_yrofRot);
        JL_yrofRot.setBounds(410, 5, 100, 20);

        JTF_rotYears.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        JTF_rotYears.setToolTipText("Toolbar:yrsinrot");
        JTF_rotYears.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_rotYears_ActionPerformed(evt);
            }
        });
        JTF_rotYears.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_rotYears_FocusLost(evt);
            }
        });
        JP_toolBar.add(JTF_rotYears);
        JTF_rotYears.setBounds(515, 5, 60, 20);

        JP_base.add(JP_toolBar);
        JP_toolBar.setBounds(0, 0, 780, 32);

        JSP_rotFile.setBorder(null);
        JSP_rotFile.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
        JSP_rotFile.setMinimumSize(new java.awt.Dimension(800, 30));
        JSP_rotFile.setPreferredSize(new java.awt.Dimension(800, 40));

        JP_rotationFile.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_rotationFile.setToolTipText("Toolbar:rotation");

        JL_rotation1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        JL_rotation1.setText("Rotation :");
        JL_rotation1.setToolTipText("Toolbar:rotation");
        JL_rotation1.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        JL_rotation1.setRequestFocusEnabled(false);
        JL_rotation1.setVerifyInputWhenFocusTarget(false);

        JL_rotation2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        JL_rotation2.setText("Untitled");
        JL_rotation2.setToolTipText("Toolbar:rotation");
        JL_rotation2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        JL_rotation2.setMaximumSize(new java.awt.Dimension(0, 25));
        JL_rotation2.setMinimumSize(null);
        JL_rotation2.setPreferredSize(null);
        JL_rotation2.setRequestFocusEnabled(false);

        org.jdesktop.layout.GroupLayout JP_rotationFileLayout = new org.jdesktop.layout.GroupLayout(JP_rotationFile);
        JP_rotationFile.setLayout(JP_rotationFileLayout);
        JP_rotationFileLayout.setHorizontalGroup(
            JP_rotationFileLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(JP_rotationFileLayout.createSequentialGroup()
                .add(JL_rotation1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 70, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(JL_rotation2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 682, Short.MAX_VALUE)
                .addContainerGap())
        );
        JP_rotationFileLayout.setVerticalGroup(
            JP_rotationFileLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(JP_rotationFileLayout.createSequentialGroup()
                .add(1, 1, 1)
                .add(JP_rotationFileLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(JL_rotation1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(JL_rotation2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(17, 17, 17))
        );

        JSP_rotFile.setViewportView(JP_rotationFile);

        JP_base.add(JSP_rotFile);
        JSP_rotFile.setBounds(10, 40, 770, 40);

        JP_main.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_main.setToolTipText("MCREWtable:table");
        JP_main.setLayout(new java.awt.BorderLayout());
        JP_base.add(JP_main);
        JP_main.setBounds(10, 90, 700, 450);

        getContentPane().add(JP_base);
        JP_base.setBounds(3, 3, 790, 550);

        JMB_main.setToolTipText("WEPS:menu");

        JM_file.setMnemonic('F');
        JM_file.setText("File");
        JM_file.setToolTipText("Menu:file");

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

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

        JMI_openCT.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
        JMI_openCT.setMnemonic('T');
        JMI_openCT.setText("Open Copy of Template");
        JMI_openCT.setToolTipText("Menu:openTemplate");
        JMI_openCT.setActionCommand("OpenCopy ");
        JMI_openCT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_openCT_ActionPerformed(evt);
            }
        });
        JM_file.add(JMI_openCT);

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

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

        JMI_saveAsT.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
        JMI_saveAsT.setText("Save As Template...");
        JMI_saveAsT.setToolTipText("Menu:saveAsTemp");
        JMI_saveAsT.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_saveAsT_ActionPerformed(evt);
            }
        });
        JM_file.add(JMI_saveAsT);

        JMI_print.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        JMI_print.setText("Print");
        JMI_print.setToolTipText("Menu:print");
        JMI_print.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_print_ActionPerformed(evt);
            }
        });
        JM_file.add(JMI_print);

        JMI_exit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.CTRL_MASK));
        JMI_exit.setMnemonic('E');
        JMI_exit.setText("Exit");
        JMI_exit.setToolTipText("Menu:exit");
        JMI_exit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_exit_ActionPerformed(evt);
            }
        });
        JM_file.add(JMI_exit);

        JMB_main.add(JM_file);

        JM_edit.setMnemonic('E');
        JM_edit.setText("Edit");
        JM_edit.setToolTipText("Menu:edit");
        JM_edit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JM_editActionPerformed(evt);
            }
        });

        JMI_cut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
        JMI_cut.setMnemonic('u');
        JMI_cut.setText("Cut Row(s)");
        JMI_cut.setToolTipText("Menu:cutrows");
        JMI_cut.setActionCommand("Cut ");
        JMI_cut.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_cut_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_cut);

        JMI_copy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        JMI_copy.setMnemonic('C');
        JMI_copy.setText("Copy Row(s)");
        JMI_copy.setToolTipText("Menu:copyrows");
        JMI_copy.setActionCommand("Copy ");
        JMI_copy.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_copy_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_copy);

        JMI_paste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
        JMI_paste.setMnemonic('P');
        JMI_paste.setText("Paste Row(s)");
        JMI_paste.setToolTipText("Menu:pasterows");
        JMI_paste.setActionCommand("Paste ");
        JMI_paste.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_paste_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_paste);

        JMI_delete.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        JMI_delete.setMnemonic('D');
        JMI_delete.setText("Delete Row(s)");
        JMI_delete.setToolTipText("Menu:deleterows");
        JMI_delete.setActionCommand("Delete ");
        JMI_delete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_delete_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_delete);

        JMI_undoDelete.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));
        JMI_undoDelete.setMnemonic('Z');
        JMI_undoDelete.setEnabled(false);
        JMI_undoDelete.setLabel("Undo Delete");
        JMI_undoDelete.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_undoDeleteActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_undoDelete);

        JMI_sort.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
        JMI_sort.setMnemonic('r');
        JMI_sort.setText("Sort by Date");
        JMI_sort.setToolTipText("Menu:sortrows");
        JMI_sort.setActionCommand("Ascending");
        JMI_sort.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_sort_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_sort);

        JMI_insert.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, java.awt.event.InputEvent.CTRL_MASK));
        JMI_insert.setMnemonic('I');
        JMI_insert.setText("Insert Row");
        JMI_insert.setToolTipText("Menu:insertrow");
        JMI_insert.setActionCommand("Insert");
        JMI_insert.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_insert_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_insert);

        JMI_insertOperation.setText("Insert Operation");
        JMI_insertOperation.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_insertOperationActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_insertOperation);

        JMI_cycleFwd.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        JMI_cycleFwd.setMnemonic('F');
        JMI_cycleFwd.setText("Cycle Forward");
        JMI_cycleFwd.setToolTipText("Menu:cyclefor");
        JMI_cycleFwd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_cycleFwd_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_cycleFwd);

        JMI_cycleBwd.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
        JMI_cycleBwd.setMnemonic('B');
        JMI_cycleBwd.setText("Cycle Backward");
        JMI_cycleBwd.setToolTipText("Menu:cycleback");
        JMI_cycleBwd.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_cycleBwd_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_cycleBwd);

        JMI_notes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_M, java.awt.event.InputEvent.CTRL_MASK));
        JMI_notes.setText("Notes");
        JMI_notes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_notes_ActionPerformed(evt);
            }
        });
        JM_edit.add(JMI_notes);

        JMB_main.add(JM_edit);

        JM_view.setText("View");

        JMI_defaultView.setText("Default");
        JMI_defaultView.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_defaultViewActionPerformed(evt);
            }
        });
        JM_view.add(JMI_defaultView);
        JM_view.add(JS_bar);

        JMB_main.add(JM_view);

        JM_configure.setMnemonic('C');
        JM_configure.setText("Configure");
        JM_configure.setToolTipText("Menu:configure");

        JMI_config.setMnemonic('C');
        JMI_config.setText("Configuration");
        JMI_config.setToolTipText("Menu:configuration");
        JMI_config.setEnabled(false);
        JMI_config.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_config_ActionPerformed(evt);
            }
        });
        JM_configure.add(JMI_config);

        JMI_colOptions.setMnemonic('o');
        JMI_colOptions.setText("Column Options");
        JMI_colOptions.setToolTipText("Menu:columnOpt");
        JMI_colOptions.setEnabled(false);
        JMI_colOptions.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_colOptions_ActionPerformed(evt);
            }
        });
        JM_configure.add(JMI_colOptions);

        JMB_main.add(JM_configure);

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

        JMI_email.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_E, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        JMI_email.setMnemonic('S');
        JMI_email.setText("Send Email");
        JMI_email.setToolTipText("Menu:sendemail");
        JMI_email.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_email_ActionPerformed(evt);
            }
        });
        JM_tools.add(JMI_email);

        JM_m2xml.setText("Convert WEPS Management to NRCS XML format");
        JM_m2xml.setToolTipText("Menu:weps2xml");

        JMI_m2xmlFiles.setText("select individual files");
        JMI_m2xmlFiles.setToolTipText("Menu:weps2xmlfiles");
        JMI_m2xmlFiles.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_m2xmlFilesActionPerformed(evt);
            }
        });
        JM_m2xml.add(JMI_m2xmlFiles);

        JMI_m2xmlRec.setText("select directory (recursive)");
        JMI_m2xmlRec.setToolTipText("Menu:weps2xmlrec");
        JMI_m2xmlRec.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_m2xmlRecActionPerformed(evt);
            }
        });
        JM_m2xml.add(JMI_m2xmlRec);

        JM_tools.add(JM_m2xml);

        JM_xml2m.setText("Convert NRCS XML Management to WEPS format");
        JM_xml2m.setToolTipText("Menu:xml2weps");

        JMI_xml2mFiles.setText("select individual files");
        JMI_xml2mFiles.setToolTipText("Menu:xml2wepsfiles\n");
        JMI_xml2mFiles.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_xml2mFilesActionPerformed(evt);
            }
        });
        JM_xml2m.add(JMI_xml2mFiles);

        JMI_xml2mRec.setText("select directory (recursive)");
        JMI_xml2mRec.setToolTipText("Menu:xml2wepsrec");
        JMI_xml2mRec.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_xml2mRecActionPerformed(evt);
            }
        });
        JM_xml2m.add(JMI_xml2mRec);

        JM_tools.add(JM_xml2m);

        JM_updateWeps.setText("Update WEPS Management files");
        JM_updateWeps.setToolTipText("Menu:update");

        JMI_updateFiles.setText("select individual files");
        JMI_updateFiles.setToolTipText("Menu:updatefiles\n");
        JMI_updateFiles.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_updateFilesActionPerformed(evt);
            }
        });
        JM_updateWeps.add(JMI_updateFiles);

        JMI_updateRec.setText("select directory (recursive)");
        JMI_updateRec.setToolTipText("Menu:updaterec");
        JMI_updateRec.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_updateRecActionPerformed(evt);
            }
        });
        JM_updateWeps.add(JMI_updateRec);

        JM_tools.add(JM_updateWeps);

        JMB_main.add(JM_tools);

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

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

        JMI_about.setMnemonic('A');
        JMI_about.setText("About MCREW");
        JMI_about.setToolTipText("Menu:aboutmcrew");
        JMI_about.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JMI_about_ActionPerformed(evt);
            }
        });
        JM_help.add(JMI_about);

        JMB_main.add(JM_help);

        setJMenuBar(JMB_main);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-971)/2, (screenSize.height-600)/2, 971, 600);
    }// </editor-fold>//GEN-END:initComponents

    private void JMI_defaultViewActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_defaultViewActionPerformed
        DefaultViewJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_defaultViewActionPerformed

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

    }
    
    private void JMI_insertOperationActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_insertOperationActionPerformed
        InsertOperationJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_insertOperationActionPerformed

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

    }
    
    private void JMI_undoDeleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_undoDeleteActionPerformed
        UndoDeleteJMI_ActionPerformed(evt);
}//GEN-LAST:event_JMI_undoDeleteActionPerformed

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

    
    private void JM_editActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JM_editActionPerformed
}//GEN-LAST:event_JM_editActionPerformed

    private void JMI_updateFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_updateFilesActionPerformed
        UpdateFilesJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_updateFilesActionPerformed

    private void JMI_updateRecActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_updateRecActionPerformed
        UpdateWEPSJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_updateRecActionPerformed

    private void JMI_xml2mRecActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_xml2mRecActionPerformed
        SkelToManRec_actionPerformed(evt);
}//GEN-LAST:event_JMI_xml2mRecActionPerformed

    private void JMI_m2xmlRecActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_m2xmlRecActionPerformed
         ManToSkelRec_actionPerformed(evt);
}//GEN-LAST:event_JMI_m2xmlRecActionPerformed

    private void JMI_m2xmlFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_m2xmlFilesActionPerformed
        ManToSkelJMI_actionPerformed(evt,false);
}//GEN-LAST:event_JMI_m2xmlFilesActionPerformed

    private void JMI_xml2mFilesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_xml2mFilesActionPerformed
       SkelToManJMI_actionPerformed(evt,false);
}//GEN-LAST:event_JMI_xml2mFilesActionPerformed

    private void JMI_notes_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_notes_ActionPerformed
        NotesJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_notes_ActionPerformed

    private void JB_notes_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_notes_ActionPerformed
        NotesJB_actionPerformed(evt);
}//GEN-LAST:event_JB_notes_ActionPerformed

    private void JBClose_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JBClose_ActionPerformed
        JBClose_actionPerformed(evt);
    }//GEN-LAST:event_JBClose_ActionPerformed

    private void JTF_rotYears_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_rotYears_FocusLost
        // Add your handling code here:
        RotYearsJT_focusLost(evt);
}//GEN-LAST:event_JTF_rotYears_FocusLost

    private void JTF_rotYears_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTF_rotYears_ActionPerformed
        // Add your handling code here:
        RotYearsJT_actionPerformed(evt);
}//GEN-LAST:event_JTF_rotYears_ActionPerformed

    private void McrewN_ComponentResized(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_McrewN_ComponentResized
        // Add your handling code here:
        McrewB_componentResized(evt);
    }//GEN-LAST:event_McrewN_ComponentResized

    private void JMI_new_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_new_ActionPerformed
        // Add your handling code here:
        NewJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_new_ActionPerformed

    private void JMI_open_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_open_ActionPerformed
        // Add your handling code here:
        OpenJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_open_ActionPerformed

    private void JMI_openCT_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_openCT_ActionPerformed
        // Add your handling code here:
        OpenCTJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_openCT_ActionPerformed

    private void JMI_save_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_save_ActionPerformed
        // Add your handling code here:
        SaveJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_save_ActionPerformed

    private void JMI_saveAs_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_saveAs_ActionPerformed
        // Add your handling code here:
        SaveAsJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_saveAs_ActionPerformed

    private void JMI_print_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_print_ActionPerformed
        // Add your handling code here:
        PrintJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_print_ActionPerformed

    private void JMI_exit_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_exit_ActionPerformed
        // Add your handling code here:
        ExitJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_exit_ActionPerformed

    private void JMI_cycleBwd_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_cycleBwd_ActionPerformed
        // Add your handling code here:
        CycleBwdJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_cycleBwd_ActionPerformed

    private void JMI_cycleFwd_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_cycleFwd_ActionPerformed
        // Add your handling code here:
        CycleFwdJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_cycleFwd_ActionPerformed

    private void JMI_insert_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_insert_ActionPerformed
        // Add your handling code here:
        InsertJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_insert_ActionPerformed

    private void JMI_sort_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_sort_ActionPerformed
        // Add your handling code here:
        SortJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_sort_ActionPerformed

    private void JMI_delete_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_delete_ActionPerformed
        // Add your handling code here:
        DeleteJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_delete_ActionPerformed

    private void JMI_paste_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_paste_ActionPerformed
        // Add your handling code here:
        PasteJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_paste_ActionPerformed

    private void JMI_cut_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_cut_ActionPerformed
        // Add your handling code here:
        CutJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_cut_ActionPerformed

    private void JMI_colOptions_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_colOptions_ActionPerformed
        // Add your handling code here:
        ColumnOptionsJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_colOptions_ActionPerformed

    private void JMI_config_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_config_ActionPerformed
        // Add your handling code here:
        ConfigurationJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_config_ActionPerformed

    private void JMI_email_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_email_ActionPerformed
        // Add your handling code here:
        EmailJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_email_ActionPerformed

    private void JMI_help_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_help_ActionPerformed
        // Add your handling code here:
        HelpJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_help_ActionPerformed

    private void JMI_about_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_about_ActionPerformed
        // Add your handling code here:
        AboutJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_about_ActionPerformed

    private void JB_new_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_new_ActionPerformed
        // Add your handling code here:
        try {
		JMI_new.doClick();
            } catch (java.lang.Exception e) {
            }
}//GEN-LAST:event_JB_new_ActionPerformed

    private void JB_open_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_open_ActionPerformed
        // Add your handling code here:
        OpenJB_actionPerformed(evt);
}//GEN-LAST:event_JB_open_ActionPerformed

    private void JB_save_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_save_ActionPerformed
        // Add your handling code here:
        SaveJB_actionPerformed(evt);
}//GEN-LAST:event_JB_save_ActionPerformed

    private void JB_cut_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_cut_ActionPerformed
        // Add your handling code here:
        CutJB_actionPerformed(evt); 
}//GEN-LAST:event_JB_cut_ActionPerformed

    private void JB_copy_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_copy_ActionPerformed
        // Add your handling code here:
        CopyJB_actionPerformed(evt);        
}//GEN-LAST:event_JB_copy_ActionPerformed

    private void JB_paste_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_paste_ActionPerformed
        // Add your handling code here:
        PasteJB_actionPerformed(evt);
}//GEN-LAST:event_JB_paste_ActionPerformed

    private void JB_sort_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_sort_ActionPerformed
        // Add your handling code here:
        SortJB_actionPerformed(evt);
}//GEN-LAST:event_JB_sort_ActionPerformed

    private void JB_cycleFwd_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_cycleFwd_ActionPerformed
        // Add your handling code here:
        try {
            JMI_cycleFwd.doClick();
	}catch (java.lang.Exception e) {
	}
}//GEN-LAST:event_JB_cycleFwd_ActionPerformed

    private void JB_cycleBwd_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_cycleBwd_ActionPerformed
        // Add your handling code here:
        try {
            JMI_cycleBwd.doClick();
	}catch (java.lang.Exception e) {
        }
}//GEN-LAST:event_JB_cycleBwd_ActionPerformed

    private void JB_help_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_help_ActionPerformed
        // Add your handling code here:
        HelpJB_actionPerformed(evt);
}//GEN-LAST:event_JB_help_ActionPerformed

    private void JMI_saveAsT_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_saveAsT_ActionPerformed
        // Add your handling code here:
        SaveAsTJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_saveAsT_ActionPerformed

    private void JMI_copy_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JMI_copy_ActionPerformed
        // Add your handling code here:
        CopyJMI_actionPerformed(evt);
}//GEN-LAST:event_JMI_copy_ActionPerformed
    
   /**  
    * This method is called when the screen is resized and the components sitting 
    * in the container are to be re-arranged so they are sitting correctly adjecent
    * to each other and evenly spaced.
    * @param evt The event generated when the frame is resized.
    */
    public void McrewB_componentResized(java.awt.event.ComponentEvent evt) {
        // Add your handling code here:
    }
    
    // ----------NEW MENU options actionPerformed events ----------------------
    
   /** 
    * This method is called whenever a new file is to be created from the MCREW screen 
    * by adding multiple rowInfo data objects. 
    * @param evt This menu action event is generated when the new file menu option of the
    * MCREW menubar is clicked. 
    */
    public void NewJMI_actionPerformed(java.awt.event.ActionEvent evt)
	{
		// to do: code goes here.
	    //System.out.println("Hello New");		 
	}
  
   /** 
    * This method is called when the open file button on the MCREW toolbar is clicked to 
    * select the .MAN or .XML file from the fielchooser to bring in the data for visualization
    * in the tables being accessed from the MCREW application on various screens.
    * @param evt This action event is generated when the open file button on the
    * MCREW toolbar is pressed. 
    */
    public void OpenJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

   /** 
    * This method is called when a .MAN or .XML file from the filechooser is to be
    * opened from its current copied location in the template directory to bring in 
    * the data into the application. 
    * @param evt This action menu event is generated when the open file menu option on the
    * MCREW toolbar is pressed. 
    */
    public void OpenCTJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

   /** 
    * This method is called whenever a file is to be saved after there have been some
    * updations to the data through the MCREW table screens.
    * @param evt This action event is generated when the file save button on the
    * MCREW toolbar is pressed. 
    */
    public void SaveJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

    /** 
    * This method is called whenever an existing file is to be saved after there
    * have been some modifications to the data through the MCREW table screens.
    * @param evt This action event is generated when the file SaveAs menu item of
    * the MCREW menubar is clicked. 
    */
    public void SaveAsJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

   /** 
    * This method is called whenever some daata is to be saved in a new file that is not
    * named yet i:e being saved from the application for the first time in the template
    * directory.
    * @param evt This action event is generated when the file SaveAs Template menu
    * item of the MCREW menubar is clicked. 
    */
    public void SaveAsTJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

   /** 
    * This method is called whenever a file data is to be printed after there have
    * been some updations to the data through the MCREW table screens.
    * @param evt This action event is generated when the file print menu-item of the
    * MCREW menubar is clicked. 
    */
    public void PrintJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }
    
   /** 
    * This method is called whenever the user wants to write some management file level
    * notes that are visible in the notes dialog and could be useful for various users
    * for future references. 
    * @param evt This action event is generated when the "Notes" menu-item of the
    * MCREW menubar is clicked. 
    */
    public void NotesJB_actionPerformed(java.awt.event.ActionEvent evt) 
    {     
    
    }
   
    /** 
    * This method is called whenever the user wants to close & exit the application
    * @param evt This action event is generated when the file "Exit" menu-item of the
    * MCREW menubar is clicked. 
    */
    public void ExitJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

    //----------EDIT MENU options actionPerformed events ----------------------------------
    
    /** 
    * This method is called whenever a section of data or a row is to be cut or removed
    * from its current location on the table screen.
    * @param evt This action event is generated when the cut menu-item of the
    * MCREW menubar is clicked to cut the selected data on the table screen.
    */
    public void CutJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
		// to do: code goes here.		 
    }

    /** 
    * This method is called whenever a section of data or a row is to be copied 
    * for using it at different places from its current location on the table screen.
    * @param evt This action event is generated when the copy menu-item of the
    * MCREW menubar is clicked to copy the selected data from the table screen.
    */
    public void CopyJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

    /** 
    * This method is called whenever a section of data or a row that was copied earlier 
    * and is to be pasted at a location specified on the table screen.
    * @param evt This action event is generated when the paste menu-item of the
    * MCREW menubar is clicked to insert the earlier selected data into the table screen.
    */
    public void PasteJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

    /** 
    * This method is called whenever a section of data or a row that's highlighted
    * needs to be removed or deleted from the current location. 
    * @param evt This action event is generated when the delete menu-item of the
    * MCREW menubar is clicked to remove the presently selected data from the table screen.
    */
    public void DeleteJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }
    
    /** 
    * This method is called when all the rows need to be sorted out in acending or 
    * descending order of dates on the MCREW table screen. 
    * @param evt This action event is generated when the "Sort" button on the
    * MCREW toolbar is pressed to arrange the row data in a particular order in 
    * the MCREW table.
    */
    public void SortJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
		// to do: code goes here.		 
    }
    
    /** 
    * This method is called when a row data or new row/data needs to be inserted 
    * in the table of the MCREW table screen. 
    * @param evt This action event is generated when the "Insert" menu-item of the
    * MCREW menubar is clicked to arrange the row data in a particular order in 
    * the MCREW table.
    */
    public void InsertJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
		// to do: code goes here.		 
    }
    
    /** 
    * This method is called when the rotation years need to be cycled forward i
    * in the table of the MCREW table screen. 
    * @param evt This action event is generated when the "Cycle FWD" menu-item of the
    * MCREW menubar is clicked to move the cycle ahead by the in a particular order in 
    * the MCREW table.
    */
    public void CycleFwdJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
		// to do: code goes here.		 
    }

     /** 
    * This method is called when the rotation years need to be cycled backwards i
    * in the table of the MCREW table screen. 
    * @param evt This action event is generated when the "Cycle BKWD" menu-item of the
    * MCREW menubar is clicked to move the cycle forward the MCREW table.
    */
    public void CycleBwdJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
		// to do: code goes here.		 
    }
    
   /** 
    * This method is called when the a user wants to update/modify/insert notes for the 
    * management file from the application GUI of the MCREW table screen. 
    * @param evt This action event is generated when the "Notes" menu-item of the
    * MCREW menubar is clicked to add/modify file level notes,
    */
    public void NotesJMI_actionPerformed(java.awt.event.ActionEvent evt) {
        
                // to do: code goes here.
    }
    
    //---------- CONFIGURE MENU options actionPerformed events ----------------------------------
    
    /** 
    * Currently not implemented.
    * @param evt This action event is generated when " Configuration " menu option
    * of the MCREW menubar is clicked.
    */
    public void ConfigurationJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }

    /** 
    * Currently not implemented.
    * @param evt This action event is generated when " Column option " menu option
    * of the MCREW menubar is clicked.
    */
    public void ColumnOptionsJMI_actionPerformed(java.awt.event.ActionEvent evt)
    {
            // to do: code goes here.
    }
    
    /** 
    * This method is called when the MCREW application's " Calibration Toggle " 
    * menu option is triggered for toggling between the calibration mode of table 
    * columns for the crops and the normal mode is required.
    * @param evt This action event is generated when " Calibration Toggle " menu option
    * of the MCREW menubar is clicked.
    */
    public void ToggleCalibJMI_actionPerformed(java.awt.event.ActionEvent evt) {
        // Add your handling code here:
       
    }
    //---------- TOOLS MENU options actionPerformed events ----------------------------------
    
    /** 
    * This method is instantiated/called when the user wants to send an "Email"
    * with bug report attachment option to the WEPS support team is to be sent
    * and a user clicks the email menu option from the MCREW menubar.
    * @param evt This sub-menu event is generated when " Email " menu option is clicked. 
    */
    public void EmailJMI_actionPerformed(java.awt.event.ActionEvent evt)
	{
		// to do: code goes here.
	}
    
    /** 
    * This method is instantiated/called when the user wants to convert the WEPS
    * management format data files to NRCS requested XML format skeleton files.
    * @param evt This sub-menu event is generated when " Convert WEPS Management to NRCS XML format "
    * menu option with sub-menu " select directory (recursively) " is clicked. 
    */
    public void ManToSkelJMI_actionPerformed(java.awt.event.ActionEvent evt, boolean singleFileOnly)
	{
	  // to do: code goes here.  
	}
    
    /** 
    * This method is instantiated/called when the user wants to convert the WEPS
    * management format data files to NRCS requested XML format skeleton files.
    * @param evt This sub-menu event is generated when " Convert WEPS Management to NRCS XML format "
    * menu option with sub-menu " select individual file " is clicked. 
    */
    public void ManToSkelRec_actionPerformed(java.awt.event.ActionEvent evt)
    {
        // to do: code goes here.
    }
    
    /** 
    * This method is instantiated/called when the user wants to convert the NRCS requested
    * XML format skeleton files to the WEPS management format data files.
    * @param evt This sub-menu event is generated when " Convert NRCS XML to WEPS Management format"
    * menu option with sub-menu " select directory (recursively) " is clicked. 
    * @param singleFileOnly True means single file while false indicates multiple files.
    */
    public void SkelToManJMI_actionPerformed(java.awt.event.ActionEvent evt, boolean singleFileOnly)
	{
	  // to do: code goes here.
	}
    
   /** 
    * This method is instantiated/called when the user wants to convert the NRCS requested
    * XML format skeleton files to the WEPS management format data files.
    * @param evt This sub-menu event is generated when " Convert NRCS XML to WEPS Management format"
    * menu option with sub-menu " select individual files " is clicked. 
    */
    public void SkelToManRec_actionPerformed(java.awt.event.ActionEvent evt)
	{
	  // to do: code goes here.
	}
    
   /** 
    * This method is instantiated/called when the user wants to update the WEPS management
    * files by recursively selecting each individual file from a directory updating all files
    * one after another. 
    * @param evt This sub-menu event is generated when one of the " Update WEPS management files "
    * sub menu option is clicked from the Menubar.
    */
    public void UpdateFilesJMI_actionPerformed(java.awt.event.ActionEvent evt)
	{
		// to do: code goes here.
	}
    
   /** 
    * This method is instantiated/called when the user wants to update the WEPS management
    * files either by selecting some individual files or recursively updating all files
    * in a directory by selecting an entire directory. 
    * @param evt This sub-menu event is generated when one of the " Update WEPS management files "
    * sub menu option is clicked from the Menubar.
    */
    public void UpdateWEPSJMI_actionPerformed(java.awt.event.ActionEvent evt)
	{
		// to do: code goes here.
	}
   
    //---------- HELP MENU options actionPerformed events ----------------------------------
    
    /** 
    * This method is instantiated/called when the user clicks the "help" menu option 
    * to get help on a particular or multiple sections of the MCREW application, etc.
    * @param evt This action event is generated when the "Help" menu option is clicked
    * from the toolbar.
    */
    public void HelpJMI_actionPerformed(java.awt.event.ActionEvent evt)
	{
		// to do: code goes here.
	}

    /** 
    * This method is instantiated/called when the user clicks the "About" button 
    * for knowing the details of MCREW application like the latest build date, version number, etc.
    * @param evt This action event is generated when the "About" menu option is 
    * clicked from the Menubar.
    */
    public void AboutJMI_actionPerformed(java.awt.event.ActionEvent evt)
	{
		// to do: code goes here.		 
	}
    
    /** 
    * This method is called when the user looses focus from the " Rotation Year "
    * text field present in the MCREW main screen.
    * @param evt This focus event is generated when the " Rotation Year " text field
    * looses its focus.
    */
    public void RotYearsJT_focusLost(java.awt.event.FocusEvent evt) {
        // Add your handling code here:   
    }

    /** 
    * This method is called when the user inserts/modifies value in the " Rotation Year "
    * text field of the MCREW main screen 
    * @param evt This action event is generated when the " Rotation Year " text field
    * is played with for changing the values it holds.
    */
    public void RotYearsJT_actionPerformed(java.awt.event.ActionEvent evt) {
        // Add your handling code here:
    }
    
    // ------------ Toolbar Action Buttons ----------------------
   
    /** 
    * This method is called when the open file button on the MCREW toolbar is clicked to 
    * select the .MAN or .XML file from the fielchooser to bring in the data for visualization
    * in the tables being accessed from the MCREW application on various screens.
    * @param evt This action event is generated when the open file button on the
    * MCREW toolbar is pressed. 
    */
    public void OpenJB_actionPerformed(java.awt.event.ActionEvent event)
	{
	
	}

   /** 
    * This method is called whenever a new file is to be created from the MCREW screen 
    * by adding multiple rowInfo data objects. 
    * @param evt This action event is generated when the new file button on the
    * MCREW toolbar is pressed. 
    */
	protected void NewJB_actionPerformed(java.awt.event.ActionEvent event) 
	{
	
	}

    /** 
    * This method is called whenever a file is to be saved after there have been some
    * updations to the data through the MCREW table screens.
    * @param evt This action event is generated when the file save button on the
    * MCREW toolbar is pressed. 
    */
	protected void SaveJB_actionPerformed(java.awt.event.ActionEvent event) 
	{
	
	}

    /** 
    * This method is called whenever a section of data or a row is to be cut or removed
    * from its current location on the table screen.
    * @param evt This action event is generated when the cut button on the
    * MCREW toolbar is pressed for the selected data on the table screen.
    */
	protected void CutJB_actionPerformed(java.awt.event.ActionEvent event)
	{
	
	}
    
   /** 
    * This method is called whenever a section of data or a row is to be copied 
    * for using it at different places from its current location on the table screen.
    * @param evt This action event is generated when the copy button on the
    * MCREW toolbar is pressed to copy the selected data from the table screen.
    */
	protected void CopyJB_actionPerformed(java.awt.event.ActionEvent event)
	{
	
	}
        //CancelButton_actionPerformed(java.awt.event.ActionEvent evt)

   /** 
    * This method is called whenever a section of data or a row that was copied earlier 
    * and is to be pasted at a location specified on the table screen.
    * @param evt This action event is generated when the paste button on the
    * MCREW toolbar is pressed to insert the earlier selected data into the table screen.
    */
	protected void PasteJB_actionPerformed(java.awt.event.ActionEvent event)
	{
	
	}
    
   /** 
    * This method is called when all the rows need to be sorted out in acending or 
    * descending order of dates on the MCREW screen. 
    * @param evt This action event is generated when the "Sort" button on the
    * MCREW toolbar is pressed to arrange the row data in a particular order in 
    * the MCREW table.
    */
	protected void SortJB_actionPerformed(java.awt.event.ActionEvent event) 
	{
	
	}
    
   /** 
    * This method is called when the help menu item is triggered from the help button
    * of the application's toolbar for some kind of generic shelp.
    * @param evt This action event is generated when the help button on the
    * MCREW toolbar is pressed. 
    */
	protected void HelpJB_actionPerformed(java.awt.event.ActionEvent event)
	{
	
	}   
    
    /** 
    * This method is called when the MCREW application's table view is toggled 
    * between the standard set of columns visible and the full crop view of table 
    * columns visible in calibration mode.
    * @param evt This action event is generated when the calibration button on the
    * MCREW toolbar is pressed. 
    */
    public void JBToggleCalib_actionPerformed(java.awt.event.ActionEvent evt) 
    // Add your handling code here:
    {

    }

    /** 
    * This method is called when the MCREW application is to be closed by clicking the 
    * "Close" menu item of the file menu.
    * @param evt The action event generated when the "Close" menu item click.
    */
    public void JBClose_actionPerformed(java.awt.event.ActionEvent evt) {

    }

   /** 
    * This method is called when the MCREW application's table view is to be toggled 
    * between the standard set of columns and the full crop view of table columns 
    * visible in calibration mode.
    * @param evt The state change event is generated when the calibration option from the 
    * option menu in the MCREW menubar is clicked.
    */
    public void JBToggleCalib_itemStateChanged(java.awt.event.ItemEvent evt) {
    // Add your handling code here:

   }

    /** 
    * This method is called when the MCREW application's table view is toggled 
    * between the standard set of columns visible and the full crop view of table 
    * columns visible in calibration mode.
    * @param evt This action event is generated when the calibration button on the
    * MCREW toolbar is pressed. 
    */
    public void JBT_calib_actionPerformed(java.awt.event.ActionEvent evt) {
    // Add your handling code here:
   }
    
   /** 
    * This method is called when the MCREW application 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 clicked. 
    */
    private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
        try {
                JMI_exit.doClick();
        } catch (java.lang.Exception e) {
        }
    }//GEN-LAST:event_exitForm
    
    /**
     * This method is used if this dialog is rum as an independent application i:e
     * the entire MCREW application.
     * @param args These are the command line arguments passed to the main method.
     */
    public static void main(String args[]) {
        new Mcrew_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.
     */
    public void addNotify() {
        //Dimension size = getSize();
        super.addNotify();
        
        if (frameSizeAdjusted){
			return;
        }        
		frameSizeAdjusted = true;
				
    }    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton JB_close;
    public javax.swing.JButton JB_copy;
    public javax.swing.JButton JB_cut;
    public javax.swing.JButton JB_cycleBwd;
    public javax.swing.JButton JB_cycleFwd;
    public javax.swing.JButton JB_help;
    protected javax.swing.JButton JB_new;
    public javax.swing.JButton JB_notes;
    public javax.swing.JButton JB_open;
    public javax.swing.JButton JB_paste;
    public javax.swing.JButton JB_save;
    public javax.swing.JButton JB_sort;
    public javax.swing.JLabel JL_rotation1;
    public javax.swing.JLabel JL_rotation2;
    public javax.swing.JLabel JL_yrofRot;
    public javax.swing.JMenuBar JMB_main;
    public javax.swing.JMenuItem JMI_about;
    public javax.swing.JMenuItem JMI_colOptions;
    public javax.swing.JMenuItem JMI_config;
    public javax.swing.JMenuItem JMI_copy;
    public javax.swing.JMenuItem JMI_cut;
    public javax.swing.JMenuItem JMI_cycleBwd;
    public javax.swing.JMenuItem JMI_cycleFwd;
    private javax.swing.JMenuItem JMI_defaultView;
    public javax.swing.JMenuItem JMI_delete;
    public javax.swing.JMenuItem JMI_email;
    public javax.swing.JMenuItem JMI_exit;
    public javax.swing.JMenuItem JMI_help;
    public javax.swing.JMenuItem JMI_insert;
    private javax.swing.JMenuItem JMI_insertOperation;
    public javax.swing.JMenuItem JMI_m2xmlFiles;
    public javax.swing.JMenuItem JMI_m2xmlRec;
    public javax.swing.JMenuItem JMI_new;
    public javax.swing.JMenuItem JMI_notes;
    public javax.swing.JMenuItem JMI_open;
    public javax.swing.JMenuItem JMI_openCT;
    public javax.swing.JMenuItem JMI_paste;
    public javax.swing.JMenuItem JMI_print;
    public javax.swing.JMenuItem JMI_save;
    public javax.swing.JMenuItem JMI_saveAs;
    public javax.swing.JMenuItem JMI_saveAsT;
    public javax.swing.JMenuItem JMI_sort;
    protected javax.swing.JMenuItem JMI_undoDelete;
    public javax.swing.JMenuItem JMI_updateFiles;
    public javax.swing.JMenuItem JMI_updateRec;
    public javax.swing.JMenuItem JMI_xml2mFiles;
    public javax.swing.JMenuItem JMI_xml2mRec;
    public javax.swing.JMenu JM_configure;
    public javax.swing.JMenu JM_edit;
    public javax.swing.JMenu JM_file;
    public javax.swing.JMenu JM_help;
    public javax.swing.JMenu JM_m2xml;
    public javax.swing.JMenu JM_tools;
    public javax.swing.JMenu JM_updateWeps;
    protected javax.swing.JMenu JM_view;
    public javax.swing.JMenu JM_xml2m;
    public javax.swing.JPanel JP_base;
    public javax.swing.JPanel JP_main;
    public javax.swing.JPanel JP_rotationFile;
    public javax.swing.JPanel JP_toolBar;
    public javax.swing.JScrollPane JSP_rotFile;
    protected javax.swing.JSeparator JS_bar;
    public javax.swing.JToolBar JTB_main;
    protected javax.swing.JToolBar JTB_view;
    public javax.swing.JTextField JTF_rotYears;
    // End of variables declaration//GEN-END:variables
   
    // Used by addNotify
	boolean frameSizeAdjusted = false;
}
