package ufradvanced;

import javax.swing.JOptionPane;

public class frmValueBlockInSectorIncrDecr extends javax.swing.JInternalFrame {

    public frmValueBlockInSectorIncrDecr() {
        initComponents();
    }
     static final int 
         FUNCT_LIGHT_OK     = 4,
         FUNCT_SOUND_OK     = 0,//4 Tripple sound
         FUNCT_LIGHT_ERROR  = 2,
         FUNCT_SOUND_ERROR  = 0,//2 Long sound
         DL_OK              = 0;
    
     static final byte
         MIFARE_AUTHENT1A   = 0x60,  
         MIFARE_AUTHENT1B   = 0x61;
     
    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() {

        btngAUTH1AB = new javax.swing.ButtonGroup();
        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();
        pgValueBlockInSectorIncrDecr = new javax.swing.JTabbedPane();
        tabValueBlockInSectorIncrement = new javax.swing.JPanel();
        pnlVBISIncrement = new javax.swing.JPanel();
        txtVBISIncrementValue = new javax.swing.JTextField();
        txtVBISIncrSectorAddress = new javax.swing.JTextField();
        txtVBISIncrBlockAddress = new javax.swing.JTextField();
        btnVBISIncrement = new javax.swing.JToggleButton();
        lblVBISIncrement = new javax.swing.JLabel();
        lblVBISIncrementValue = new javax.swing.JLabel();
        lblVBISIncrSectorAddress = new javax.swing.JLabel();
        lblVBISIncrBlockAddress = new javax.swing.JLabel();
        pnlVBISIncrementAKM1 = new javax.swing.JPanel();
        txtVBISIncrementValueAKM1 = new javax.swing.JTextField();
        txtVBISIncrSectorAddressAKM1 = new javax.swing.JTextField();
        txtVBISIncrBlockAddressAKM1 = new javax.swing.JTextField();
        btnVBISIncrementAKM1 = new javax.swing.JToggleButton();
        lblVBISIncrementAKM1 = new javax.swing.JLabel();
        lblVBISIncrementValueAKM1 = new javax.swing.JLabel();
        lblVBISIncrSectorAddressAKM1 = new javax.swing.JLabel();
        lblVBISIncrBlockAddressAKM1 = new javax.swing.JLabel();
        pnlVBISIncrementAKM2 = new javax.swing.JPanel();
        txtVBISIncrementValueAKM2 = new javax.swing.JTextField();
        txtVBISIncrSectorAddressAKM2 = new javax.swing.JTextField();
        txtVBISIncrBlockAddressAKM2 = new javax.swing.JTextField();
        btnVBISIncrementAKM2 = new javax.swing.JToggleButton();
        lblVBISIncrementAKM2 = new javax.swing.JLabel();
        lblVBISIncrementValueAKM2 = new javax.swing.JLabel();
        lblVBISIncrSectorAddressAKM2 = new javax.swing.JLabel();
        lblVBISIncrBlockAddressAKM2 = new javax.swing.JLabel();
        pnlVBISIncrementPK = new javax.swing.JPanel();
        txtVBISIncrementValuePK = new javax.swing.JTextField();
        txtVBISIncrSectorAddressPK = new javax.swing.JTextField();
        txtVBISIncrBlockAddressPK = new javax.swing.JTextField();
        btnVBISIncrementPK = new javax.swing.JToggleButton();
        lblVBISIncrementPK = new javax.swing.JLabel();
        lblVBISIncrementValuePK = new javax.swing.JLabel();
        lblVBISIncrSectorAddressPK = new javax.swing.JLabel();
        lblVBISIncrBlockAddressPK = new javax.swing.JLabel();
        tabValueBlockInSectorDecrement = new javax.swing.JPanel();
        pnlVBISDecrement = new javax.swing.JPanel();
        txtVBISDecrementValue = new javax.swing.JTextField();
        txtVBISDecrSectorAddress = new javax.swing.JTextField();
        txtVBISDecrBlockAddress = new javax.swing.JTextField();
        btnVBISDecrement = new javax.swing.JToggleButton();
        lblVBISDecrement = new javax.swing.JLabel();
        lblVBISDecrementValue = new javax.swing.JLabel();
        lblVBISDecrSectorAddress = new javax.swing.JLabel();
        lblVBISDecrBlockAddress = new javax.swing.JLabel();
        pnlVBISDecrementAKM1 = new javax.swing.JPanel();
        txtVBISDecrementValueAKM1 = new javax.swing.JTextField();
        txtVBISDecrSectorAddressAKM1 = new javax.swing.JTextField();
        txtVBISDecrBlockAddressAKM1 = new javax.swing.JTextField();
        btnVBISDecrementAKM1 = new javax.swing.JToggleButton();
        lblVBISDecrement1 = new javax.swing.JLabel();
        lblVBISDecrementValueAKM1 = new javax.swing.JLabel();
        lblVBISDecrSectorAddressAKM1 = new javax.swing.JLabel();
        lblVBISDecrBlockAddressAKM1 = new javax.swing.JLabel();
        pnlVBISDecrementAKM2 = new javax.swing.JPanel();
        txtVBISDecrementValueAKM2 = new javax.swing.JTextField();
        txtVBISDecrSectorAddressAKM2 = new javax.swing.JTextField();
        txtVBISDecrBlockAddressAKM2 = new javax.swing.JTextField();
        btnVBISDecrementAKM2 = new javax.swing.JToggleButton();
        lblVBISDecrementAKM2 = new javax.swing.JLabel();
        lblVBISDecrementValueAKM2 = new javax.swing.JLabel();
        lblVBISDecrSectorAddressAKM2 = new javax.swing.JLabel();
        lblVBISDecrBlockAddressAKM2 = new javax.swing.JLabel();
        pnlVBISDecrementPK = new javax.swing.JPanel();
        txtVBISDecrementValuePK = new javax.swing.JTextField();
        txtVBISDecrSectorAddressPK = new javax.swing.JTextField();
        txtVBISDecrBlockAddressPK = new javax.swing.JTextField();
        btnVBISDecrementPK = new javax.swing.JToggleButton();
        lblVBISDecrementPK = new javax.swing.JLabel();
        lblVBISDecrementValuePk = new javax.swing.JLabel();
        lblVBISDecrSectorAddressPK = new javax.swing.JLabel();
        lblVBISDecrBlockAddressPK = new javax.swing.JLabel();
        lblFunction = new javax.swing.JTextField();
        txtFErrorCode = new javax.swing.JTextField();
        txtFErrorExplain = new javax.swing.JTextField();

        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        setTitle("frmValueBlockInSectorIncrDecr");
        setName("frmValueBlockInSectorIncrDecr"); // NOI18N
        setPreferredSize(new java.awt.Dimension(555, 385));
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameActivated(evt);
            }
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent 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 internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
            }
        });
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        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));
        btngAUTH1AB.add(rbAUTH1A);
        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));
        btngAUTH1AB.add(rbAUTH1B);
        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(289, 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))
        );

        getContentPane().add(pnlHeader, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 570, -1));

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

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

        pnlVBISIncrement.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISIncrement.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISIncrement.setText("Increment");
        btnVBISIncrement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISIncrementActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISIncrementLayout = new javax.swing.GroupLayout(pnlVBISIncrement);
        pnlVBISIncrement.setLayout(pnlVBISIncrementLayout);
        pnlVBISIncrementLayout.setHorizontalGroup(
            pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISIncrement, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                                .addComponent(lblVBISIncrSectorAddress)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISIncrSectorAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                                .addComponent(lblVBISIncrBlockAddress)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISIncrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISIncrement, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                        .addComponent(lblVBISIncrementValue)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISIncrementValue)))
                .addContainerGap())
        );
        pnlVBISIncrementLayout.setVerticalGroup(
            pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                .addComponent(lblVBISIncrement)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISIncrementValue)
                    .addComponent(txtVBISIncrementValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISIncrementLayout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrSectorAddress)
                            .addComponent(txtVBISIncrSectorAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrBlockAddress)
                            .addComponent(txtVBISIncrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISIncrement, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlVBISIncrementAKM1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISIncrementAKM1.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISIncrementAKM1.setText("Increment");
        btnVBISIncrementAKM1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISIncrementAKM1ActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISIncrementAKM1Layout = new javax.swing.GroupLayout(pnlVBISIncrementAKM1);
        pnlVBISIncrementAKM1.setLayout(pnlVBISIncrementAKM1Layout);
        pnlVBISIncrementAKM1Layout.setHorizontalGroup(
            pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISIncrementAKM1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                                .addComponent(lblVBISIncrSectorAddressAKM1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISIncrSectorAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                                .addComponent(lblVBISIncrBlockAddressAKM1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISIncrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISIncrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                        .addComponent(lblVBISIncrementValueAKM1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISIncrementValueAKM1)))
                .addContainerGap())
        );
        pnlVBISIncrementAKM1Layout.setVerticalGroup(
            pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                .addComponent(lblVBISIncrementAKM1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISIncrementValueAKM1)
                    .addComponent(txtVBISIncrementValueAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISIncrementAKM1Layout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrSectorAddressAKM1)
                            .addComponent(txtVBISIncrSectorAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISIncrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrBlockAddressAKM1)
                            .addComponent(txtVBISIncrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISIncrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlVBISIncrementAKM2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISIncrementAKM2.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISIncrementAKM2.setText("Increment");
        btnVBISIncrementAKM2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISIncrementAKM2ActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISIncrementAKM2Layout = new javax.swing.GroupLayout(pnlVBISIncrementAKM2);
        pnlVBISIncrementAKM2.setLayout(pnlVBISIncrementAKM2Layout);
        pnlVBISIncrementAKM2Layout.setHorizontalGroup(
            pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISIncrementAKM2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                                .addComponent(lblVBISIncrSectorAddressAKM2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISIncrSectorAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                                .addComponent(lblVBISIncrBlockAddressAKM2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISIncrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISIncrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                        .addComponent(lblVBISIncrementValueAKM2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISIncrementValueAKM2)))
                .addContainerGap())
        );
        pnlVBISIncrementAKM2Layout.setVerticalGroup(
            pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                .addComponent(lblVBISIncrementAKM2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISIncrementValueAKM2)
                    .addComponent(txtVBISIncrementValueAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISIncrementAKM2Layout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrSectorAddressAKM2)
                            .addComponent(txtVBISIncrSectorAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISIncrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrBlockAddressAKM2)
                            .addComponent(txtVBISIncrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISIncrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlVBISIncrementPK.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISIncrementPK.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISIncrementPK.setText("Increment");
        btnVBISIncrementPK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISIncrementPKActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISIncrementPKLayout = new javax.swing.GroupLayout(pnlVBISIncrementPK);
        pnlVBISIncrementPK.setLayout(pnlVBISIncrementPKLayout);
        pnlVBISIncrementPKLayout.setHorizontalGroup(
            pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISIncrementPK, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                                .addComponent(lblVBISIncrSectorAddressPK)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISIncrSectorAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                                .addComponent(lblVBISIncrBlockAddressPK)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISIncrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISIncrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                        .addComponent(lblVBISIncrementValuePK)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISIncrementValuePK)))
                .addContainerGap())
        );
        pnlVBISIncrementPKLayout.setVerticalGroup(
            pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                .addComponent(lblVBISIncrementPK)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISIncrementValuePK)
                    .addComponent(txtVBISIncrementValuePK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISIncrementPKLayout.createSequentialGroup()
                        .addGroup(pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrSectorAddressPK)
                            .addComponent(txtVBISIncrSectorAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISIncrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISIncrBlockAddressPK)
                            .addComponent(txtVBISIncrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISIncrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        javax.swing.GroupLayout tabValueBlockInSectorIncrementLayout = new javax.swing.GroupLayout(tabValueBlockInSectorIncrement);
        tabValueBlockInSectorIncrement.setLayout(tabValueBlockInSectorIncrementLayout);
        tabValueBlockInSectorIncrementLayout.setHorizontalGroup(
            tabValueBlockInSectorIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabValueBlockInSectorIncrementLayout.createSequentialGroup()
                .addGroup(tabValueBlockInSectorIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabValueBlockInSectorIncrementLayout.createSequentialGroup()
                        .addGap(4, 4, 4)
                        .addComponent(pnlVBISIncrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pnlVBISIncrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(tabValueBlockInSectorIncrementLayout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addComponent(pnlVBISIncrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pnlVBISIncrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(35, Short.MAX_VALUE))
        );
        tabValueBlockInSectorIncrementLayout.setVerticalGroup(
            tabValueBlockInSectorIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabValueBlockInSectorIncrementLayout.createSequentialGroup()
                .addGroup(tabValueBlockInSectorIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlVBISIncrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlVBISIncrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(34, 34, 34)
                .addGroup(tabValueBlockInSectorIncrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pnlVBISIncrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlVBISIncrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(21, 21, 21))
        );

        pgValueBlockInSectorIncrDecr.addTab("ValueBlockInSector Increment", tabValueBlockInSectorIncrement);

        pnlVBISDecrement.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISDecrement.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISDecrement.setText("Decrement");
        btnVBISDecrement.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISDecrementActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISDecrementLayout = new javax.swing.GroupLayout(pnlVBISDecrement);
        pnlVBISDecrement.setLayout(pnlVBISDecrementLayout);
        pnlVBISDecrementLayout.setHorizontalGroup(
            pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISDecrement, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                                .addComponent(lblVBISDecrSectorAddress)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISDecrSectorAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                                .addComponent(lblVBISDecrBlockAddress)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISDecrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISDecrement))
                    .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                        .addComponent(lblVBISDecrementValue)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISDecrementValue)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlVBISDecrementLayout.setVerticalGroup(
            pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                .addComponent(lblVBISDecrement)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISDecrementValue)
                    .addComponent(txtVBISDecrementValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISDecrementLayout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrSectorAddress)
                            .addComponent(txtVBISDecrSectorAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrBlockAddress)
                            .addComponent(txtVBISDecrBlockAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISDecrement, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlVBISDecrementAKM1.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISDecrementAKM1.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISDecrementAKM1.setText("Decrement");
        btnVBISDecrementAKM1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISDecrementAKM1ActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISDecrementAKM1Layout = new javax.swing.GroupLayout(pnlVBISDecrementAKM1);
        pnlVBISDecrementAKM1.setLayout(pnlVBISDecrementAKM1Layout);
        pnlVBISDecrementAKM1Layout.setHorizontalGroup(
            pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISDecrement1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                                .addComponent(lblVBISDecrSectorAddressAKM1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISDecrSectorAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                                .addComponent(lblVBISDecrBlockAddressAKM1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISDecrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISDecrementAKM1))
                    .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                        .addComponent(lblVBISDecrementValueAKM1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISDecrementValueAKM1)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlVBISDecrementAKM1Layout.setVerticalGroup(
            pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                .addComponent(lblVBISDecrement1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISDecrementValueAKM1)
                    .addComponent(txtVBISDecrementValueAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISDecrementAKM1Layout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrSectorAddressAKM1)
                            .addComponent(txtVBISDecrSectorAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISDecrementAKM1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrBlockAddressAKM1)
                            .addComponent(txtVBISDecrBlockAddressAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISDecrementAKM1, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlVBISDecrementAKM2.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISDecrementAKM2.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISDecrementAKM2.setText("Decrement");
        btnVBISDecrementAKM2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISDecrementAKM2ActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISDecrementAKM2Layout = new javax.swing.GroupLayout(pnlVBISDecrementAKM2);
        pnlVBISDecrementAKM2.setLayout(pnlVBISDecrementAKM2Layout);
        pnlVBISDecrementAKM2Layout.setHorizontalGroup(
            pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISDecrementAKM2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                                .addComponent(lblVBISDecrSectorAddressAKM2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISDecrSectorAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                                .addComponent(lblVBISDecrBlockAddressAKM2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISDecrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISDecrementAKM2))
                    .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                        .addComponent(lblVBISDecrementValueAKM2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISDecrementValueAKM2)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlVBISDecrementAKM2Layout.setVerticalGroup(
            pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                .addComponent(lblVBISDecrementAKM2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISDecrementValueAKM2)
                    .addComponent(txtVBISDecrementValueAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISDecrementAKM2Layout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrSectorAddressAKM2)
                            .addComponent(txtVBISDecrSectorAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISDecrementAKM2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrBlockAddressAKM2)
                            .addComponent(txtVBISDecrBlockAddressAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISDecrementAKM2, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        pnlVBISDecrementPK.setBorder(javax.swing.BorderFactory.createEtchedBorder());

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

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

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

        btnVBISDecrementPK.setFont(new java.awt.Font("Verdana", 1, 11)); // NOI18N
        btnVBISDecrementPK.setText("Decrement");
        btnVBISDecrementPK.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnVBISDecrementPKActionPerformed(evt);
            }
        });

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

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

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

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

        javax.swing.GroupLayout pnlVBISDecrementPKLayout = new javax.swing.GroupLayout(pnlVBISDecrementPK);
        pnlVBISDecrementPK.setLayout(pnlVBISDecrementPKLayout);
        pnlVBISDecrementPKLayout.setHorizontalGroup(
            pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(lblVBISDecrementPK, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                                .addComponent(lblVBISDecrSectorAddressPK)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(txtVBISDecrSectorAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                                .addComponent(lblVBISDecrBlockAddressPK)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtVBISDecrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnVBISDecrementPK))
                    .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                        .addComponent(lblVBISDecrementValuePk)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(txtVBISDecrementValuePK)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pnlVBISDecrementPKLayout.setVerticalGroup(
            pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                .addComponent(lblVBISDecrementPK)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblVBISDecrementValuePk)
                    .addComponent(txtVBISDecrementValuePK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnlVBISDecrementPKLayout.createSequentialGroup()
                        .addGroup(pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrSectorAddressPK)
                            .addComponent(txtVBISDecrSectorAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pnlVBISDecrementPKLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lblVBISDecrBlockAddressPK)
                            .addComponent(txtVBISDecrBlockAddressPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(btnVBISDecrementPK, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                .addContainerGap())
        );

        javax.swing.GroupLayout tabValueBlockInSectorDecrementLayout = new javax.swing.GroupLayout(tabValueBlockInSectorDecrement);
        tabValueBlockInSectorDecrement.setLayout(tabValueBlockInSectorDecrementLayout);
        tabValueBlockInSectorDecrementLayout.setHorizontalGroup(
            tabValueBlockInSectorDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabValueBlockInSectorDecrementLayout.createSequentialGroup()
                .addGroup(tabValueBlockInSectorDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(tabValueBlockInSectorDecrementLayout.createSequentialGroup()
                        .addComponent(pnlVBISDecrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pnlVBISDecrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(tabValueBlockInSectorDecrementLayout.createSequentialGroup()
                        .addComponent(pnlVBISDecrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(pnlVBISDecrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(37, Short.MAX_VALUE))
        );
        tabValueBlockInSectorDecrementLayout.setVerticalGroup(
            tabValueBlockInSectorDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(tabValueBlockInSectorDecrementLayout.createSequentialGroup()
                .addGroup(tabValueBlockInSectorDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(pnlVBISDecrement, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlVBISDecrementAKM1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                .addGroup(tabValueBlockInSectorDecrementLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(pnlVBISDecrementAKM2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(pnlVBISDecrementPK, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(22, 22, 22))
        );

        pgValueBlockInSectorIncrDecr.addTab("ValueBlockInSector Decrement", tabValueBlockInSectorDecrement);

        getContentPane().add(pgValueBlockInSectorIncrDecr, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 31, -1, -1));

        lblFunction.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        lblFunction.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        lblFunction.setText("Function Error");
        getContentPane().add(lblFunction, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 340, 140, 20));

        txtFErrorCode.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtFErrorCode.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtFErrorCode.setText(" ");
        getContentPane().add(txtFErrorCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 340, 80, 20));

        txtFErrorExplain.setFont(new java.awt.Font("Verdana", 0, 11)); // NOI18N
        txtFErrorExplain.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        txtFErrorExplain.setText(" ");
        getContentPane().add(txtFErrorExplain, new org.netbeans.lib.awtextra.AbsoluteConstraints(220, 340, 340, 20));

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

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

    private void btnVBISIncrementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISIncrementActionPerformed
        frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);                                                  
          byte key_index                  = (byte) cboKeyIndex.getSelectedIndex() ;
          int increment_value             = 0;
          byte sector_address             = 0;
          byte block_address              = 0;
        
            if (txtVBISIncrementValue.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrementValue.requestFocus();
                return;
            }
            if (txtVBISIncrSectorAddress.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrSectorAddress.requestFocus();
                return;
            }
            if (txtVBISIncrBlockAddress.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrBlockAddress.requestFocus();
                return;
            }
            
            increment_value   = Integer.parseInt(txtVBISIncrementValue.getText());
            sector_address    = Byte.parseByte(txtVBISIncrSectorAddress.getText());
            block_address     = Byte.parseByte(txtVBISIncrBlockAddress.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorIncrement(increment_value, sector_address, block_address, auth_mode, key_index);
            
             if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISIncrementActionPerformed

    private void btnVBISIncrementAKM1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISIncrementAKM1ActionPerformed
       frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          int increment_value             = 0;
          byte sector_address             = 0;
          byte block_address              = 0;
        
            if (txtVBISIncrementValueAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrementValueAKM1.requestFocus();
                return;
            }
            if (txtVBISIncrSectorAddressAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrSectorAddressAKM1.requestFocus();
                return;
            }
            if (txtVBISIncrBlockAddressAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrBlockAddressAKM1.requestFocus();
                return;
            }

            
            increment_value  = Integer.parseInt(txtVBISIncrementValueAKM1.getText());
            sector_address   = Byte.parseByte(txtVBISIncrSectorAddressAKM1.getText());
            block_address    = Byte.parseByte(txtVBISIncrBlockAddressAKM1.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorIncrement_AKM1(increment_value, sector_address, block_address, auth_mode);
            
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISIncrementAKM1ActionPerformed

    private void btnVBISIncrementAKM2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISIncrementAKM2ActionPerformed
        frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          int increment_value = 0;
          byte sector_address = 0;
          byte block_address = 0;
        
            if (txtVBISIncrementValueAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrementValueAKM2.requestFocus();
                return;
            }
            if (txtVBISIncrSectorAddressAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrSectorAddressAKM2.requestFocus();
                return;
            }
            if (txtVBISIncrBlockAddressAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrBlockAddressAKM2.requestFocus();
                return;
            }

            increment_value = Integer.parseInt(txtVBISIncrementValueAKM2.getText());
            sector_address  = Byte.parseByte(txtVBISIncrSectorAddressAKM2.getText());
            block_address   = Byte.parseByte(txtVBISIncrBlockAddressAKM2.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorIncrement_AKM2(increment_value, sector_address, block_address, auth_mode);
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISIncrementAKM2ActionPerformed

    private void btnVBISIncrementPKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISIncrementPKActionPerformed
         frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          int increment_value             = 0;
          byte sector_address             = 0;
          byte block_address              = 0;
        
            if (txtVBISIncrementValuePK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrementValuePK.requestFocus();
                return;
            }
            if (txtVBISIncrSectorAddressPK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrSectorAddressPK.requestFocus();
                return;
            }
            if (txtVBISIncrBlockAddressPK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISIncrBlockAddressPK.requestFocus();
                return;
            }

            increment_value = Integer.parseInt(txtVBISIncrementValuePK.getText());
            sector_address = Byte.parseByte(txtVBISIncrSectorAddressPK.getText());
            block_address = Byte.parseByte(txtVBISIncrBlockAddressPK.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorIncrement_PK(increment_value, sector_address, block_address, auth_mode, new Global().PK_KEY(pnlHeader));
            
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISIncrementPKActionPerformed

    private void btnVBISDecrementActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISDecrementActionPerformed
        frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          byte key_index                  = (byte) cboKeyIndex.getSelectedIndex() ;
          int decrement_value             = 0;
          byte sector_address             = 0;
          byte block_address              = 0;
        
            if (txtVBISDecrementValue.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrementValue.requestFocus();
                return;
            }
            if (txtVBISDecrSectorAddress.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrSectorAddress.requestFocus();
                return;
            }
            if (txtVBISDecrBlockAddress.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrBlockAddress.requestFocus();
                return;
            }
           
            decrement_value = Integer.parseInt(txtVBISDecrementValue.getText());
            sector_address  = Byte.parseByte(txtVBISDecrSectorAddress.getText());
            block_address   = Byte.parseByte(txtVBISDecrBlockAddress.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorDecrement(decrement_value, sector_address, block_address, auth_mode, key_index);
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISDecrementActionPerformed

    private void btnVBISDecrementAKM1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISDecrementAKM1ActionPerformed
         frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          int decrement_value             = 0;
          byte sector_address             = 0;
          byte block_address              = 0;
        
            if (txtVBISDecrementValueAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrementValueAKM1.requestFocus();
                return;
            }
            if (txtVBISDecrSectorAddressAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrSectorAddressAKM1.requestFocus();
                return;
            }
            if (txtVBISDecrBlockAddressAKM1.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrBlockAddressAKM1.requestFocus();
                return;
            }
            
            decrement_value = Integer.parseInt(txtVBISDecrementValueAKM1.getText());
            sector_address  = Byte.parseByte(txtVBISDecrSectorAddressAKM1.getText());
            block_address   = Byte.parseByte(txtVBISDecrBlockAddressAKM1.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorDecrement_AKM1(decrement_value, sector_address, block_address, auth_mode);
            
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISDecrementAKM1ActionPerformed

    private void btnVBISDecrementAKM2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISDecrementAKM2ActionPerformed
         frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          int decrement_value             = 0;
          byte sector_address             = 0;
          byte block_address              = 0;
        
            if (txtVBISDecrementValueAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrementValueAKM2.requestFocus();
                return;
            }
            if (txtVBISDecrSectorAddressAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrSectorAddressAKM2.requestFocus();
                return;
            }
            if (txtVBISDecrBlockAddressAKM2.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrBlockAddressAKM2.requestFocus();
                return;
            }
           
            decrement_value = Integer.parseInt(txtVBISDecrementValueAKM2.getText());
            sector_address  = Byte.parseByte(txtVBISDecrSectorAddressAKM2.getText());
            block_address   = Byte.parseByte(txtVBISDecrBlockAddressAKM2.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorDecrement_AKM2(decrement_value, sector_address, block_address, auth_mode);
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISDecrementAKM2ActionPerformed

    private void btnVBISDecrementPKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnVBISDecrementPKActionPerformed
         frmMain M = new frmMain();
        if (M.GetFunct() || M.GetLoop()) {
            return;
        }
        try
        {
          M.SetFunct(true);
          int iFResult                    = 0;
          byte auth_mode                  = (rbAUTH1A.isSelected() ? MIFARE_AUTHENT1A : MIFARE_AUTHENT1B);
          int decrement_value = 0;
          byte sector_address = 0;
          byte block_address = 0;
        
            if (txtVBISDecrementValuePK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, ANY_DATA, "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrementValuePK.requestFocus();
                return;
            }
            if (txtVBISDecrSectorAddressPK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  SECTOR ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrSectorAddressPK.requestFocus();
                return;
            }
            if (txtVBISDecrBlockAddressPK.getText().trim().isEmpty()) {
                JOptionPane.showMessageDialog(rootPane, "You must enter the  BLOCK ADDRESS !", "Warning !", JOptionPane.WARNING_MESSAGE);
                txtVBISDecrBlockAddressPK.requestFocus();
                return;
            }
            
            decrement_value = Integer.parseInt(txtVBISDecrementValuePK.getText());
            sector_address  = Byte.parseByte(txtVBISDecrSectorAddressPK.getText());
            block_address   = Byte.parseByte(txtVBISDecrBlockAddressPK.getText());
            
            iFResult = Declarations.UFrDeclarations.UFRInstance.ValueBlockInSectorDecrement_PK(decrement_value, sector_address, block_address, auth_mode, new Global().PK_KEY(pnlHeader));
            if (iFResult == DL_OK) {
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_OK, FUNCT_SOUND_OK);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            } else {               
                Declarations.UFrDeclarations.UFRInstance.ReaderUISignal(FUNCT_LIGHT_ERROR,FUNCT_SOUND_ERROR);
                M.SetStatusBar(txtFErrorCode,txtFErrorExplain,iFResult);                
            }
        } catch (NumberFormatException e) {
            JOptionPane.showMessageDialog(rootPane, APPROPRIATE_FORMAT, "Error !", JOptionPane.ERROR_MESSAGE);
        } finally {
            M.SetFunct(false);            
        }
    }//GEN-LAST:event_btnVBISDecrementPKActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToggleButton btnVBISDecrement;
    private javax.swing.JToggleButton btnVBISDecrementAKM1;
    private javax.swing.JToggleButton btnVBISDecrementAKM2;
    private javax.swing.JToggleButton btnVBISDecrementPK;
    private javax.swing.JToggleButton btnVBISIncrement;
    private javax.swing.JToggleButton btnVBISIncrementAKM1;
    private javax.swing.JToggleButton btnVBISIncrementAKM2;
    private javax.swing.JToggleButton btnVBISIncrementPK;
    private javax.swing.ButtonGroup btngAUTH1AB;
    private javax.swing.JComboBox cboKeyIndex;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JTextField lblFunction;
    private javax.swing.JLabel lblKeyIndex;
    private javax.swing.JLabel lblVBISDecrBlockAddress;
    private javax.swing.JLabel lblVBISDecrBlockAddressAKM1;
    private javax.swing.JLabel lblVBISDecrBlockAddressAKM2;
    private javax.swing.JLabel lblVBISDecrBlockAddressPK;
    private javax.swing.JLabel lblVBISDecrSectorAddress;
    private javax.swing.JLabel lblVBISDecrSectorAddressAKM1;
    private javax.swing.JLabel lblVBISDecrSectorAddressAKM2;
    private javax.swing.JLabel lblVBISDecrSectorAddressPK;
    private javax.swing.JLabel lblVBISDecrement;
    private javax.swing.JLabel lblVBISDecrement1;
    private javax.swing.JLabel lblVBISDecrementAKM2;
    private javax.swing.JLabel lblVBISDecrementPK;
    private javax.swing.JLabel lblVBISDecrementValue;
    private javax.swing.JLabel lblVBISDecrementValueAKM1;
    private javax.swing.JLabel lblVBISDecrementValueAKM2;
    private javax.swing.JLabel lblVBISDecrementValuePk;
    private javax.swing.JLabel lblVBISIncrBlockAddress;
    private javax.swing.JLabel lblVBISIncrBlockAddressAKM1;
    private javax.swing.JLabel lblVBISIncrBlockAddressAKM2;
    private javax.swing.JLabel lblVBISIncrBlockAddressPK;
    private javax.swing.JLabel lblVBISIncrSectorAddress;
    private javax.swing.JLabel lblVBISIncrSectorAddressAKM1;
    private javax.swing.JLabel lblVBISIncrSectorAddressAKM2;
    private javax.swing.JLabel lblVBISIncrSectorAddressPK;
    private javax.swing.JLabel lblVBISIncrement;
    private javax.swing.JLabel lblVBISIncrementAKM1;
    private javax.swing.JLabel lblVBISIncrementAKM2;
    private javax.swing.JLabel lblVBISIncrementPK;
    private javax.swing.JLabel lblVBISIncrementValue;
    private javax.swing.JLabel lblVBISIncrementValueAKM1;
    private javax.swing.JLabel lblVBISIncrementValueAKM2;
    private javax.swing.JLabel lblVBISIncrementValuePK;
    private javax.swing.JTabbedPane pgValueBlockInSectorIncrDecr;
    private javax.swing.JPanel pnlHeader;
    private javax.swing.JPanel pnlVBISDecrement;
    private javax.swing.JPanel pnlVBISDecrementAKM1;
    private javax.swing.JPanel pnlVBISDecrementAKM2;
    private javax.swing.JPanel pnlVBISDecrementPK;
    private javax.swing.JPanel pnlVBISIncrement;
    private javax.swing.JPanel pnlVBISIncrementAKM1;
    private javax.swing.JPanel pnlVBISIncrementAKM2;
    private javax.swing.JPanel pnlVBISIncrementPK;
    private javax.swing.JRadioButton rbAUTH1A;
    private javax.swing.JRadioButton rbAUTH1B;
    private javax.swing.JPanel tabValueBlockInSectorDecrement;
    private javax.swing.JPanel tabValueBlockInSectorIncrement;
    private javax.swing.JTextField txtFErrorCode;
    private javax.swing.JTextField txtFErrorExplain;
    private javax.swing.JTextField txtVBISDecrBlockAddress;
    private javax.swing.JTextField txtVBISDecrBlockAddressAKM1;
    private javax.swing.JTextField txtVBISDecrBlockAddressAKM2;
    private javax.swing.JTextField txtVBISDecrBlockAddressPK;
    private javax.swing.JTextField txtVBISDecrSectorAddress;
    private javax.swing.JTextField txtVBISDecrSectorAddressAKM1;
    private javax.swing.JTextField txtVBISDecrSectorAddressAKM2;
    private javax.swing.JTextField txtVBISDecrSectorAddressPK;
    private javax.swing.JTextField txtVBISDecrementValue;
    private javax.swing.JTextField txtVBISDecrementValueAKM1;
    private javax.swing.JTextField txtVBISDecrementValueAKM2;
    private javax.swing.JTextField txtVBISDecrementValuePK;
    private javax.swing.JTextField txtVBISIncrBlockAddress;
    private javax.swing.JTextField txtVBISIncrBlockAddressAKM1;
    private javax.swing.JTextField txtVBISIncrBlockAddressAKM2;
    private javax.swing.JTextField txtVBISIncrBlockAddressPK;
    private javax.swing.JTextField txtVBISIncrSectorAddress;
    private javax.swing.JTextField txtVBISIncrSectorAddressAKM1;
    private javax.swing.JTextField txtVBISIncrSectorAddressAKM2;
    private javax.swing.JTextField txtVBISIncrSectorAddressPK;
    private javax.swing.JTextField txtVBISIncrementValue;
    private javax.swing.JTextField txtVBISIncrementValueAKM1;
    private javax.swing.JTextField txtVBISIncrementValueAKM2;
    private javax.swing.JTextField txtVBISIncrementValuePK;
    // End of variables declaration//GEN-END:variables
}
