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

import java.awt.BorderLayout;

/**
 * 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();
//        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();
    }

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

        JP_rotationFile = new javax.swing.JPanel();
        JL_rotation1 = new javax.swing.JLabel();
        JL_iconHolder = new javax.swing.JLabel();
        JL_rotation2 = new javax.swing.JTextField();
        JP_main = new javax.swing.JPanel();
        JP_toolBar = new javax.swing.JPanel();
        JL_yrofRot = new javax.swing.JLabel();
        JTF_rotYears = new javax.swing.JTextField();
        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();
        JTB_RtI = new javax.swing.JToggleButton();
        JB_cycleFwd = new javax.swing.JButton();
        JB_cycleBwd = new javax.swing.JButton();
        JTB_view = new javax.swing.JToolBar();
        JB_notes = new javax.swing.JButton();

        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(141, 40));

        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.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

        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()
                .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.RELATED)
                .addComponent(JL_iconHolder)
                .addContainerGap())
        );
        JP_rotationFileLayout.setVerticalGroup(
            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_iconHolder)
                    .addComponent(JL_rotation2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        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

        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, 780, Short.MAX_VALUE)
        );
        JP_mainLayout.setVerticalGroup(
            JP_mainLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 462, 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

        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);
            }
        });

        JTB_main.setBorder(null);
        JTB_main.setFloatable(false);
        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_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);

        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.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);

        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(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);

        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, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(JL_yrofRot, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(JTF_rotYears, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        JP_toolBarLayout.setVerticalGroup(
            JP_toolBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JP_toolBarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(JP_toolBarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(JL_yrofRot, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(JTF_rotYears, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
            .addComponent(JTB_main, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        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.LEADING)
                    .addComponent(JP_toolBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(JP_rotationFile, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(JP_main, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        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, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(JP_main, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </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

    /** 
     * 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
     * updations 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 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_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;
    // End of variables declaration//GEN-END:variables
}
