package ufrcoderadvance;

import com.sun.jna.ptr.IntByReference;
import javax.swing.JOptionPane;
import javax.swing.JTextField;

public class frmValueBlockIncrDecr extends javax.swing.JInternalFrame {

    public frmValueBlockIncrDecr() {
        initComponents();
    }
    Global GL = new Global();
    int result = 0;
    static final int RES_LIGHT_OK = 4,
            RES_SOUND_OK = 4,
            ERR_LIGHT = 2,
            ERR_SOUND = 2,
            DL_OK = 0,
            AUTH1A = 96,
            AUTH1B = 97,
            MAX_BYTES = 752;
    final static String ANY_DATA = "You must enter any data !",
            APPROPRIATE_FORMAT = "You must enter the appropriate format !";

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeader = new javax.swing.JPanel();
        rbAUTH1A = new javax.swing.JRadioButton();
        rbAUTH1B = new javax.swing.JRadioButton();
        lblKeyIndex = new javax.swing.JLabel();
        cboKeyIndex = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        stbFunction = new javax.swing.JPanel();
        lblFunctionError = new javax.swing.JLabel();
        lblFunction_explain = new javax.swing.JLabel();
        lblFunction_code = new javax.swing.JLabel();
        pgValueBlockIncrDecr = new javax.swing.JTabbedPane();
        tabValueBlockIncrement = new javax.swing.JPanel();
        pnlValueBlockIncrement = new javax.swing.JPanel();
        txtIncrementValue = new javax.swing.JTextField();
        txtVBIncrBlockAddress = new javax.swing.JTextField();
        btnValueBlockIncrement = new javax.swing.JButton();
        lblValueBlockIncrement = new javax.swing.JLabel();
        lblVBlockAddressIncr = new javax.swing.JLabel();
        lblIncrementValue = new javax.swing.JLabel();
        pnlValueBlockIncrementAKM1 = new javax.swing.JPanel();
        txtIncrementValueAKM1 = new javax.swing.JTextField();
        txtVBIncrBlockAddressAKM1 = new javax.swing.JTextField();
        btnValueBlockIncrementAKM1 = new javax.swing.JButton();
        lblValueBlockIncrementAKM1 = new javax.swing.JLabel();
        lblVBlockAddressIncrAKM1 = new javax.swing.JLabel();
        lblIncrementValueAKM1 = new javax.swing.JLabel();
        pnlValueBlockIncrementAKM2 = new javax.swing.JPanel();
        txtIncrementValueAKM2 = new javax.swing.JTextField();
        txtVBIncrBlockAddressAKM2 = new javax.swing.JTextField();
        btnValueBlockIncrementAKM2 = new javax.swing.JButton();
        lblValueBlockIncrementAKM2 = new javax.swing.JLabel();
        lblVBlockAddressIncrAKM2 = new javax.swing.JLabel();
        lblIncrementValueAKM2 = new javax.swing.JLabel();
        pnlValueBlockIncrementPK = new javax.swing.JPanel();
        txtIncrementValuePK = new javax.swing.JTextField();
        txtVBIncrBlockAddressPK = new javax.swing.JTextField();
        btnValueBlockIncrementPK = new javax.swing.JButton();
        lblValueBlockIncrementPK = new javax.swing.JLabel();
        lblVBlockAddressIncrPK = new javax.swing.JLabel();
        lblIncrementValuePK = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        pnlValueBlockDecrement = new javax.swing.JPanel();
        txtDecrementValue = new javax.swing.JTextField();
        txtVBDecrBlockAddress = new javax.swing.JTextField();
        btnValueBlockDecrement = new javax.swing.JButton();
        lblValueBlockDecrement = new javax.swing.JLabel();
        lblVBlockAddressDecr = new javax.swing.JLabel();
        lblDecrementValue = new javax.swing.JLabel();
        pnlValueBlockDecrementAKM1 = new javax.swing.JPanel();
        txtDecrementValueAKM1 = new javax.swing.JTextField();
        txtVBDecrBlockAddressAKM1 = new javax.swing.JTextField();
        btnValueBlockDecrementAKM1 = new javax.swing.JButton();
        lblValueBlockDecrementAKM1 = new javax.swing.JLabel();
        lblVBlockAddressDecrAKM1 = new javax.swing.JLabel();
        lblDecrementValueAKM1 = new javax.swing.JLabel();
        pnlValueBlockDecrementAKM2 = new javax.swing.JPanel();
        txtDecrementValueAKM2 = new javax.swing.JTextField();
        txtVBDecrBlockAddressAKM2 = new javax.swing.JTextField();
        btnValueBlockDecrementAKM2 = new javax.swing.JButton();
        lblValueBlockDecrementAKM2 = new javax.swing.JLabel();
        lblVBlockAddressDecrAKM2 = new javax.swing.JLabel();
        lblDecrementValueAKM2 = new javax.swing.JLabel();
        pnlValueBlockDecrementPK = new javax.swing.JPanel();
        txtDecrementValuePK = new javax.swing.JTextField();
        txtVBDecrBlockAddressPK = new javax.swing.JTextField();
        btnValueBlockDecrementPK = new javax.swing.JButton();
        lblValueBlockDecrementPK = new javax.swing.JLabel();
        lblVBlockAddressDecrPK = new javax.swing.JLabel();
        lblDecrementValuePK = new javax.swing.JLabel();

        setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        setTitle("ValueBlock Increment/Decrement");
        setName("frmValueBlockIncrDecr"); // NOI18N
        setPreferredSize(new java.awt.Dimension(555, 395));
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameActivated(evt);
            }
            public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
            }
        });

        pnlHeader.setBackground(new java.awt.Color(255, 255, 255));
        pnlHeader.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        rbAUTH1A.setBackground(new java.awt.Color(255, 255, 255));
        rbAUTH1A.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        rbAUTH1A.setSelected(true);
        rbAUTH1A.setText("AUTH 1A");
        rbAUTH1A.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

        rbAUTH1B.setBackground(new java.awt.Color(255, 255, 255));
        rbAUTH1B.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        rbAUTH1B.setText("AUTH 1B");
        rbAUTH1B.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

        lblKeyIndex.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblKeyIndex.setText("Key Index");

        cboKeyIndex.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
        cboKeyIndex.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

        jLabel1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        jLabel1.setText("PK");

        javax.swing.GroupLayout pnlHeaderLayout = new javax.swing.GroupLayout(pnlHeader);
        pnlHeader.setLayout(pnlHeaderLayout);
        pnlHeaderLayout.setHorizontalGroup(
            pnlHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeaderLayout.createSequentialGroup()
                .addGap(4, 4, 4)
                .addComponent(rbAUTH1A)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(rbAUTH1B)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblKeyIndex)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(cboKeyIndex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlHeaderLayout.setVerticalGroup(
            pnlHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeaderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                .addComponent(rbAUTH1A)
                .addComponent(rbAUTH1B)
                .addComponent(lblKeyIndex)
                .addComponent(cboKeyIndex, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addComponent(jLabel1))
        );

        stbFunction.setBackground(new java.awt.Color(187, 185, 185));
        stbFunction.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        stbFunction.setPreferredSize(new java.awt.Dimension(553, 21));

        lblFunctionError.setBackground(new java.awt.Color(153, 153, 153));
        lblFunctionError.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblFunctionError.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblFunctionError.setText("Function Error:");
        lblFunctionError.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        lblFunction_explain.setBackground(new java.awt.Color(153, 153, 153));
        lblFunction_explain.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        lblFunction_explain.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblFunction_explain.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        lblFunction_code.setBackground(new java.awt.Color(153, 153, 153));
        lblFunction_code.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        lblFunction_code.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblFunction_code.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        javax.swing.GroupLayout stbFunctionLayout = new javax.swing.GroupLayout(stbFunction);
        stbFunction.setLayout(stbFunctionLayout);
        stbFunctionLayout.setHorizontalGroup(
            stbFunctionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(stbFunctionLayout.createSequentialGroup()
                .addComponent(lblFunctionError, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblFunction_code, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(lblFunction_explain, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        stbFunctionLayout.setVerticalGroup(
            stbFunctionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblFunctionError, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(lblFunction_explain, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(lblFunction_code, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pgValueBlockIncrDecr.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N

        pnlValueBlockIncrement.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtIncrementValue.setBackground(new java.awt.Color(249, 244, 244));
        txtIncrementValue.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtIncrementValue.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtIncrementValue.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBIncrBlockAddress.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBIncrBlockAddress.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBIncrBlockAddress.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockIncrement.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockIncrement.setText("INCREMENT");
        btnValueBlockIncrement.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockIncrement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockIncrementActionPerformed(evt);
            }
        });

        lblValueBlockIncrement.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockIncrement.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockIncrement.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockIncrement.setText("ValueBlock Increment");
        lblValueBlockIncrement.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockIncrement.setOpaque(true);

        lblVBlockAddressIncr.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressIncr.setText("Block Address");

        lblIncrementValue.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblIncrementValue.setText("Increment Value");

        javax.swing.GroupLayout pnlValueBlockIncrementLayout = new javax.swing.GroupLayout(pnlValueBlockIncrement);
        pnlValueBlockIncrement.setLayout(pnlValueBlockIncrementLayout);
        pnlValueBlockIncrementLayout.setHorizontalGroup(
            pnlValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockIncrement, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockIncrementLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlValueBlockIncrementLayout.createSequentialGroup()
                        .addComponent(lblVBlockAddressIncr)
                        .addGap(18, 18, 18)
                        .addComponent(txtVBIncrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(90, 90, 90))
                    .addGroup(pnlValueBlockIncrementLayout.createSequentialGroup()
                        .addGroup(pnlValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnValueBlockIncrement, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockIncrementLayout.createSequentialGroup()
                                .addComponent(lblIncrementValue)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(txtIncrementValue, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
        );
        pnlValueBlockIncrementLayout.setVerticalGroup(
            pnlValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockIncrementLayout.createSequentialGroup()
                .addComponent(lblValueBlockIncrement, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblIncrementValue)
                    .addComponent(txtIncrementValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressIncr)
                    .addComponent(txtVBIncrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockIncrement, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlValueBlockIncrementAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtIncrementValueAKM1.setBackground(new java.awt.Color(249, 244, 244));
        txtIncrementValueAKM1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtIncrementValueAKM1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtIncrementValueAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBIncrBlockAddressAKM1.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBIncrBlockAddressAKM1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBIncrBlockAddressAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockIncrementAKM1.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockIncrementAKM1.setText("INCREMENT");
        btnValueBlockIncrementAKM1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockIncrementAKM1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockIncrementAKM1ActionPerformed(evt);
            }
        });

        lblValueBlockIncrementAKM1.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockIncrementAKM1.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockIncrementAKM1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockIncrementAKM1.setText("ValueBlockIncrement AKM1");
        lblValueBlockIncrementAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockIncrementAKM1.setOpaque(true);

        lblVBlockAddressIncrAKM1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressIncrAKM1.setText("Block Address");

        lblIncrementValueAKM1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblIncrementValueAKM1.setText("Increment Value");

        javax.swing.GroupLayout pnlValueBlockIncrementAKM1Layout = new javax.swing.GroupLayout(pnlValueBlockIncrementAKM1);
        pnlValueBlockIncrementAKM1.setLayout(pnlValueBlockIncrementAKM1Layout);
        pnlValueBlockIncrementAKM1Layout.setHorizontalGroup(
            pnlValueBlockIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockIncrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockIncrementAKM1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlValueBlockIncrementAKM1Layout.createSequentialGroup()
                        .addComponent(lblVBlockAddressIncrAKM1)
                        .addGap(18, 18, 18)
                        .addComponent(txtVBIncrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlValueBlockIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockIncrementAKM1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockIncrementAKM1Layout.createSequentialGroup()
                            .addComponent(lblIncrementValueAKM1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtIncrementValueAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        pnlValueBlockIncrementAKM1Layout.setVerticalGroup(
            pnlValueBlockIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockIncrementAKM1Layout.createSequentialGroup()
                .addComponent(lblValueBlockIncrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblIncrementValueAKM1)
                    .addComponent(txtIncrementValueAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressIncrAKM1)
                    .addComponent(txtVBIncrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockIncrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlValueBlockIncrementAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtIncrementValueAKM2.setBackground(new java.awt.Color(249, 244, 244));
        txtIncrementValueAKM2.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtIncrementValueAKM2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtIncrementValueAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBIncrBlockAddressAKM2.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBIncrBlockAddressAKM2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBIncrBlockAddressAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockIncrementAKM2.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockIncrementAKM2.setText("INCREMENT");
        btnValueBlockIncrementAKM2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockIncrementAKM2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockIncrementAKM2ActionPerformed(evt);
            }
        });

        lblValueBlockIncrementAKM2.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockIncrementAKM2.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockIncrementAKM2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockIncrementAKM2.setText("ValueBlockIncrement AKM2");
        lblValueBlockIncrementAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockIncrementAKM2.setOpaque(true);

        lblVBlockAddressIncrAKM2.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressIncrAKM2.setText("Block Address");

        lblIncrementValueAKM2.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblIncrementValueAKM2.setText("Increment Value");

        javax.swing.GroupLayout pnlValueBlockIncrementAKM2Layout = new javax.swing.GroupLayout(pnlValueBlockIncrementAKM2);
        pnlValueBlockIncrementAKM2.setLayout(pnlValueBlockIncrementAKM2Layout);
        pnlValueBlockIncrementAKM2Layout.setHorizontalGroup(
            pnlValueBlockIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockIncrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockIncrementAKM2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlValueBlockIncrementAKM2Layout.createSequentialGroup()
                        .addComponent(lblVBlockAddressIncrAKM2)
                        .addGap(18, 18, 18)
                        .addComponent(txtVBIncrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlValueBlockIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockIncrementAKM2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockIncrementAKM2Layout.createSequentialGroup()
                            .addComponent(lblIncrementValueAKM2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtIncrementValueAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        pnlValueBlockIncrementAKM2Layout.setVerticalGroup(
            pnlValueBlockIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockIncrementAKM2Layout.createSequentialGroup()
                .addComponent(lblValueBlockIncrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblIncrementValueAKM2)
                    .addComponent(txtIncrementValueAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressIncrAKM2)
                    .addComponent(txtVBIncrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockIncrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlValueBlockIncrementPK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtIncrementValuePK.setBackground(new java.awt.Color(249, 244, 244));
        txtIncrementValuePK.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtIncrementValuePK.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtIncrementValuePK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBIncrBlockAddressPK.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBIncrBlockAddressPK.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBIncrBlockAddressPK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockIncrementPK.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockIncrementPK.setText("INCREMENT");
        btnValueBlockIncrementPK.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockIncrementPK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockIncrementPKActionPerformed(evt);
            }
        });

        lblValueBlockIncrementPK.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockIncrementPK.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockIncrementPK.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockIncrementPK.setText("ValueBlockIncrement PK");
        lblValueBlockIncrementPK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockIncrementPK.setOpaque(true);

        lblVBlockAddressIncrPK.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressIncrPK.setText("Block Address");

        lblIncrementValuePK.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblIncrementValuePK.setText("Increment Value");

        javax.swing.GroupLayout pnlValueBlockIncrementPKLayout = new javax.swing.GroupLayout(pnlValueBlockIncrementPK);
        pnlValueBlockIncrementPK.setLayout(pnlValueBlockIncrementPKLayout);
        pnlValueBlockIncrementPKLayout.setHorizontalGroup(
            pnlValueBlockIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockIncrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockIncrementPKLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlValueBlockIncrementPKLayout.createSequentialGroup()
                        .addComponent(lblVBlockAddressIncrPK)
                        .addGap(18, 18, 18)
                        .addComponent(txtVBIncrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(pnlValueBlockIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockIncrementPK, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockIncrementPKLayout.createSequentialGroup()
                            .addComponent(lblIncrementValuePK)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(txtIncrementValuePK, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );
        pnlValueBlockIncrementPKLayout.setVerticalGroup(
            pnlValueBlockIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockIncrementPKLayout.createSequentialGroup()
                .addComponent(lblValueBlockIncrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblIncrementValuePK)
                    .addComponent(txtIncrementValuePK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressIncrPK)
                    .addComponent(txtVBIncrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockIncrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout tabValueBlockIncrementLayout = new javax.swing.GroupLayout(tabValueBlockIncrement);
        tabValueBlockIncrement.setLayout(tabValueBlockIncrementLayout);
        tabValueBlockIncrementLayout.setHorizontalGroup(
            tabValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabValueBlockIncrementLayout.createSequentialGroup()
                .addGroup(tabValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlValueBlockIncrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlValueBlockIncrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(33, 33, 33)
                .addGroup(tabValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlValueBlockIncrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlValueBlockIncrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(44, Short.MAX_VALUE))
        );
        tabValueBlockIncrementLayout.setVerticalGroup(
            tabValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabValueBlockIncrementLayout.createSequentialGroup()
                .addGroup(tabValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlValueBlockIncrement, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlValueBlockIncrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(tabValueBlockIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlValueBlockIncrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlValueBlockIncrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(21, 21, 21))
        );

        pgValueBlockIncrDecr.addTab("ValueBlock Increment", tabValueBlockIncrement);

        pnlValueBlockDecrement.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtDecrementValue.setBackground(new java.awt.Color(249, 244, 244));
        txtDecrementValue.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtDecrementValue.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtDecrementValue.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBDecrBlockAddress.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBDecrBlockAddress.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBDecrBlockAddress.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockDecrement.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockDecrement.setText("DECREMENT");
        btnValueBlockDecrement.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockDecrement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockDecrementActionPerformed(evt);
            }
        });

        lblValueBlockDecrement.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockDecrement.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockDecrement.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockDecrement.setText("ValueBlock Decrement ");
        lblValueBlockDecrement.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockDecrement.setOpaque(true);

        lblVBlockAddressDecr.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressDecr.setText("Block Address");

        lblDecrementValue.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblDecrementValue.setText("Decrement Value");

        javax.swing.GroupLayout pnlValueBlockDecrementLayout = new javax.swing.GroupLayout(pnlValueBlockDecrement);
        pnlValueBlockDecrement.setLayout(pnlValueBlockDecrementLayout);
        pnlValueBlockDecrementLayout.setHorizontalGroup(
            pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockDecrement, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockDecrementLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblVBlockAddressDecr)
                    .addGroup(pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockDecrement, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockDecrementLayout.createSequentialGroup()
                            .addComponent(lblDecrementValue)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtVBDecrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtDecrementValue, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        pnlValueBlockDecrementLayout.setVerticalGroup(
            pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockDecrementLayout.createSequentialGroup()
                .addComponent(lblValueBlockDecrement, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDecrementValue)
                    .addComponent(txtDecrementValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressDecr)
                    .addComponent(txtVBDecrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockDecrement, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlValueBlockDecrementAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtDecrementValueAKM1.setBackground(new java.awt.Color(249, 244, 244));
        txtDecrementValueAKM1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtDecrementValueAKM1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtDecrementValueAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBDecrBlockAddressAKM1.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBDecrBlockAddressAKM1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBDecrBlockAddressAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockDecrementAKM1.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockDecrementAKM1.setText("DECREMENT");
        btnValueBlockDecrementAKM1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockDecrementAKM1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockDecrementAKM1ActionPerformed(evt);
            }
        });

        lblValueBlockDecrementAKM1.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockDecrementAKM1.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockDecrementAKM1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockDecrementAKM1.setText("ValueBlockDecrement AKM1");
        lblValueBlockDecrementAKM1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockDecrementAKM1.setOpaque(true);

        lblVBlockAddressDecrAKM1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressDecrAKM1.setText("Block Address");

        lblDecrementValueAKM1.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblDecrementValueAKM1.setText("Decrement Value");

        javax.swing.GroupLayout pnlValueBlockDecrementAKM1Layout = new javax.swing.GroupLayout(pnlValueBlockDecrementAKM1);
        pnlValueBlockDecrementAKM1.setLayout(pnlValueBlockDecrementAKM1Layout);
        pnlValueBlockDecrementAKM1Layout.setHorizontalGroup(
            pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockDecrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockDecrementAKM1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblVBlockAddressDecrAKM1)
                    .addGroup(pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockDecrementAKM1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockDecrementAKM1Layout.createSequentialGroup()
                            .addComponent(lblDecrementValueAKM1)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtVBDecrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtDecrementValueAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        pnlValueBlockDecrementAKM1Layout.setVerticalGroup(
            pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockDecrementAKM1Layout.createSequentialGroup()
                .addComponent(lblValueBlockDecrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDecrementValueAKM1)
                    .addComponent(txtDecrementValueAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressDecrAKM1)
                    .addComponent(txtVBDecrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockDecrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlValueBlockDecrementAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtDecrementValueAKM2.setBackground(new java.awt.Color(249, 244, 244));
        txtDecrementValueAKM2.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtDecrementValueAKM2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtDecrementValueAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBDecrBlockAddressAKM2.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBDecrBlockAddressAKM2.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBDecrBlockAddressAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockDecrementAKM2.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockDecrementAKM2.setText("DECREMENT");
        btnValueBlockDecrementAKM2.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockDecrementAKM2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockDecrementAKM2ActionPerformed(evt);
            }
        });

        lblValueBlockDecrementAKM2.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockDecrementAKM2.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockDecrementAKM2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockDecrementAKM2.setText("ValueBlockDecrement  AKM2");
        lblValueBlockDecrementAKM2.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockDecrementAKM2.setOpaque(true);

        lblVBlockAddressDecrAKM2.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressDecrAKM2.setText("Block Address");

        lblDecrementValueAKM2.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblDecrementValueAKM2.setText("Decrement Value");

        javax.swing.GroupLayout pnlValueBlockDecrementAKM2Layout = new javax.swing.GroupLayout(pnlValueBlockDecrementAKM2);
        pnlValueBlockDecrementAKM2.setLayout(pnlValueBlockDecrementAKM2Layout);
        pnlValueBlockDecrementAKM2Layout.setHorizontalGroup(
            pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockDecrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockDecrementAKM2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblVBlockAddressDecrAKM2)
                    .addGroup(pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockDecrementAKM2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockDecrementAKM2Layout.createSequentialGroup()
                            .addComponent(lblDecrementValueAKM2)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtVBDecrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtDecrementValueAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        pnlValueBlockDecrementAKM2Layout.setVerticalGroup(
            pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockDecrementAKM2Layout.createSequentialGroup()
                .addComponent(lblValueBlockDecrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDecrementValueAKM2)
                    .addComponent(txtDecrementValueAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressDecrAKM2)
                    .addComponent(txtVBDecrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockDecrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, 31, Short.MAX_VALUE)
                .addContainerGap())
        );

        pnlValueBlockDecrementPK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtDecrementValuePK.setBackground(new java.awt.Color(249, 244, 244));
        txtDecrementValuePK.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtDecrementValuePK.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtDecrementValuePK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        txtVBDecrBlockAddressPK.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        txtVBDecrBlockAddressPK.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtVBDecrBlockAddressPK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        btnValueBlockDecrementPK.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnValueBlockDecrementPK.setText("DECREMENT");
        btnValueBlockDecrementPK.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        btnValueBlockDecrementPK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnValueBlockDecrementPKActionPerformed(evt);
            }
        });

        lblValueBlockDecrementPK.setBackground(new java.awt.Color(153, 153, 153));
        lblValueBlockDecrementPK.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        lblValueBlockDecrementPK.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblValueBlockDecrementPK.setText("ValueBlockDecrement PK");
        lblValueBlockDecrementPK.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        lblValueBlockDecrementPK.setOpaque(true);

        lblVBlockAddressDecrPK.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblVBlockAddressDecrPK.setText("Block Address");

        lblDecrementValuePK.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblDecrementValuePK.setText("Decrement Value");

        javax.swing.GroupLayout pnlValueBlockDecrementPKLayout = new javax.swing.GroupLayout(pnlValueBlockDecrementPK);
        pnlValueBlockDecrementPK.setLayout(pnlValueBlockDecrementPKLayout);
        pnlValueBlockDecrementPKLayout.setHorizontalGroup(
            pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblValueBlockDecrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlValueBlockDecrementPKLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblVBlockAddressDecrPK)
                    .addGroup(pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnValueBlockDecrementPK, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, pnlValueBlockDecrementPKLayout.createSequentialGroup()
                            .addComponent(lblDecrementValuePK)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(txtVBDecrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(txtDecrementValuePK, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        pnlValueBlockDecrementPKLayout.setVerticalGroup(
            pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlValueBlockDecrementPKLayout.createSequentialGroup()
                .addComponent(lblValueBlockDecrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblDecrementValuePK)
                    .addComponent(txtDecrementValuePK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlValueBlockDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBlockAddressDecrPK)
                    .addComponent(txtVBDecrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnValueBlockDecrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                        .addComponent(pnlValueBlockDecrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(pnlValueBlockDecrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(pnlValueBlockDecrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)
                        .addComponent(pnlValueBlockDecrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(41, 41, 41))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlValueBlockDecrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlValueBlockDecrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(pnlValueBlockDecrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(pnlValueBlockDecrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pgValueBlockIncrDecr.addTab("ValueBlock Decrement", jPanel2);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlHeader, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(pgValueBlockIncrDecr, javax.swing.GroupLayout.DEFAULT_SIZE, 556, Short.MAX_VALUE)
            .addComponent(stbFunction, javax.swing.GroupLayout.DEFAULT_SIZE, 556, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlHeader, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pgValueBlockIncrDecr, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(stbFunction, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(28, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void formInternalFrameActivated(javax.swing.event.InternalFrameEvent evt) {//GEN-FIRST:event_formInternalFrameActivated
        GL.CreateKey(312, 5, 31, 29, "txtPKKey", pnlHeader);
    }//GEN-LAST:event_formInternalFrameActivated

    private void btnValueBlockIncrementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockIncrementActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte key_index = 0;
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        byte count = 0;
        try {
            if (txtIncrementValue.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtIncrementValue.requestFocus();
                return;
            }
            if (txtVBIncrBlockAddress.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBIncrBlockAddress.requestFocus();
                return;
            }


            key_index = (byte) cboKeyIndex.getSelectedIndex();
            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtIncrementValue.getText());
            block_address = Byte.parseByte(txtVBIncrBlockAddress.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockIncrement(value_incr, block_address, auth_mode, key_index);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

}//GEN-LAST:event_btnValueBlockIncrementActionPerformed

    private void btnValueBlockIncrementAKM1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockIncrementAKM1ActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        try {
            if (txtIncrementValueAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtIncrementValueAKM1.requestFocus();
                return;
            }
            if (txtVBIncrBlockAddressAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBIncrBlockAddressAKM1.requestFocus();
                return;
            }
            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtIncrementValueAKM1.getText());
            block_address = Byte.parseByte(txtVBIncrBlockAddressAKM1.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockIncrement_AKM1(value_incr, block_address, auth_mode);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockIncrementAKM1ActionPerformed

    private void btnValueBlockIncrementAKM2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockIncrementAKM2ActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        try {
            if (txtIncrementValueAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtIncrementValueAKM2.requestFocus();
                return;
            }
            if (txtVBIncrBlockAddressAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBIncrBlockAddressAKM2.requestFocus();
                return;
            }
            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtIncrementValueAKM2.getText());
            block_address = Byte.parseByte(txtVBIncrBlockAddressAKM2.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockIncrement_AKM2(value_incr, block_address, auth_mode);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockIncrementAKM2ActionPerformed

    private void btnValueBlockIncrementPKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockIncrementPKActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        byte count = 0;
        byte[] pk_key = new byte[7];
        try {
            if (txtIncrementValuePK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtIncrementValuePK.requestFocus();
                return;
            }
            if (txtVBIncrBlockAddressPK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBIncrBlockAddressPK.requestFocus();
                return;
            }
            for (int br = 0; br < pnlHeader.getComponentCount(); br++) {
                if (pnlHeader.getComponent(br).getName() == "txtPKKey") {
                    pk_key[count] = (byte) Integer.parseInt(((JTextField) (pnlHeader.getComponent(br))).getText());
                    count++;
                }
            }
            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtIncrementValuePK.getText());
            block_address = Byte.parseByte(txtVBIncrBlockAddressPK.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockIncrement_PK(value_incr, block_address, auth_mode, pk_key);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockIncrementPKActionPerformed

    private void btnValueBlockDecrementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockDecrementActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte key_index = 0;
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        try {
            if (txtDecrementValue.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtDecrementValue.requestFocus();
                return;
            }
            if (txtVBDecrBlockAddress.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBDecrBlockAddress.requestFocus();
                return;
            }
            key_index = (byte) cboKeyIndex.getSelectedIndex();
            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtDecrementValue.getText());
            block_address = Byte.parseByte(txtVBDecrBlockAddress.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockDecrement(value_incr, block_address, auth_mode, key_index);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockDecrementActionPerformed

    private void btnValueBlockDecrementAKM1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockDecrementAKM1ActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        try {
            if (txtDecrementValueAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtDecrementValueAKM1.requestFocus();
                return;
            }
            if (txtVBDecrBlockAddressAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBDecrBlockAddressAKM1.requestFocus();
                return;
            }

            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtDecrementValueAKM1.getText());
            block_address = Byte.parseByte(txtVBDecrBlockAddressAKM1.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockDecrement_AKM1(value_incr, block_address, auth_mode);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockDecrementAKM1ActionPerformed

    private void btnValueBlockDecrementAKM2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockDecrementAKM2ActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        try {
            if (txtDecrementValueAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtDecrementValueAKM2.requestFocus();
                return;
            }
            if (txtVBDecrBlockAddressAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBDecrBlockAddressAKM2.requestFocus();
                return;
            }

            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtDecrementValueAKM2.getText());
            block_address = Byte.parseByte(txtVBDecrBlockAddressAKM2.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockDecrement_AKM2(value_incr, block_address, auth_mode);
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockDecrementAKM2ActionPerformed

    private void btnValueBlockDecrementPKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValueBlockDecrementPKActionPerformed
        frmMain M = new frmMain();
        if (M.functionOn) {
            return;
        }
        M.ReaderOff();
        if (M.thread_start) {
            M.ReaderOn();
            M.functionOn = false;
            return;
        }
        byte auth_mode = 0;
        int value_incr = 0;
        byte block_address = 0;
        try {
            if (txtDecrementValuePK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtDecrementValuePK.requestFocus();
                return;
            }
            if (txtVBDecrBlockAddressPK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBDecrBlockAddressPK.requestFocus();
                return;
            }

            if (rbAUTH1A.isSelected()) {
                auth_mode = AUTH1A;
            } else {
                auth_mode = AUTH1B;
            }
            value_incr = Integer.parseInt(txtDecrementValuePK.getText());
            block_address = Byte.parseByte(txtVBDecrBlockAddressPK.getText());
            result = UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ValueBlockDecrement_PK(value_incr, block_address, auth_mode, GL.PK_KEY(pnlHeader));
            if (result == DL_OK) {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(RES_LIGHT_OK, RES_SOUND_OK);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            } else {
                UFRCoderWrapper.UFRCoderDeclaration.UFRInstance.ReaderUISignal(ERR_LIGHT, ERR_SOUND);
                GL.ERRORS_CODE(result, lblFunction_code, lblFunction_explain);
            }
        } catch (NumberFormatException nfe) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.ReaderOn();
            M.functionOn = false;
        }

    }//GEN-LAST:event_btnValueBlockDecrementPKActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnValueBlockDecrement;
    private javax.swing.JButton btnValueBlockDecrementAKM1;
    private javax.swing.JButton btnValueBlockDecrementAKM2;
    private javax.swing.JButton btnValueBlockDecrementPK;
    private javax.swing.JButton btnValueBlockIncrement;
    private javax.swing.JButton btnValueBlockIncrementAKM1;
    private javax.swing.JButton btnValueBlockIncrementAKM2;
    private javax.swing.JButton btnValueBlockIncrementPK;
    private javax.swing.JComboBox cboKeyIndex;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JLabel lblDecrementValue;
    private javax.swing.JLabel lblDecrementValueAKM1;
    private javax.swing.JLabel lblDecrementValueAKM2;
    private javax.swing.JLabel lblDecrementValuePK;
    private javax.swing.JLabel lblFunctionError;
    private javax.swing.JLabel lblFunction_code;
    private javax.swing.JLabel lblFunction_explain;
    private javax.swing.JLabel lblIncrementValue;
    private javax.swing.JLabel lblIncrementValueAKM1;
    private javax.swing.JLabel lblIncrementValueAKM2;
    private javax.swing.JLabel lblIncrementValuePK;
    private javax.swing.JLabel lblKeyIndex;
    private javax.swing.JLabel lblVBlockAddressDecr;
    private javax.swing.JLabel lblVBlockAddressDecrAKM1;
    private javax.swing.JLabel lblVBlockAddressDecrAKM2;
    private javax.swing.JLabel lblVBlockAddressDecrPK;
    private javax.swing.JLabel lblVBlockAddressIncr;
    private javax.swing.JLabel lblVBlockAddressIncrAKM1;
    private javax.swing.JLabel lblVBlockAddressIncrAKM2;
    private javax.swing.JLabel lblVBlockAddressIncrPK;
    private javax.swing.JLabel lblValueBlockDecrement;
    private javax.swing.JLabel lblValueBlockDecrementAKM1;
    private javax.swing.JLabel lblValueBlockDecrementAKM2;
    private javax.swing.JLabel lblValueBlockDecrementPK;
    private javax.swing.JLabel lblValueBlockIncrement;
    private javax.swing.JLabel lblValueBlockIncrementAKM1;
    private javax.swing.JLabel lblValueBlockIncrementAKM2;
    private javax.swing.JLabel lblValueBlockIncrementPK;
    private javax.swing.JTabbedPane pgValueBlockIncrDecr;
    private javax.swing.JPanel pnlHeader;
    private javax.swing.JPanel pnlValueBlockDecrement;
    private javax.swing.JPanel pnlValueBlockDecrementAKM1;
    private javax.swing.JPanel pnlValueBlockDecrementAKM2;
    private javax.swing.JPanel pnlValueBlockDecrementPK;
    private javax.swing.JPanel pnlValueBlockIncrement;
    private javax.swing.JPanel pnlValueBlockIncrementAKM1;
    private javax.swing.JPanel pnlValueBlockIncrementAKM2;
    private javax.swing.JPanel pnlValueBlockIncrementPK;
    private javax.swing.JRadioButton rbAUTH1A;
    private javax.swing.JRadioButton rbAUTH1B;
    private javax.swing.JPanel stbFunction;
    private javax.swing.JPanel tabValueBlockIncrement;
    private javax.swing.JTextField txtDecrementValue;
    private javax.swing.JTextField txtDecrementValueAKM1;
    private javax.swing.JTextField txtDecrementValueAKM2;
    private javax.swing.JTextField txtDecrementValuePK;
    private javax.swing.JTextField txtIncrementValue;
    private javax.swing.JTextField txtIncrementValueAKM1;
    private javax.swing.JTextField txtIncrementValueAKM2;
    private javax.swing.JTextField txtIncrementValuePK;
    private javax.swing.JTextField txtVBDecrBlockAddress;
    private javax.swing.JTextField txtVBDecrBlockAddressAKM1;
    private javax.swing.JTextField txtVBDecrBlockAddressAKM2;
    private javax.swing.JTextField txtVBDecrBlockAddressPK;
    private javax.swing.JTextField txtVBIncrBlockAddress;
    private javax.swing.JTextField txtVBIncrBlockAddressAKM1;
    private javax.swing.JTextField txtVBIncrBlockAddressAKM2;
    private javax.swing.JTextField txtVBIncrBlockAddressPK;
    // End of variables declaration//GEN-END:variables
}
