/*
 * TablePanel_n.java
 *
 * Created on February 11, 2004, 11:35 AM
 */
package usda.weru.mcrew.gui;

import usda.weru.util.ConfigData;

/**
 * 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 TablePanel_n extends javax.swing.JPanel {

    private static final long serialVersionUID = 1L;

    /**
     * Default constructor for the calendar dialog GUI object.
     */
    public TablePanel_n() {
        initComponents();
        writeFormatGroup.add(jNewFormatButton);
        writeFormatGroup.add(jOldFormatButton);
        //int display = ConfigData.getIntParm(ConfigData.mcrewVersionDisplay, 0);
        displayRadio();
//        JMI_WEPSSort.setEnabled(false);
        //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 TablePanel_n(java.lang.String sTitle) {
        this();
    }

    private void displayRadio() {
        int display = ConfigData.getIntParm(ConfigData.mcrewVersionDisplay, 0);
        if(display == 0) {
            jNewFormatButton.setVisible(false);
            jOldFormatButton.setVisible(false);
        } else {
            jNewFormatButton.setVisible(true);
            jOldFormatButton.setVisible(true);
        }
    }
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        writeFormatGroup = new javax.swing.ButtonGroup();
        JP_rotationFile = new javax.swing.JPanel();
        JL_rotation1 = new javax.swing.JLabel();
        JL_iconHolder = new javax.swing.JLabel();
        JL_rotation2 = new javax.swing.JTextField();
        VersionField = new javax.swing.JTextField();
        JL_yrofRot = new javax.swing.JLabel();
        JTF_rotYears = new javax.swing.JTextField();
        JP_main = 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_saveAs = new javax.swing.JButton();
        JB_cut = new javax.swing.JButton();
        JB_copy = new javax.swing.JButton();
        JB_paste = new javax.swing.JButton();
        JTB_view = new javax.swing.JToolBar();
        JB_sort = new javax.swing.JButton();
        JTB_RtI = new javax.swing.JToggleButton();
        JB_cycleFwd = new javax.swing.JButton();
        JB_cycleBwd = new javax.swing.JButton();
        JB_notes = new javax.swing.JButton();
        jNewFormatButton = new javax.swing.JRadioButton();
        jOldFormatButton = new javax.swing.JRadioButton();

        setMinimumSize(new java.awt.Dimension(887, 550));
        setName(""); // NOI18N
        setPreferredSize(new java.awt.Dimension(887, 550));

        JP_rotationFile.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_rotationFile.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JP_rotationFile.toolTipText")); // NOI18N
        JP_rotationFile.setMinimumSize(new java.awt.Dimension(863, 40));
        JP_rotationFile.setPreferredSize(new java.awt.Dimension(863, 49));

        JL_rotation1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        org.openide.awt.Mnemonics.setLocalizedText(JL_rotation1, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_rotation1.text")); // NOI18N
        JL_rotation1.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_rotation1.toolTipText")); // NOI18N
        JL_rotation1.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
        JL_rotation1.setRequestFocusEnabled(false);
        JL_rotation1.setVerifyInputWhenFocusTarget(false);

        JL_iconHolder.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/MCREWRot.png"))); // NOI18N
        org.openide.awt.Mnemonics.setLocalizedText(JL_iconHolder, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_iconHolder.text")); // NOI18N

        JL_rotation2.setEditable(false);
        JL_rotation2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        JL_rotation2.setText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_rotation2.text")); // NOI18N
        JL_rotation2.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_rotation2.toolTipText")); // NOI18N

        VersionField.setEditable(false);
        VersionField.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        VersionField.setText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.VersionField.text")); // NOI18N
        VersionField.setBorder(null);
        VersionField.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                VersionFieldActionPerformed(evt);
            }
        });

        JL_yrofRot.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
        org.openide.awt.Mnemonics.setLocalizedText(JL_yrofRot, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_yrofRot.text")); // NOI18N
        JL_yrofRot.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JL_yrofRot.toolTipText")); // NOI18N

        JTF_rotYears.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        JTF_rotYears.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JTF_rotYears.toolTipText")); // NOI18N
        JTF_rotYears.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                JTF_rotYears_FocusLost(evt);
            }
        });
        JTF_rotYears.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTF_rotYears_ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout JP_rotationFileLayout = new javax.swing.GroupLayout(JP_rotationFile);
        JP_rotationFile.setLayout(JP_rotationFileLayout);
        JP_rotationFileLayout.setHorizontalGroup(
            JP_rotationFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JP_rotationFileLayout.createSequentialGroup()
                .addGroup(JP_rotationFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(JP_rotationFileLayout.createSequentialGroup()
                        .addComponent(VersionField, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(JL_yrofRot, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(JTF_rotYears, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(JP_rotationFileLayout.createSequentialGroup()
                        .addComponent(JL_rotation1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(JL_rotation2)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(JL_iconHolder)
                .addContainerGap())
        );
        JP_rotationFileLayout.setVerticalGroup(
            JP_rotationFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JP_rotationFileLayout.createSequentialGroup()
                .addGroup(JP_rotationFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(JP_rotationFileLayout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addGroup(JP_rotationFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(JL_rotation1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(JL_rotation2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(JP_rotationFileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(VersionField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(JL_yrofRot, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(JTF_rotYears, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(JP_rotationFileLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(JL_iconHolder)))
                .addGap(3, 3, 3))
        );

        JP_main.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_main.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JP_main.toolTipText")); // NOI18N
        JP_main.setMinimumSize(new java.awt.Dimension(863, 0));
        JP_main.setPreferredSize(new java.awt.Dimension(863, 430));

        javax.swing.GroupLayout JP_mainLayout = new javax.swing.GroupLayout(JP_main);
        JP_main.setLayout(JP_mainLayout);
        JP_mainLayout.setHorizontalGroup(
            JP_mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        JP_mainLayout.setVerticalGroup(
            JP_mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 426, Short.MAX_VALUE)
        );

        JP_toolBar.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        JP_toolBar.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JP_toolBar.toolTipText")); // NOI18N
        JP_toolBar.setMinimumSize(new java.awt.Dimension(883, 37));
        JP_toolBar.setPreferredSize(new java.awt.Dimension(883, 37));

        JTB_main.setBorder(null);
        JTB_main.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JTB_main.toolTipText")); // NOI18N
        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(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_new.toolTipText")); // NOI18N
        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(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_open.toolTipText")); // NOI18N
        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(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_save.toolTipText")); // NOI18N
        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_saveAs.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/saveas.gif"))); // NOI18N
        JB_saveAs.setMnemonic('A');
        org.openide.awt.Mnemonics.setLocalizedText(JB_saveAs, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_saveAs.text")); // NOI18N
        JB_saveAs.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_saveAs.toolTipText")); // NOI18N
        JB_saveAs.setActionCommand(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_saveAs.actionCommand")); // NOI18N
        JB_saveAs.setFocusable(false);
        JB_saveAs.setMaximumSize(new java.awt.Dimension(28, 26));
        JB_saveAs.setMinimumSize(new java.awt.Dimension(28, 26));
        JB_saveAs.setPreferredSize(new java.awt.Dimension(28, 26));
        JB_saveAs.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JB_saveAs_ActionPerformed(evt);
            }
        });
        JTB_main.add(JB_saveAs);
        JB_saveAs.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_saveAs.AccessibleContext.accessibleDescription")); // NOI18N

        JB_cut.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/cut.gif"))); // NOI18N
        JB_cut.setMnemonic('X');
        JB_cut.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_cut.toolTipText")); // NOI18N
        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(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_copy.toolTipText")); // NOI18N
        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(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_paste.toolTipText")); // NOI18N
        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);

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

        JB_sort.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/sort.gif"))); // NOI18N
        JB_sort.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_sort.toolTipText")); // NOI18N
        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);

        JTB_RtI.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/MCREWIntToggle.png"))); // NOI18N
        org.openide.awt.Mnemonics.setLocalizedText(JTB_RtI, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JTB_RtI.text")); // NOI18N
        JTB_RtI.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JTB_RtI.toolTipText")); // NOI18N
        JTB_RtI.setFocusable(false);
        JTB_RtI.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        JTB_RtI.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        JTB_RtI.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                JTB_RtIActionPerformed(evt);
            }
        });
        JTB_main.add(JTB_RtI);

        JB_cycleFwd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/rotate.gif"))); // NOI18N
        JB_cycleFwd.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_cycleFwd.toolTipText")); // NOI18N
        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(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_cycleBwd.toolTipText")); // NOI18N
        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_notes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/usda/weru/resources/pencil_18.gif"))); // NOI18N
        JB_notes.setToolTipText(org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.JB_notes.toolTipText")); // NOI18N
        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);

        jNewFormatButton.setSelected(true);
        org.openide.awt.Mnemonics.setLocalizedText(jNewFormatButton, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.newVersion.text")); // NOI18N
        jNewFormatButton.setName("newVersion"); // NOI18N
        jNewFormatButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jFormatButtonActionPerformed(evt);
            }
        });

        org.openide.awt.Mnemonics.setLocalizedText(jOldFormatButton, org.openide.util.NbBundle.getMessage(TablePanel_n.class, "TablePanel_n.oldVersion.text")); // NOI18N
        jOldFormatButton.setName("oldVersion"); // NOI18N
        jOldFormatButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jFormatButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout JP_toolBarLayout = new javax.swing.GroupLayout(JP_toolBar);
        JP_toolBar.setLayout(JP_toolBarLayout);
        JP_toolBarLayout.setHorizontalGroup(
            JP_toolBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JP_toolBarLayout.createSequentialGroup()
                .addComponent(JTB_main, javax.swing.GroupLayout.PREFERRED_SIZE, 510, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(JP_toolBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jOldFormatButton)
                    .addComponent(jNewFormatButton))
                .addGap(220, 220, 220))
        );
        JP_toolBarLayout.setVerticalGroup(
            JP_toolBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JP_toolBarLayout.createSequentialGroup()
                .addGroup(JP_toolBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(JP_toolBarLayout.createSequentialGroup()
                        .addComponent(JTB_main, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(JP_toolBarLayout.createSequentialGroup()
                        .addComponent(jNewFormatButton, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jOldFormatButton, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
                .addGap(5, 5, 5))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(JP_toolBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(JP_main, javax.swing.GroupLayout.DEFAULT_SIZE, 883, Short.MAX_VALUE)
                    .addComponent(JP_rotationFile, javax.swing.GroupLayout.DEFAULT_SIZE, 883, Short.MAX_VALUE))
                .addGap(10, 10, 10))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(JP_toolBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_rotationFile, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_main, javax.swing.GroupLayout.DEFAULT_SIZE, 433, Short.MAX_VALUE)
                .addGap(10, 10, 10))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void JB_new_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_new_ActionPerformed
        try {
            NewJB_actionPerformed(evt);
        } 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
        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
        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
        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
        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
        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
        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
        try {
            CycFwdJB_actionPerformed(evt);
        } 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
        try {
            CycBwdJB_actionPerformed(evt);
        } catch (java.lang.Exception e) {
        }
    }//GEN-LAST:event_JB_cycleBwd_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 JTF_rotYears_FocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_JTF_rotYears_FocusLost
        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
        RotYearsJT_actionPerformed(evt);
    }//GEN-LAST:event_JTF_rotYears_ActionPerformed

    private void JTB_RtIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JTB_RtIActionPerformed
        rotIntToggle(evt);
    }//GEN-LAST:event_JTB_RtIActionPerformed

    private void VersionFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_VersionFieldActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_VersionFieldActionPerformed

    protected void jFormatButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFormatButtonActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jFormatButtonActionPerformed

    private void JB_saveAs_ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_JB_saveAs_ActionPerformed
        // TODO add your handling code here:
        SaveAsJB_actionPerformed(evt);
    }//GEN-LAST:event_JB_saveAs_ActionPerformed

    /** 
     * 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) {

    }

    /** 
     * 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) {

    }

    // ------------ 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 event 
     */
    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 event 
     */
    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
     * updates to the data through the MCREW table screens.
     * @param event 
     */
    protected void SaveJB_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /** 
     * This method is called whenever a file is to be saved (to a specified mgt name)
     * regardless whether there have been updates to the data through the MCREW table screens.
     * @param event 
     */
    protected void SaveAsJB_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 event
     */
    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 event
     */
    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 event
     */
    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 event
     */
    protected void SortJB_actionPerformed(java.awt.event.ActionEvent event) {

    }

    /** 
     * 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) {

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

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

    }

    /** 
     * 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 event 
     */
    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) {

    }

    /** 
     * 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) {

    }

    /** 
     * 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) {

    }                       
    
    protected void rotIntToggle(java.awt.event.ActionEvent evt){
    
    }
    
    /**
     * 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 TablePanel_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() {
        //Dimension size = getSize();
        super.addNotify();

        if (frameSizeAdjusted) {
            return;
        }
        frameSizeAdjusted = true;

    }                  

    // Used by addNotify
    boolean frameSizeAdjusted = false;

    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton JB_copy;
    public javax.swing.JButton JB_cut;
    protected javax.swing.JButton JB_cycleBwd;
    protected javax.swing.JButton JB_cycleFwd;
    protected javax.swing.JButton JB_new;
    protected 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_saveAs;
    public javax.swing.JButton JB_sort;
    protected javax.swing.JLabel JL_iconHolder;
    public javax.swing.JLabel JL_rotation1;
    protected javax.swing.JTextField JL_rotation2;
    public javax.swing.JLabel JL_yrofRot;
    public javax.swing.JPanel JP_main;
    public javax.swing.JPanel JP_rotationFile;
    public javax.swing.JPanel JP_toolBar;
    protected javax.swing.JToggleButton JTB_RtI;
    public javax.swing.JToolBar JTB_main;
    protected javax.swing.JToolBar JTB_view;
    public javax.swing.JTextField JTF_rotYears;
    protected javax.swing.JTextField VersionField;
    protected javax.swing.JRadioButton jNewFormatButton;
    protected javax.swing.JRadioButton jOldFormatButton;
    private javax.swing.ButtonGroup writeFormatGroup;
    // End of variables declaration//GEN-END:variables
}
