Example usage for javax.swing GroupLayout DEFAULT_SIZE

List of usage examples for javax.swing GroupLayout DEFAULT_SIZE

Introduction

In this page you can find the example usage for javax.swing GroupLayout DEFAULT_SIZE.

Prototype

int DEFAULT_SIZE

To view the source code for javax.swing GroupLayout DEFAULT_SIZE.

Click Source Link

Document

Indicates the size from the component or gap should be used for a particular range value.

Usage

From source file:com.openbravo.pos.sales.JRetailPanelTicket.java

/**
 * This method is called from within the constructor to Tinitialize the
 * form. WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the FormEditor.
 *///from w  w  w .j a v a  2s .  c  o m
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    m_jPanContainer = new javax.swing.JPanel();
    m_jOptions = new javax.swing.JPanel();
    m_jButtons = new javax.swing.JPanel();
    m_jPanelScripts = new javax.swing.JPanel();
    m_jButtonsExt = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    m_jbtnScale = new javax.swing.JButton();
    m_jLogout = new javax.swing.JButton();
    m_jbtnPrintBill = new javax.swing.JButton();
    m_jSettleBill = new javax.swing.JButton();
    m_jSplitBtn = new javax.swing.JButton();
    m_jBtnDiscount = new javax.swing.JButton();
    m_jBtnCancelBill = new javax.swing.JButton();
    m_jBtnBillOnHold = new javax.swing.JButton();
    m_jPanelBag = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    m_jLblUserInfo = new javax.swing.JLabel();
    m_jUser = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    m_jTable = new javax.swing.JLabel();
    m_jLblCurrentDate = new javax.swing.JLabel();
    m_jLblTime = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    m_jLblBillNo = new javax.swing.JLabel();
    m_jPanTicket = new javax.swing.JPanel();
    jPanel10 = new javax.swing.JPanel();
    jButtonAddon = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    m_jLblItemCode = new javax.swing.JLabel();
    m_jTxtItemCode = new javax.swing.JTextField();
    m_jLblItemName = new javax.swing.JLabel();
    m_jCboItemName = new javax.swing.JComboBox();
    m_jPanelCentral = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    m_jPlus = new javax.swing.JButton();
    m_jMinus = new javax.swing.JButton();
    m_jEditLine = new javax.swing.JButton();
    m_jCalculatePromotion = new javax.swing.JButton();
    m_jAction = new javax.swing.JButton();
    m_jDelete = new javax.swing.JButton();
    m_jBtnServed = new javax.swing.JButton();
    m_jKot = new javax.swing.JButton();
    m_jEraser = new javax.swing.JButton();
    m_jContEntries = new javax.swing.JPanel();
    m_jPanEntries = new javax.swing.JPanel();
    catcontainer = new javax.swing.JPanel();
    jPanel12 = new javax.swing.JPanel();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    jPanel4 = new javax.swing.JPanel();
    jPanel7 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    m_jTxtTotalPaid = new javax.swing.JLabel();
    m_jTxtChange = new javax.swing.JLabel();
    jPanel3 = new javax.swing.JPanel();
    m_jTax = new javax.swing.JComboBox();
    m_jPor = new javax.swing.JLabel();
    m_jaddtax = new javax.swing.JToggleButton();
    jLblPrinterStatus = new javax.swing.JLabel();
    m_jKeyFactory = new javax.swing.JTextField();
    jPanel8 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    m_jSubtotalEuros1 = new javax.swing.JLabel();
    m_jLblTotalEuros4 = new javax.swing.JLabel();
    m_jTaxesEuros1 = new javax.swing.JLabel();
    m_jLblTotalEuros5 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    m_jLblTotalEuros6 = new javax.swing.JLabel();
    m_jDiscount1 = new javax.swing.JLabel();
    m_jTotalEuros = new javax.swing.JLabel();
    jTaxPanel = new javax.swing.JPanel();
    m_jServiceTaxLbl = new javax.swing.JLabel();
    m_jServiceTax = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    m_jTaxList = new javax.swing.JList();
    m_jSwachBharatLbl = new javax.swing.JLabel();
    m_jSwachBharat = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    m_jPromoDiscount = new javax.swing.JLabel();
    m_jProducts = new javax.swing.JPanel();

    setBackground(new java.awt.Color(222, 232, 231));
    setPreferredSize(new java.awt.Dimension(1024, 768));
    setLayout(new java.awt.CardLayout());

    m_jPanContainer.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanContainer.setLayout(new java.awt.BorderLayout());

    m_jOptions.setBackground(new java.awt.Color(222, 232, 231));
    m_jOptions.setLayout(new java.awt.BorderLayout());

    m_jButtons.setBackground(new java.awt.Color(222, 232, 231));
    m_jButtons.setPreferredSize(new java.awt.Dimension(4, 10));
    m_jOptions.add(m_jButtons, java.awt.BorderLayout.LINE_START);

    m_jPanelScripts.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanelScripts.setLayout(new java.awt.BorderLayout());

    m_jButtonsExt.setBackground(new java.awt.Color(222, 232, 231));
    m_jButtonsExt.setLayout(new javax.swing.BoxLayout(m_jButtonsExt, javax.swing.BoxLayout.LINE_AXIS));

    jPanel1.setBackground(new java.awt.Color(222, 232, 231));
    jPanel1.setPreferredSize(new java.awt.Dimension(620, 47));
    jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    m_jbtnScale.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/ark216.png"))); // NOI18N
    m_jbtnScale.setText(AppLocal.getIntString("button.scale")); // NOI18N
    m_jbtnScale.setFocusPainted(false);
    m_jbtnScale.setFocusable(false);
    m_jbtnScale.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jbtnScale.setRequestFocusEnabled(false);
    m_jbtnScale.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jbtnScaleActionPerformed(evt);
        }
    });
    jPanel1.add(m_jbtnScale, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 5, -1));

    m_jLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1logout.png"))); // NOI18N
    m_jLogout.setToolTipText("Logout");
    m_jLogout.setFocusable(false);
    m_jLogout.setPreferredSize(new java.awt.Dimension(40, 40));
    m_jLogout.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jLogoutActionPerformed(evt);
        }
    });
    jPanel1.add(m_jLogout, new org.netbeans.lib.awtextra.AbsoluteConstraints(575, 0, -1, -1));

    m_jbtnPrintBill.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Print-Bill.png"))); // NOI18N
    m_jbtnPrintBill.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jbtnPrintBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jbtnPrintBillActionPerformed(evt);
        }
    });
    jPanel1.add(m_jbtnPrintBill, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 0, -1, -1));

    m_jSettleBill.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Settle-Bill.png"))); // NOI18N
    m_jSettleBill.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jSettleBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jSettleBillActionPerformed(evt);
        }
    });
    jPanel1.add(m_jSettleBill, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 0, -1, -1));

    m_jSplitBtn.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/190-40-BUTTON.png"))); // NOI18N
    m_jSplitBtn.setMnemonic('f');
    m_jSplitBtn.setFocusPainted(false);
    m_jSplitBtn.setFocusable(false);
    m_jSplitBtn.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jSplitBtn.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jSplitBtn.setRequestFocusEnabled(false);
    m_jSplitBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jSplitBtnActionPerformed(evt);
        }
    });
    jPanel1.add(m_jSplitBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(195, 0, -1, -1));

    m_jBtnDiscount.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/bill-discount.png"))); // NOI18N
    m_jBtnDiscount.setMnemonic('i');
    m_jBtnDiscount.setToolTipText("Add Discount");
    m_jBtnDiscount.setFocusPainted(false);
    m_jBtnDiscount.setFocusable(false);
    m_jBtnDiscount.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jBtnDiscount.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jBtnDiscount.setRequestFocusEnabled(false);
    m_jBtnDiscount.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnDiscountActionPerformed(evt);
        }
    });
    jPanel1.add(m_jBtnDiscount, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 0, -1, -1));

    m_jBtnCancelBill.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/pos/templates/can-bill.png"))); // NOI18N
    m_jBtnCancelBill.setToolTipText("Cancel the Bill");
    m_jBtnCancelBill.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jBtnCancelBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnCancelBillActionPerformed(evt);
        }
    });
    jPanel1.add(m_jBtnCancelBill, new org.netbeans.lib.awtextra.AbsoluteConstraints(385, 0, -1, -1));

    m_jBtnBillOnHold.setBackground(new java.awt.Color(130, 130, 65));
    m_jBtnBillOnHold.setForeground(new java.awt.Color(153, 153, 136));
    m_jBtnBillOnHold
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/HOLD-BILL.png"))); // NOI18N
    m_jBtnBillOnHold.setToolTipText("");
    m_jBtnBillOnHold.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jBtnBillOnHold.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnBillOnHoldActionPerformed(evt);
        }
    });
    jPanel1.add(m_jBtnBillOnHold, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 0, 90, 40));

    m_jButtonsExt.add(jPanel1);

    m_jPanelScripts.add(m_jButtonsExt, java.awt.BorderLayout.LINE_END);

    m_jOptions.add(m_jPanelScripts, java.awt.BorderLayout.LINE_END);

    m_jPanelBag.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanelBag.setFocusable(false);
    m_jPanelBag.setPreferredSize(new java.awt.Dimension(800, 35));
    m_jPanelBag.setRequestFocusEnabled(false);
    m_jPanelBag.setLayout(new java.awt.BorderLayout());
    m_jOptions.add(m_jPanelBag, java.awt.BorderLayout.CENTER);

    jPanel6.setBackground(new java.awt.Color(80, 102, 116));
    jPanel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    jPanel6.setPreferredSize(new java.awt.Dimension(1024, 90));
    jPanel6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLabel3.setBackground(new java.awt.Color(222, 232, 231));
    jLabel3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel3.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/openbravo/pos/templates/1header-habanero.png"))); // NOI18N
    jLabel3.setAutoscrolls(true);
    jLabel3.setFocusable(false);
    jLabel3.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
    jLabel3.setMaximumSize(new java.awt.Dimension(1450, 61));
    jLabel3.setMinimumSize(new java.awt.Dimension(1024, 61));
    jLabel3.setPreferredSize(new java.awt.Dimension(1024, 45));
    jLabel3.setRequestFocusEnabled(false);
    jLabel3.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
    jPanel6.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1551, -1));

    m_jLblUserInfo.setBackground(new java.awt.Color(80, 102, 160));
    m_jLblUserInfo.setForeground(new java.awt.Color(255, 255, 255));
    m_jLblUserInfo.setText("   LOGGED IN USER:");
    m_jLblUserInfo.setFocusable(false);
    m_jLblUserInfo.setPreferredSize(new java.awt.Dimension(340, 16));
    m_jLblUserInfo.setRequestFocusEnabled(false);
    jPanel6.add(m_jLblUserInfo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 40, 140, 50));

    m_jUser.setForeground(new java.awt.Color(252, 248, 0));
    m_jUser.setText("jLabel6");
    jPanel6.add(m_jUser, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 40, 70, 50));

    jLabel6.setForeground(new java.awt.Color(255, 255, 255));
    jLabel6.setText("Table:");
    jPanel6.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 40, 50, 50));

    m_jTable.setForeground(new java.awt.Color(252, 248, 0));
    m_jTable.setText("jLabel9");
    jPanel6.add(m_jTable, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 40, 60, 50));

    m_jLblCurrentDate.setBackground(new java.awt.Color(80, 102, 160));
    m_jLblCurrentDate.setForeground(new java.awt.Color(255, 255, 255));
    m_jLblCurrentDate.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jLblCurrentDate
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/Date-icon.png"))); // NOI18N
    m_jLblCurrentDate.setFocusable(false);
    m_jLblCurrentDate.setPreferredSize(new java.awt.Dimension(300, 16));
    m_jLblCurrentDate.setRequestFocusEnabled(false);
    jPanel6.add(m_jLblCurrentDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 45, 180, 45));

    m_jLblTime.setBackground(new java.awt.Color(80, 102, 160));
    m_jLblTime.setForeground(new java.awt.Color(255, 255, 255));
    m_jLblTime.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jLblTime
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/Clock-icon.png"))); // NOI18N
    m_jLblTime.setText(
            "                                                                                       jLabel2");
    m_jLblTime.setFocusable(false);
    m_jLblTime.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    m_jLblTime.setPreferredSize(new java.awt.Dimension(300, 16));
    m_jLblTime.setRequestFocusEnabled(false);
    jPanel6.add(m_jLblTime, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 45, 230, 45));

    jLabel1.setForeground(new java.awt.Color(255, 255, 255));
    jLabel1.setText("Bill No:");
    jPanel6.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 40, 50, 50));

    m_jLblBillNo.setForeground(new java.awt.Color(252, 248, 0));
    jPanel6.add(m_jLblBillNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 40, 90, 50));

    m_jOptions.add(jPanel6, java.awt.BorderLayout.NORTH);

    m_jPanContainer.add(m_jOptions, java.awt.BorderLayout.NORTH);

    m_jPanTicket.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanTicket.setLayout(new java.awt.BorderLayout());

    jPanel10.setBackground(new java.awt.Color(222, 232, 231));
    jPanel10.setPreferredSize(new java.awt.Dimension(803, 48));
    jPanel10.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jButtonAddon
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Add-on.png"))); // NOI18N
    jButtonAddon.setPreferredSize(new java.awt.Dimension(90, 40));
    jButtonAddon.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonAddonActionPerformed(evt);
        }
    });
    jPanel10.add(jButtonAddon, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 0, 90, 40));

    jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Category.png"))); // NOI18N
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });
    jPanel10.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(790, 0, 90, 40));

    jButton3.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/subcategory.png"))); // NOI18N
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });
    jPanel10.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(890, 0, 90, 40));

    m_jLblItemCode.setText("ITEM CODE");
    jPanel10.add(m_jLblItemCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 8, 90, 20));

    m_jTxtItemCode.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)));
    m_jTxtItemCode.setMinimumSize(new java.awt.Dimension(123, 20));
    m_jTxtItemCode.setPreferredSize(new java.awt.Dimension(123, 20));
    m_jTxtItemCode.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jTxtItemCodeActionPerformed(evt);
        }
    });
    jPanel10.add(m_jTxtItemCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 10, -1, 20));

    m_jLblItemName.setText("ITEM NAME");
    jPanel10.add(m_jLblItemName, new org.netbeans.lib.awtextra.AbsoluteConstraints(240, 10, -1, 20));

    m_jCboItemName.setEditable(true);
    m_jCboItemName.setAutoscrolls(true);
    m_jCboItemName.setMaximumSize(new java.awt.Dimension(123, 20));
    m_jCboItemName.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            m_jCboItemNameItemStateChanged(evt);
        }
    });
    m_jCboItemName.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jCboItemNameActionPerformed(evt);
        }
    });
    jPanel10.add(m_jCboItemName, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 10, 340, -1));

    m_jPanTicket.add(jPanel10, java.awt.BorderLayout.PAGE_START);

    m_jPanelCentral.setFocusable(false);
    m_jPanelCentral.setRequestFocusEnabled(false);
    m_jPanelCentral.setLayout(new java.awt.BorderLayout());

    jPanel5.setLayout(new java.awt.BorderLayout());

    jPanel2.setBackground(new java.awt.Color(222, 232, 231));
    jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 5));
    jPanel2.setMinimumSize(new java.awt.Dimension(66, 338));
    jPanel2.setPreferredSize(new java.awt.Dimension(61, 400));

    m_jPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TPlus.png"))); // NOI18N
    m_jPlus.setToolTipText("Increase selected item quantity by one");
    m_jPlus.setFocusPainted(false);
    m_jPlus.setFocusable(false);
    m_jPlus.setMaximumSize(new java.awt.Dimension(51, 42));
    m_jPlus.setMinimumSize(new java.awt.Dimension(51, 42));
    m_jPlus.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jPlus.setRequestFocusEnabled(false);
    m_jPlus.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jPlusActionPerformed(evt);
        }
    });

    m_jMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TMinus.png"))); // NOI18N
    m_jMinus.setToolTipText("Decrease selected item's quantity by one");
    m_jMinus.setFocusPainted(false);
    m_jMinus.setFocusable(false);
    m_jMinus.setMaximumSize(new java.awt.Dimension(51, 42));
    m_jMinus.setMinimumSize(new java.awt.Dimension(51, 42));
    m_jMinus.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jMinus.setRequestFocusEnabled(false);
    m_jMinus.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jMinusActionPerformed(evt);
        }
    });

    m_jEditLine.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TEdit.png"))); // NOI18N
    m_jEditLine.setMnemonic('e');
    m_jEditLine.setToolTipText("Edit Properties of selected item");
    m_jEditLine.setFocusPainted(false);
    m_jEditLine.setFocusable(false);
    m_jEditLine.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jEditLine.setRequestFocusEnabled(false);
    m_jEditLine.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jEditLineActionPerformed(evt);
        }
    });

    m_jCalculatePromotion
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/pramo.png"))); // NOI18N
    m_jCalculatePromotion.setMnemonic('f');
    m_jCalculatePromotion.setFocusPainted(false);
    m_jCalculatePromotion.setFocusable(false);
    m_jCalculatePromotion.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jCalculatePromotion.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jCalculatePromotion.setRequestFocusEnabled(false);
    m_jCalculatePromotion.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jCalculatePromotionActionPerformed(evt);
        }
    });

    m_jAction.setBorder(null);
    m_jAction.setBorderPainted(false);
    m_jAction.setPreferredSize(new java.awt.Dimension(10, 2));
    m_jAction.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jActionActionPerformed(evt);
        }
    });

    m_jDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/Tclose.png"))); // NOI18N
    m_jDelete.setMnemonic('d');
    m_jDelete.setToolTipText("Remove total quantity of selected item");
    m_jDelete.setFocusPainted(false);
    m_jDelete.setFocusable(false);
    m_jDelete.setMinimumSize(new java.awt.Dimension(51, 42));
    m_jDelete.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jDelete.setRequestFocusEnabled(false);
    m_jDelete.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jDeleteActionPerformed(evt);
        }
    });

    m_jBtnServed.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/servedsymbol.png"))); // NOI18N
    m_jBtnServed.setToolTipText("Serve Selected Item");
    m_jBtnServed.setPreferredSize(new java.awt.Dimension(91, 73));
    m_jBtnServed.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnServedActionPerformed(evt);
        }
    });

    m_jKot.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TKOT.png"))); // NOI18N
    m_jKot.setToolTipText("Send All Fresh Items to Kitchen");
    m_jKot.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jKot.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnKotActionPerformed(evt);
        }
    });

    m_jEraser.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TDelete.png"))); // NOI18N
    m_jEraser.setMnemonic('i');
    m_jEraser.setToolTipText("Clear All Non KOT Items");
    m_jEraser.setFocusPainted(false);
    m_jEraser.setFocusable(false);
    m_jEraser.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jEraser.setRequestFocusEnabled(false);
    m_jEraser.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jEraserActionPerformed(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup().add(168, 168, 168).add(m_jAction,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(m_jBtnServed, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jEraser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jKot, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jCalculatePromotion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jEditLine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jDelete, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jMinus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
            .add(m_jPlus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup()
                    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel2Layout.createSequentialGroup().add(242, 242, 242)
                                    .add(m_jAction, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .add(jPanel2Layout.createSequentialGroup()
                                    .add(m_jPlus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(3, 3, 3)
                                    .add(m_jMinus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(3, 3, 3)
                                    .add(m_jDelete, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(2, 2, 2)
                                    .add(m_jEditLine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(3, 3, 3)
                                    .add(m_jCalculatePromotion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 7,
                                            Short.MAX_VALUE)
                                    .add(m_jBtnServed, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)))
                    .add(m_jKot, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(3, 3, 3).add(m_jEraser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(36, 36, 36)));

    jPanel5.add(jPanel2, java.awt.BorderLayout.NORTH);

    m_jPanelCentral.add(jPanel5, java.awt.BorderLayout.LINE_END);

    m_jPanTicket.add(m_jPanelCentral, java.awt.BorderLayout.CENTER);

    m_jContEntries.setFocusable(false);
    m_jContEntries.setPreferredSize(new java.awt.Dimension(501, 500));
    m_jContEntries.setRequestFocusEnabled(false);
    m_jContEntries.setLayout(new java.awt.BorderLayout());

    m_jPanEntries.setMinimumSize(new java.awt.Dimension(508, 500));
    m_jPanEntries.setPreferredSize(new java.awt.Dimension(495, 525));
    m_jPanEntries.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    catcontainer.setPreferredSize(new java.awt.Dimension(300, 200));
    catcontainer.setLayout(new java.awt.BorderLayout());
    m_jPanEntries.add(catcontainer, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 508, 510));

    m_jContEntries.add(m_jPanEntries, java.awt.BorderLayout.PAGE_START);

    m_jPanTicket.add(m_jContEntries, java.awt.BorderLayout.LINE_END);

    jPanel12.setBackground(new java.awt.Color(222, 232, 231));
    jPanel12.setFocusable(false);
    jPanel12.setPreferredSize(new java.awt.Dimension(600, 5));
    jPanel12.setRequestFocusEnabled(false);
    jPanel12.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLayeredPane1.setPreferredSize(new java.awt.Dimension(300, 402));
    jPanel12.add(jLayeredPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, -500, 989, 509));

    m_jPanTicket.add(jPanel12, java.awt.BorderLayout.PAGE_END);

    m_jPanContainer.add(m_jPanTicket, java.awt.BorderLayout.CENTER);

    jPanel4.setBackground(new java.awt.Color(222, 232, 231));
    jPanel4.setPreferredSize(new java.awt.Dimension(1024, 210));
    jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jPanel7.setBorder(
            javax.swing.BorderFactory.createMatteBorder(0, 1, 1, 1, new java.awt.Color(204, 204, 204)));
    jPanel7.setMaximumSize(new java.awt.Dimension(700, 158));
    jPanel7.setPreferredSize(new java.awt.Dimension(320, 158));

    jLabel7.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    jLabel7.setText("TOTAL PAID");

    jLabel8.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    jLabel8.setText("CHANGE");

    m_jTxtTotalPaid.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    m_jTxtTotalPaid.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jTxtTotalPaid.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTxtTotalPaid.setFocusable(false);
    m_jTxtTotalPaid.setOpaque(true);
    m_jTxtTotalPaid.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTxtTotalPaid.setRequestFocusEnabled(false);

    m_jTxtChange.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    m_jTxtChange.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jTxtChange.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTxtChange.setFocusable(false);
    m_jTxtChange.setOpaque(true);
    m_jTxtChange.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTxtChange.setRequestFocusEnabled(false);

    jPanel3.setPreferredSize(new java.awt.Dimension(228, 100));

    m_jTax.setFocusable(false);
    m_jTax.setRequestFocusEnabled(false);

    m_jPor.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jPor.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jPor.setFocusable(false);
    m_jPor.setOpaque(true);
    m_jPor.setPreferredSize(new java.awt.Dimension(22, 22));
    m_jPor.setRequestFocusEnabled(false);

    m_jaddtax.setText("+");
    m_jaddtax.setFocusPainted(false);
    m_jaddtax.setFocusable(false);
    m_jaddtax.setRequestFocusEnabled(false);

    jLblPrinterStatus.setForeground(new java.awt.Color(255, 0, 0));

    m_jKeyFactory.setBackground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
    m_jKeyFactory.setForeground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
    m_jKeyFactory.setBorder(null);
    m_jKeyFactory.setCaretColor(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
    m_jKeyFactory.setPreferredSize(new java.awt.Dimension(4, 4));
    m_jKeyFactory.setRequestFocusEnabled(false);
    m_jKeyFactory.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            m_jKeyFactoryKeyTyped(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel3Layout.createSequentialGroup().addContainerGap()
                                    .add(m_jKeyFactory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 239,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(65, 65, 65).add(jLblPrinterStatus,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 68,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel3Layout.createSequentialGroup().add(20, 20, 20)
                                    .add(m_jaddtax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(m_jPor,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 12,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel3Layout.createSequentialGroup().addContainerGap().add(m_jTax,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel3Layout.createSequentialGroup().add(6, 6, 6).add(jLblPrinterStatus,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(m_jKeyFactory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 11,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(m_jTax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(21, 21, 21)
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(m_jPor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 8,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(m_jaddtax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel7Layout.createSequentialGroup().add(10, 10, 10)
                    .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel7Layout.createSequentialGroup()
                                    .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 126,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(3, 3, 3)
                                    .add(m_jTxtTotalPaid, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 120,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel7Layout.createSequentialGroup()
                                    .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(19, 19, 19).add(m_jTxtChange,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 120,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
            .add(org.jdesktop.layout.GroupLayout.TRAILING,
                    jPanel7Layout.createSequentialGroup()
                            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 392,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap()));
    jPanel7Layout
            .setVerticalGroup(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel7Layout.createSequentialGroup()
                            .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 89,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(270, 270, 270)
                            .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jTxtTotalPaid, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(10, 10, 10)
                            .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jTxtChange, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));

    jPanel4.add(jPanel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(1325, 1, 170, 160));

    jPanel8.setBackground(new java.awt.Color(255, 255, 255));
    jPanel8.setBorder(
            javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(204, 204, 204)));
    jPanel8.setPreferredSize(new java.awt.Dimension(1551, 193));
    jPanel8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel2.setText("Bill Details");
    jPanel8.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(15, 12, 188, -1));

    m_jSubtotalEuros1.setBackground(new java.awt.Color(255, 255, 255));
    m_jSubtotalEuros1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    m_jSubtotalEuros1.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jSubtotalEuros1.setFocusable(false);
    m_jSubtotalEuros1.setOpaque(true);
    m_jSubtotalEuros1.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jSubtotalEuros1.setRequestFocusEnabled(false);
    jPanel8.add(m_jSubtotalEuros1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 40, 80, 23));

    m_jLblTotalEuros4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    m_jLblTotalEuros4.setText("SUB TOTAL");
    jPanel8.add(m_jLblTotalEuros4, new org.netbeans.lib.awtextra.AbsoluteConstraints(11, 37, 94, 23));

    m_jTaxesEuros1.setBackground(new java.awt.Color(255, 255, 255));
    m_jTaxesEuros1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    m_jTaxesEuros1.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTaxesEuros1.setFocusable(false);
    m_jTaxesEuros1.setOpaque(true);
    m_jTaxesEuros1.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTaxesEuros1.setRequestFocusEnabled(false);
    jPanel8.add(m_jTaxesEuros1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 70, 80, 23));

    m_jLblTotalEuros5.setBackground(new java.awt.Color(255, 255, 255));
    m_jLblTotalEuros5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    m_jLblTotalEuros5.setText("TAXES");
    jPanel8.add(m_jLblTotalEuros5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 60, 23));

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel5.setText("DISCOUNT");
    jPanel8.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, 80, 23));

    m_jLblTotalEuros6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    m_jLblTotalEuros6.setText("TOTAL SALES");
    jPanel8.add(m_jLblTotalEuros6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 160, 80, 20));

    m_jDiscount1.setBackground(new java.awt.Color(255, 255, 255));
    m_jDiscount1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    m_jDiscount1.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jDiscount1.setFocusable(false);
    m_jDiscount1.setOpaque(true);
    m_jDiscount1.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jDiscount1.setRequestFocusEnabled(false);
    jPanel8.add(m_jDiscount1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 100, 80, 23));

    m_jTotalEuros.setBackground(new java.awt.Color(255, 255, 255));
    m_jTotalEuros.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jTotalEuros.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTotalEuros.setFocusable(false);
    m_jTotalEuros.setOpaque(true);
    m_jTotalEuros.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTotalEuros.setRequestFocusEnabled(false);
    jPanel8.add(m_jTotalEuros, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 160, 80, 23));

    jTaxPanel.setBackground(new java.awt.Color(255, 255, 255));
    jTaxPanel.setPreferredSize(new java.awt.Dimension(202, 157));
    jTaxPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    m_jServiceTaxLbl.setText("SERVICE TAX");
    jTaxPanel.add(m_jServiceTaxLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 40, 100, 23));

    m_jServiceTax.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jTaxPanel.add(m_jServiceTax, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 40, 70, 23));

    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel4.setText("Tax Breakup");
    jTaxPanel.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 11, 194, -1));

    jScrollPane1.setBorder(null);
    jScrollPane1.setViewportView(m_jTaxList);

    jTaxPanel.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 37, 200, 140));

    m_jSwachBharatLbl.setText("SWACHH BHARAT TAX");
    jTaxPanel.add(m_jSwachBharatLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 130, 20));

    m_jSwachBharat.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jTaxPanel.add(m_jSwachBharat, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 70, 70, 20));

    jPanel8.add(jTaxPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 1, -1, 178));

    jLabel9.setText("PROMO DISCOUNT");
    jPanel8.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, 120, 20));

    m_jPromoDiscount.setBackground(new java.awt.Color(255, 255, 255));
    m_jPromoDiscount.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jPromoDiscount.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jPromoDiscount.setFocusable(false);
    m_jPromoDiscount.setOpaque(true);
    m_jPromoDiscount.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jPromoDiscount.setRequestFocusEnabled(false);
    jPanel8.add(m_jPromoDiscount, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 130, 80, 23));

    jPanel4.add(jPanel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(7, 1, 434, -1));

    m_jProducts.setBackground(new java.awt.Color(255, 255, 255));
    m_jProducts.setLayout(new java.awt.CardLayout());
    jPanel4.add(m_jProducts, new org.netbeans.lib.awtextra.AbsoluteConstraints(447, 1, 551, 190));

    m_jPanContainer.add(jPanel4, java.awt.BorderLayout.SOUTH);

    add(m_jPanContainer, "ticket");
}

From source file:com.openbravo.pos.sales.JRetailPanelTakeAway.java

/**
 * This method is called from within the constructor to Tinitialize the
 * form. WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the FormEditor.
 *//*from ww  w .  java 2  s  .  c  o  m*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    m_jPanContainer = new javax.swing.JPanel();
    m_jOptions = new javax.swing.JPanel();
    m_jButtons = new javax.swing.JPanel();
    m_jPanelScripts = new javax.swing.JPanel();
    m_jButtonsExt = new javax.swing.JPanel();
    jPanel1 = new javax.swing.JPanel();
    m_jbtnScale = new javax.swing.JButton();
    m_jLogout = new javax.swing.JButton();
    m_jbtnPrintBill = new javax.swing.JButton();
    m_jSettleBill = new javax.swing.JButton();
    m_jSplitBtn = new javax.swing.JButton();
    m_jBtnCancelBill = new javax.swing.JButton();
    m_jBtnBillOnHold = new javax.swing.JButton();
    m_jBtnDiscount = new javax.swing.JButton();
    m_jPanelBag = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    jLabel3 = new javax.swing.JLabel();
    m_jLblUserInfo = new javax.swing.JLabel();
    m_jUser = new javax.swing.JLabel();
    m_jLblCurrentDate = new javax.swing.JLabel();
    m_jLblTime = new javax.swing.JLabel();
    jLabel1 = new javax.swing.JLabel();
    m_jLblBillNo = new javax.swing.JLabel();
    m_jPanTicket = new javax.swing.JPanel();
    jPanel10 = new javax.swing.JPanel();
    jButtonAddon = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    m_jLblItemCode = new javax.swing.JLabel();
    m_jTxtItemCode = new javax.swing.JTextField();
    m_jLblItemName = new javax.swing.JLabel();
    m_jCboItemName = new javax.swing.JComboBox();
    m_jPanelCentral = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    m_jPlus = new javax.swing.JButton();
    m_jMinus = new javax.swing.JButton();
    m_jEditLine = new javax.swing.JButton();
    m_jCalculatePromotion = new javax.swing.JButton();
    m_jAction = new javax.swing.JButton();
    m_jDelete = new javax.swing.JButton();
    m_jKot = new javax.swing.JButton();
    m_jBtnServed = new javax.swing.JButton();
    m_jEraser = new javax.swing.JButton();
    m_jContEntries = new javax.swing.JPanel();
    m_jPanEntries = new javax.swing.JPanel();
    catcontainer = new javax.swing.JPanel();
    jPanel12 = new javax.swing.JPanel();
    jLayeredPane1 = new javax.swing.JLayeredPane();
    jPanel4 = new javax.swing.JPanel();
    jPanel7 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    m_jTxtTotalPaid = new javax.swing.JLabel();
    m_jTxtChange = new javax.swing.JLabel();
    jPanel3 = new javax.swing.JPanel();
    m_jTax = new javax.swing.JComboBox();
    m_jPor = new javax.swing.JLabel();
    m_jaddtax = new javax.swing.JToggleButton();
    jLblPrinterStatus = new javax.swing.JLabel();
    m_jKeyFactory = new javax.swing.JTextField();
    jPanel8 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    m_jSubtotalEuros1 = new javax.swing.JLabel();
    m_jLblTotalEuros4 = new javax.swing.JLabel();
    m_jTaxesEuros1 = new javax.swing.JLabel();
    m_jLblTotalEuros5 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    m_jLblTotalEuros6 = new javax.swing.JLabel();
    m_jDiscount1 = new javax.swing.JLabel();
    m_jTotalEuros = new javax.swing.JLabel();
    jTaxPanel = new javax.swing.JPanel();
    m_jServiceTaxLbl = new javax.swing.JLabel();
    m_jServiceTax = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    m_jTaxList = new javax.swing.JList();
    m_jSwachBharatLbl = new javax.swing.JLabel();
    m_jSwachBharat = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    m_jPromoDiscount = new javax.swing.JLabel();
    m_jProducts = new javax.swing.JPanel();

    setBackground(new java.awt.Color(222, 232, 231));
    setPreferredSize(new java.awt.Dimension(1024, 768));
    setLayout(new java.awt.CardLayout());

    m_jPanContainer.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanContainer.setLayout(new java.awt.BorderLayout());

    m_jOptions.setBackground(new java.awt.Color(222, 232, 231));
    m_jOptions.setLayout(new java.awt.BorderLayout());

    m_jButtons.setBackground(new java.awt.Color(222, 232, 231));
    m_jButtons.setPreferredSize(new java.awt.Dimension(4, 10));
    m_jOptions.add(m_jButtons, java.awt.BorderLayout.LINE_START);

    m_jPanelScripts.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanelScripts.setLayout(new java.awt.BorderLayout());

    m_jButtonsExt.setBackground(new java.awt.Color(222, 232, 231));
    m_jButtonsExt.setLayout(new javax.swing.BoxLayout(m_jButtonsExt, javax.swing.BoxLayout.LINE_AXIS));

    jPanel1.setBackground(new java.awt.Color(222, 232, 231));
    jPanel1.setPreferredSize(new java.awt.Dimension(620, 47));
    jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    m_jbtnScale.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/ark216.png"))); // NOI18N
    m_jbtnScale.setText(AppLocal.getIntString("button.scale")); // NOI18N
    m_jbtnScale.setFocusPainted(false);
    m_jbtnScale.setFocusable(false);
    m_jbtnScale.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jbtnScale.setRequestFocusEnabled(false);
    m_jbtnScale.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jbtnScaleActionPerformed(evt);
        }
    });
    jPanel1.add(m_jbtnScale, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 5, -1));

    m_jLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1logout.png"))); // NOI18N
    m_jLogout.setToolTipText("Logout");
    m_jLogout.setFocusable(false);
    m_jLogout.setPreferredSize(new java.awt.Dimension(40, 40));
    m_jLogout.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jLogoutActionPerformed(evt);
        }
    });
    jPanel1.add(m_jLogout, new org.netbeans.lib.awtextra.AbsoluteConstraints(575, 0, -1, -1));

    m_jbtnPrintBill.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Print-Bill.png"))); // NOI18N
    m_jbtnPrintBill.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jbtnPrintBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jbtnPrintBillActionPerformed(evt);
        }
    });
    jPanel1.add(m_jbtnPrintBill, new org.netbeans.lib.awtextra.AbsoluteConstraints(385, 0, -1, -1));

    m_jSettleBill.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Settle-Bill.png"))); // NOI18N
    m_jSettleBill.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jSettleBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jSettleBillActionPerformed(evt);
        }
    });
    jPanel1.add(m_jSettleBill, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 0, -1, -1));

    m_jSplitBtn.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/190-40-BUTTON.png"))); // NOI18N
    m_jSplitBtn.setMnemonic('f');
    m_jSplitBtn.setFocusPainted(false);
    m_jSplitBtn.setFocusable(false);
    m_jSplitBtn.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jSplitBtn.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jSplitBtn.setRequestFocusEnabled(false);
    m_jSplitBtn.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jSplitBtnActionPerformed(evt);
        }
    });
    jPanel1.add(m_jSplitBtn, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, -1, -1));

    m_jBtnCancelBill.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/pos/templates/can-bill.png"))); // NOI18N
    m_jBtnCancelBill.setToolTipText("Cancel the Bill");
    m_jBtnCancelBill.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jBtnCancelBill.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnCancelBillActionPerformed(evt);
        }
    });
    jPanel1.add(m_jBtnCancelBill, new org.netbeans.lib.awtextra.AbsoluteConstraints(180, 0, -1, -1));

    m_jBtnBillOnHold.setBackground(new java.awt.Color(130, 130, 65));
    m_jBtnBillOnHold.setForeground(new java.awt.Color(153, 153, 136));
    m_jBtnBillOnHold
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/HOLD-BILL.png"))); // NOI18N
    m_jBtnBillOnHold.setToolTipText("");
    m_jBtnBillOnHold.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jBtnBillOnHold.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnBillOnHoldActionPerformed(evt);
        }
    });
    jPanel1.add(m_jBtnBillOnHold, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 0, 90, 40));

    m_jBtnDiscount.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/bill-discount.png"))); // NOI18N
    m_jBtnDiscount.setMnemonic('i');
    m_jBtnDiscount.setToolTipText("Add Discount");
    m_jBtnDiscount.setFocusPainted(false);
    m_jBtnDiscount.setFocusable(false);
    m_jBtnDiscount.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jBtnDiscount.setPreferredSize(new java.awt.Dimension(90, 40));
    m_jBtnDiscount.setRequestFocusEnabled(false);
    m_jBtnDiscount.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnDiscountActionPerformed(evt);
        }
    });
    jPanel1.add(m_jBtnDiscount, new org.netbeans.lib.awtextra.AbsoluteConstraints(290, 0, -1, -1));

    m_jButtonsExt.add(jPanel1);

    m_jPanelScripts.add(m_jButtonsExt, java.awt.BorderLayout.LINE_END);

    m_jOptions.add(m_jPanelScripts, java.awt.BorderLayout.LINE_END);

    m_jPanelBag.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanelBag.setFocusable(false);
    m_jPanelBag.setPreferredSize(new java.awt.Dimension(800, 35));
    m_jPanelBag.setRequestFocusEnabled(false);
    m_jPanelBag.setLayout(new java.awt.BorderLayout());
    m_jOptions.add(m_jPanelBag, java.awt.BorderLayout.CENTER);

    jPanel6.setBackground(new java.awt.Color(80, 102, 116));
    jPanel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
    jPanel6.setPreferredSize(new java.awt.Dimension(1024, 90));
    jPanel6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLabel3.setBackground(new java.awt.Color(222, 232, 231));
    jLabel3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
    jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel3.setIcon(new javax.swing.ImageIcon(
            getClass().getResource("/com/openbravo/pos/templates/1header-habanero.png"))); // NOI18N
    jLabel3.setAutoscrolls(true);
    jLabel3.setFocusable(false);
    jLabel3.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);
    jLabel3.setMaximumSize(new java.awt.Dimension(1450, 61));
    jLabel3.setMinimumSize(new java.awt.Dimension(1024, 61));
    jLabel3.setPreferredSize(new java.awt.Dimension(1024, 45));
    jLabel3.setRequestFocusEnabled(false);
    jLabel3.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
    jPanel6.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1551, -1));

    m_jLblUserInfo.setBackground(new java.awt.Color(80, 102, 160));
    m_jLblUserInfo.setForeground(new java.awt.Color(255, 255, 255));
    m_jLblUserInfo.setText("   LOGGED IN USER:");
    m_jLblUserInfo.setFocusable(false);
    m_jLblUserInfo.setPreferredSize(new java.awt.Dimension(340, 16));
    m_jLblUserInfo.setRequestFocusEnabled(false);
    jPanel6.add(m_jLblUserInfo, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 40, 140, 50));

    m_jUser.setForeground(new java.awt.Color(252, 248, 0));
    m_jUser.setText("jLabel6");
    jPanel6.add(m_jUser, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 40, 70, 50));

    m_jLblCurrentDate.setBackground(new java.awt.Color(80, 102, 160));
    m_jLblCurrentDate.setForeground(new java.awt.Color(255, 255, 255));
    m_jLblCurrentDate.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jLblCurrentDate
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/Date-icon.png"))); // NOI18N
    m_jLblCurrentDate.setFocusable(false);
    m_jLblCurrentDate.setPreferredSize(new java.awt.Dimension(300, 16));
    m_jLblCurrentDate.setRequestFocusEnabled(false);
    jPanel6.add(m_jLblCurrentDate, new org.netbeans.lib.awtextra.AbsoluteConstraints(590, 45, 180, 45));

    m_jLblTime.setBackground(new java.awt.Color(80, 102, 160));
    m_jLblTime.setForeground(new java.awt.Color(255, 255, 255));
    m_jLblTime.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jLblTime
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/Clock-icon.png"))); // NOI18N
    m_jLblTime.setText(
            "                                                                                       jLabel2");
    m_jLblTime.setFocusable(false);
    m_jLblTime.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    m_jLblTime.setPreferredSize(new java.awt.Dimension(300, 16));
    m_jLblTime.setRequestFocusEnabled(false);
    jPanel6.add(m_jLblTime, new org.netbeans.lib.awtextra.AbsoluteConstraints(780, 45, 230, 45));

    jLabel1.setForeground(new java.awt.Color(255, 255, 255));
    jLabel1.setText("Bill No:");
    jPanel6.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(360, 40, 50, 50));

    m_jLblBillNo.setForeground(new java.awt.Color(252, 248, 0));
    jPanel6.add(m_jLblBillNo, new org.netbeans.lib.awtextra.AbsoluteConstraints(420, 40, 90, 50));

    m_jOptions.add(jPanel6, java.awt.BorderLayout.NORTH);

    m_jPanContainer.add(m_jOptions, java.awt.BorderLayout.NORTH);

    m_jPanTicket.setBackground(new java.awt.Color(222, 232, 231));
    m_jPanTicket.setLayout(new java.awt.BorderLayout());

    jPanel10.setBackground(new java.awt.Color(222, 232, 231));
    jPanel10.setPreferredSize(new java.awt.Dimension(803, 48));
    jPanel10.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jButtonAddon
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Add-on.png"))); // NOI18N
    jButtonAddon.setPreferredSize(new java.awt.Dimension(90, 40));
    jButtonAddon.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonAddonActionPerformed(evt);
        }
    });
    jPanel10.add(jButtonAddon, new org.netbeans.lib.awtextra.AbsoluteConstraints(793, 2, 90, 40));

    jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/1Category.png"))); // NOI18N
    jButton2.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton2ActionPerformed(evt);
        }
    });
    jPanel10.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(888, 2, 90, 40));

    jButton3.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/subcategory.png"))); // NOI18N
    jButton3.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton3ActionPerformed(evt);
        }
    });
    jPanel10.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(983, 2, 90, 40));

    m_jLblItemCode.setText("ITEM CODE");
    jPanel10.add(m_jLblItemCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 8, 90, 20));

    m_jTxtItemCode.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1)));
    m_jTxtItemCode.setMinimumSize(new java.awt.Dimension(123, 20));
    m_jTxtItemCode.setPreferredSize(new java.awt.Dimension(123, 20));
    m_jTxtItemCode.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jTxtItemCodeActionPerformed(evt);
        }
    });
    jPanel10.add(m_jTxtItemCode, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 10, -1, 20));

    m_jLblItemName.setText("ITEM NAME");
    jPanel10.add(m_jLblItemName, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 10, -1, 20));

    m_jCboItemName.setEditable(true);
    m_jCboItemName.setAutoscrolls(true);
    m_jCboItemName.setMaximumSize(new java.awt.Dimension(123, 20));
    m_jCboItemName.addItemListener(new java.awt.event.ItemListener() {
        public void itemStateChanged(java.awt.event.ItemEvent evt) {
            m_jCboItemNameItemStateChanged(evt);
        }
    });
    m_jCboItemName.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jCboItemNameActionPerformed(evt);
        }
    });
    jPanel10.add(m_jCboItemName, new org.netbeans.lib.awtextra.AbsoluteConstraints(370, 10, 340, -1));

    m_jPanTicket.add(jPanel10, java.awt.BorderLayout.PAGE_START);

    m_jPanelCentral.setFocusable(false);
    m_jPanelCentral.setRequestFocusEnabled(false);
    m_jPanelCentral.setLayout(new java.awt.BorderLayout());

    jPanel5.setLayout(new java.awt.BorderLayout());

    jPanel2.setBackground(new java.awt.Color(222, 232, 231));
    jPanel2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 5));
    jPanel2.setMinimumSize(new java.awt.Dimension(66, 338));
    jPanel2.setPreferredSize(new java.awt.Dimension(61, 400));

    m_jPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TPlus.png"))); // NOI18N
    m_jPlus.setToolTipText("Increase selected item quantity by one");
    m_jPlus.setFocusPainted(false);
    m_jPlus.setFocusable(false);
    m_jPlus.setMaximumSize(new java.awt.Dimension(51, 42));
    m_jPlus.setMinimumSize(new java.awt.Dimension(51, 42));
    m_jPlus.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jPlus.setRequestFocusEnabled(false);
    m_jPlus.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jPlusActionPerformed(evt);
        }
    });

    m_jMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TMinus.png"))); // NOI18N
    m_jMinus.setToolTipText("Decrease selected item's quantity by one");
    m_jMinus.setFocusPainted(false);
    m_jMinus.setFocusable(false);
    m_jMinus.setMaximumSize(new java.awt.Dimension(51, 42));
    m_jMinus.setMinimumSize(new java.awt.Dimension(51, 42));
    m_jMinus.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jMinus.setRequestFocusEnabled(false);
    m_jMinus.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jMinusActionPerformed(evt);
        }
    });

    m_jEditLine.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TEdit.png"))); // NOI18N
    m_jEditLine.setMnemonic('e');
    m_jEditLine.setToolTipText("Edit Properties of selected item");
    m_jEditLine.setFocusPainted(false);
    m_jEditLine.setFocusable(false);
    m_jEditLine.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jEditLine.setRequestFocusEnabled(false);
    m_jEditLine.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jEditLineActionPerformed(evt);
        }
    });

    m_jCalculatePromotion
            .setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/pramo.png"))); // NOI18N
    m_jCalculatePromotion.setMnemonic('f');
    m_jCalculatePromotion.setFocusPainted(false);
    m_jCalculatePromotion.setFocusable(false);
    m_jCalculatePromotion.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jCalculatePromotion.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jCalculatePromotion.setRequestFocusEnabled(false);
    m_jCalculatePromotion.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jCalculatePromotionActionPerformed(evt);
        }
    });

    m_jAction.setBorder(null);
    m_jAction.setBorderPainted(false);
    m_jAction.setPreferredSize(new java.awt.Dimension(10, 2));
    m_jAction.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jActionActionPerformed(evt);
        }
    });

    m_jDelete.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/Tclose.png"))); // NOI18N
    m_jDelete.setMnemonic('d');
    m_jDelete.setToolTipText("Remove total quantity of selected item");
    m_jDelete.setFocusPainted(false);
    m_jDelete.setFocusable(false);
    m_jDelete.setMinimumSize(new java.awt.Dimension(51, 42));
    m_jDelete.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jDelete.setRequestFocusEnabled(false);
    m_jDelete.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jDeleteActionPerformed(evt);
        }
    });

    m_jKot.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TKOT.png"))); // NOI18N
    m_jKot.setToolTipText("Send All Fresh Items to Kitchen");
    m_jKot.setPreferredSize(new java.awt.Dimension(51, 42));
    m_jKot.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnKotActionPerformed(evt);
        }
    });

    m_jBtnServed.setIcon(
            new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/servedsymbol.png"))); // NOI18N
    m_jBtnServed.setToolTipText("Serve Selected Item");
    m_jBtnServed.setPreferredSize(new java.awt.Dimension(91, 73));
    m_jBtnServed.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jBtnServedActionPerformed(evt);
        }
    });

    m_jEraser.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/TDelete.png"))); // NOI18N
    m_jEraser.setMnemonic('i');
    m_jEraser.setToolTipText("Clear All Non KOT Items");
    m_jEraser.setFocusPainted(false);
    m_jEraser.setFocusable(false);
    m_jEraser.setMargin(new java.awt.Insets(8, 14, 8, 14));
    m_jEraser.setRequestFocusEnabled(false);
    m_jEraser.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            m_jEraserActionPerformed(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel2Layout = new org.jdesktop.layout.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup().add(5, 5, 5).add(jPanel2Layout
                    .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(m_jPlus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(m_jMinus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(m_jDelete, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel2Layout.createSequentialGroup()
                            .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                                    .add(m_jEraser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jCalculatePromotion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jKot, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jBtnServed, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(112, 112, 112).add(m_jAction, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(m_jEditLine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel2Layout.createSequentialGroup()
                    .add(m_jPlus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(5, 5, 5)
                    .add(m_jMinus, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(4, 4, 4)
                    .add(m_jDelete, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(4, 4, 4)
                    .add(m_jEditLine, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel2Layout.createSequentialGroup().add(61, 61, 61).add(m_jAction,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel2Layout.createSequentialGroup()
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(m_jEraser, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 45,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(m_jCalculatePromotion, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(m_jKot, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                            org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(m_jBtnServed, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 40,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(26, Short.MAX_VALUE)));

    jPanel5.add(jPanel2, java.awt.BorderLayout.NORTH);

    m_jPanelCentral.add(jPanel5, java.awt.BorderLayout.LINE_END);

    m_jPanTicket.add(m_jPanelCentral, java.awt.BorderLayout.CENTER);

    m_jContEntries.setFocusable(false);
    m_jContEntries.setPreferredSize(new java.awt.Dimension(501, 500));
    m_jContEntries.setRequestFocusEnabled(false);
    m_jContEntries.setLayout(new java.awt.BorderLayout());

    m_jPanEntries.setMinimumSize(new java.awt.Dimension(508, 500));
    m_jPanEntries.setPreferredSize(new java.awt.Dimension(495, 525));
    m_jPanEntries.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    catcontainer.setPreferredSize(new java.awt.Dimension(300, 200));
    catcontainer.setLayout(new java.awt.BorderLayout());
    m_jPanEntries.add(catcontainer, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 508, 510));

    m_jContEntries.add(m_jPanEntries, java.awt.BorderLayout.PAGE_START);

    m_jPanTicket.add(m_jContEntries, java.awt.BorderLayout.LINE_END);

    jPanel12.setBackground(new java.awt.Color(222, 232, 231));
    jPanel12.setFocusable(false);
    jPanel12.setPreferredSize(new java.awt.Dimension(600, 5));
    jPanel12.setRequestFocusEnabled(false);
    jPanel12.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLayeredPane1.setPreferredSize(new java.awt.Dimension(300, 402));
    jPanel12.add(jLayeredPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, -500, 989, 509));

    m_jPanTicket.add(jPanel12, java.awt.BorderLayout.PAGE_END);

    m_jPanContainer.add(m_jPanTicket, java.awt.BorderLayout.CENTER);

    jPanel4.setBackground(new java.awt.Color(222, 232, 231));
    jPanel4.setPreferredSize(new java.awt.Dimension(1024, 210));
    jPanel4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jPanel7.setBorder(
            javax.swing.BorderFactory.createMatteBorder(0, 1, 1, 1, new java.awt.Color(204, 204, 204)));
    jPanel7.setMaximumSize(new java.awt.Dimension(700, 158));
    jPanel7.setPreferredSize(new java.awt.Dimension(320, 158));

    jLabel7.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    jLabel7.setText("TOTAL PAID");

    jLabel8.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    jLabel8.setText("CHANGE");

    m_jTxtTotalPaid.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    m_jTxtTotalPaid.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jTxtTotalPaid.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTxtTotalPaid.setFocusable(false);
    m_jTxtTotalPaid.setOpaque(true);
    m_jTxtTotalPaid.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTxtTotalPaid.setRequestFocusEnabled(false);

    m_jTxtChange.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
    m_jTxtChange.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jTxtChange.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTxtChange.setFocusable(false);
    m_jTxtChange.setOpaque(true);
    m_jTxtChange.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTxtChange.setRequestFocusEnabled(false);

    jPanel3.setPreferredSize(new java.awt.Dimension(228, 100));

    m_jTax.setFocusable(false);
    m_jTax.setRequestFocusEnabled(false);

    m_jPor.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jPor.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jPor.setFocusable(false);
    m_jPor.setOpaque(true);
    m_jPor.setPreferredSize(new java.awt.Dimension(22, 22));
    m_jPor.setRequestFocusEnabled(false);

    m_jaddtax.setText("+");
    m_jaddtax.setFocusPainted(false);
    m_jaddtax.setFocusable(false);
    m_jaddtax.setRequestFocusEnabled(false);

    jLblPrinterStatus.setForeground(new java.awt.Color(255, 0, 0));

    m_jKeyFactory.setBackground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
    m_jKeyFactory.setForeground(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
    m_jKeyFactory.setBorder(null);
    m_jKeyFactory.setCaretColor(javax.swing.UIManager.getDefaults().getColor("Panel.background"));
    m_jKeyFactory.setPreferredSize(new java.awt.Dimension(4, 4));
    m_jKeyFactory.setRequestFocusEnabled(false);
    m_jKeyFactory.addKeyListener(new java.awt.event.KeyAdapter() {
        public void keyTyped(java.awt.event.KeyEvent evt) {
            m_jKeyFactoryKeyTyped(evt);
        }
    });

    org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel3Layout.createSequentialGroup().addContainerGap()
                                    .add(m_jKeyFactory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 239,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(65, 65, 65).add(jLblPrinterStatus,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 68,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel3Layout.createSequentialGroup().add(20, 20, 20)
                                    .add(m_jaddtax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 46,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(m_jPor,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 12,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel3Layout.createSequentialGroup().addContainerGap().add(m_jTax,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel3Layout.createSequentialGroup()
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel3Layout.createSequentialGroup().add(6, 6, 6).add(jLblPrinterStatus,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(m_jKeyFactory, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 11,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(m_jTax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(21, 21, 21)
                    .add(jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(m_jPor, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 8,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(m_jaddtax, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    org.jdesktop.layout.GroupLayout jPanel7Layout = new org.jdesktop.layout.GroupLayout(jPanel7);
    jPanel7.setLayout(jPanel7Layout);
    jPanel7Layout.setHorizontalGroup(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel7Layout.createSequentialGroup().add(10, 10, 10)
                    .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jPanel7Layout.createSequentialGroup()
                                    .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 126,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(3, 3, 3)
                                    .add(m_jTxtTotalPaid, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 120,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(jPanel7Layout.createSequentialGroup()
                                    .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(19, 19, 19).add(m_jTxtChange,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 120,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
            .add(org.jdesktop.layout.GroupLayout.TRAILING,
                    jPanel7Layout.createSequentialGroup()
                            .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 392,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap()));
    jPanel7Layout
            .setVerticalGroup(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jPanel7Layout.createSequentialGroup()
                            .add(jPanel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 89,
                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(270, 270, 270)
                            .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jTxtTotalPaid, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                            .add(10, 10, 10)
                            .add(jPanel7Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                                    .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                    .add(m_jTxtChange, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 35,
                                            org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))));

    jPanel4.add(jPanel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(1325, 1, 170, 160));

    jPanel8.setBackground(new java.awt.Color(255, 255, 255));
    jPanel8.setBorder(
            javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(204, 204, 204)));
    jPanel8.setPreferredSize(new java.awt.Dimension(1551, 193));
    jPanel8.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel2.setText("Bill Details");
    jPanel8.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(15, 12, 188, -1));

    m_jSubtotalEuros1.setBackground(new java.awt.Color(255, 255, 255));
    m_jSubtotalEuros1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    m_jSubtotalEuros1.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jSubtotalEuros1.setFocusable(false);
    m_jSubtotalEuros1.setOpaque(true);
    m_jSubtotalEuros1.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jSubtotalEuros1.setRequestFocusEnabled(false);
    jPanel8.add(m_jSubtotalEuros1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 40, 80, 23));

    m_jLblTotalEuros4.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    m_jLblTotalEuros4.setText("SUB TOTAL");
    jPanel8.add(m_jLblTotalEuros4, new org.netbeans.lib.awtextra.AbsoluteConstraints(11, 37, 94, 23));

    m_jTaxesEuros1.setBackground(new java.awt.Color(255, 255, 255));
    m_jTaxesEuros1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    m_jTaxesEuros1.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTaxesEuros1.setFocusable(false);
    m_jTaxesEuros1.setOpaque(true);
    m_jTaxesEuros1.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTaxesEuros1.setRequestFocusEnabled(false);
    jPanel8.add(m_jTaxesEuros1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 70, 80, 23));

    m_jLblTotalEuros5.setBackground(new java.awt.Color(255, 255, 255));
    m_jLblTotalEuros5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    m_jLblTotalEuros5.setText("TAXES");
    jPanel8.add(m_jLblTotalEuros5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 60, 23));

    jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    jLabel5.setText("DISCOUNT");
    jPanel8.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 100, 80, 23));

    m_jLblTotalEuros6.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    m_jLblTotalEuros6.setText("TOTAL SALES");
    jPanel8.add(m_jLblTotalEuros6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 160, 80, 20));

    m_jDiscount1.setBackground(new java.awt.Color(255, 255, 255));
    m_jDiscount1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    m_jDiscount1.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jDiscount1.setFocusable(false);
    m_jDiscount1.setOpaque(true);
    m_jDiscount1.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jDiscount1.setRequestFocusEnabled(false);
    jPanel8.add(m_jDiscount1, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 100, 80, 23));

    m_jTotalEuros.setBackground(new java.awt.Color(255, 255, 255));
    m_jTotalEuros.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jTotalEuros.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jTotalEuros.setFocusable(false);
    m_jTotalEuros.setOpaque(true);
    m_jTotalEuros.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jTotalEuros.setRequestFocusEnabled(false);
    jPanel8.add(m_jTotalEuros, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 160, 80, 23));

    jTaxPanel.setBackground(new java.awt.Color(255, 255, 255));
    jTaxPanel.setPreferredSize(new java.awt.Dimension(202, 157));
    jTaxPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

    m_jServiceTaxLbl.setText("SERVICE TAX");
    jTaxPanel.add(m_jServiceTaxLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 40, 100, 23));

    m_jServiceTax.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jTaxPanel.add(m_jServiceTax, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 40, 73, 23));

    jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
    jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel4.setText("Tax Breakup");
    jTaxPanel.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 11, 194, -1));

    jScrollPane1.setBorder(null);
    jScrollPane1.setViewportView(m_jTaxList);

    jTaxPanel.add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 37, 200, 140));

    m_jSwachBharatLbl.setText("SWACHH BHARAT TAX");
    jTaxPanel.add(m_jSwachBharatLbl, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 130, 20));

    m_jSwachBharat.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    jTaxPanel.add(m_jSwachBharat, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 70, 70, 20));

    jPanel8.add(jTaxPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(221, 1, -1, 178));

    jLabel6.setText("PROMO DISCOUNT");
    jPanel8.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 130, 120, 20));

    m_jPromoDiscount.setBackground(new java.awt.Color(255, 255, 255));
    m_jPromoDiscount.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
    m_jPromoDiscount.setBorder(javax.swing.BorderFactory.createCompoundBorder(
            javax.swing.BorderFactory
                    .createLineBorder(javax.swing.UIManager.getDefaults().getColor("Button.darkShadow")),
            javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));
    m_jPromoDiscount.setFocusable(false);
    m_jPromoDiscount.setOpaque(true);
    m_jPromoDiscount.setPreferredSize(new java.awt.Dimension(123, 25));
    m_jPromoDiscount.setRequestFocusEnabled(false);
    jPanel8.add(m_jPromoDiscount, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 130, 80, 23));

    jPanel4.add(jPanel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(7, 1, 434, -1));

    m_jProducts.setBackground(new java.awt.Color(255, 255, 255));
    m_jProducts.setLayout(new java.awt.CardLayout());
    jPanel4.add(m_jProducts, new org.netbeans.lib.awtextra.AbsoluteConstraints(447, 1, 551, 190));

    m_jPanContainer.add(jPanel4, java.awt.BorderLayout.SOUTH);

    add(m_jPanContainer, "ticket");
}

From source file:net.ytbolg.mcxa.VersionCheck.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*w w w .  j a v a 2s.  c o m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jTabbedPane1 = new javax.swing.JTabbedPane();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jScrollPane3 = new javax.swing.JScrollPane();
    jTable2 = new javax.swing.JTable();
    jScrollPane4 = new javax.swing.JScrollPane();
    jTable3 = new javax.swing.JTable();
    jScrollPane5 = new javax.swing.JScrollPane();
    jTable4 = new javax.swing.JTable();
    jProgressBar1 = new javax.swing.JProgressBar();
    jLabel1 = new javax.swing.JLabel();
    jButton1 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("");
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowActivated(java.awt.event.WindowEvent evt) {
            formWindowActivated(evt);
        }

        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
        }
    });

    jTable1.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    jTable1.setColumnSelectionAllowed(true);
    jTable1.getTableHeader().setReorderingAllowed(false);
    jScrollPane1.setViewportView(jTable1);
    jTable1.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);

    jTabbedPane1.addTab("?", jScrollPane1);

    jTable2.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    jTable2.setColumnSelectionAllowed(true);
    jTable2.getTableHeader().setReorderingAllowed(false);
    jScrollPane3.setViewportView(jTable2);
    jTable2.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);

    jTabbedPane1.addTab("", jScrollPane3);

    jTable3.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    jTable3.setColumnSelectionAllowed(true);
    jTable3.getTableHeader().setReorderingAllowed(false);
    jScrollPane4.setViewportView(jTable3);
    jTable3.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);

    jTabbedPane1.addTab("", jScrollPane4);

    jTable4.setModel(new javax.swing.table.DefaultTableModel(new Object[][] {

    }, new String[] {

    }));
    jTable4.setColumnSelectionAllowed(true);
    jTable4.getTableHeader().setReorderingAllowed(false);
    jScrollPane5.setViewportView(jTable4);
    jTable4.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);

    jTabbedPane1.addTab(" ", jScrollPane5);

    jButton1.setText("");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButton1ActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jProgressBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 343,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 165,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton1)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 349,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jProgressBar1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton1).addComponent(jLabel1))
                    .addGap(0, 21, Short.MAX_VALUE)));

    pack();
}

From source file:nick.gaImageRecognitionGui.panel.JPanelTestSavedConfiguration.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//w  w  w.j  av  a  2 s. c  o  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    testImagesFolderLocation = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jButtonSelectImagesFolder = new javax.swing.JButton();
    jButtonLoadDefaultLoc = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreaResults = new javax.swing.JTextArea();
    jButtonStartTest = new javax.swing.JButton();
    configurationsFolderLocation = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jButtonSelectConfigurationFolder = new javax.swing.JButton();
    testFalseImagesFolderLocation = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    jButtonSelectFalseImagesFolder1 = new javax.swing.JButton();
    jButtonCleanJTextArea = new javax.swing.JButton();

    setMinimumSize(new java.awt.Dimension(640, 480));
    setPreferredSize(new java.awt.Dimension(640, 480));

    testImagesFolderLocation.setEditable(false);
    testImagesFolderLocation.setText("Not loaded..");

    jLabel1.setText("Images folder: ");

    jButtonSelectImagesFolder.setText("Select..");
    jButtonSelectImagesFolder.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonSelectImagesFolderActionPerformed(evt);
        }
    });

    jButtonLoadDefaultLoc.setText("Load last settings");
    jButtonLoadDefaultLoc.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonLoadDefaultLocActionPerformed(evt);
        }
    });

    jTextAreaResults.setColumns(20);
    jTextAreaResults.setRows(5);
    jScrollPane1.setViewportView(jTextAreaResults);

    jButtonStartTest.setText("Start");
    jButtonStartTest.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonStartTestActionPerformed(evt);
        }
    });

    configurationsFolderLocation.setEditable(false);
    configurationsFolderLocation.setText("Not loaded..");

    jLabel2.setText("Configurations folder:");

    jButtonSelectConfigurationFolder.setText("Select..");
    jButtonSelectConfigurationFolder.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonSelectConfigurationFolderActionPerformed(evt);
        }
    });

    testFalseImagesFolderLocation.setEditable(false);
    testFalseImagesFolderLocation.setText("Not loaded..");

    jLabel3.setText("False images folder: ");

    jButtonSelectFalseImagesFolder1.setText("Select..");
    jButtonSelectFalseImagesFolder1.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonSelectFalseImagesFolder1ActionPerformed(evt);
        }
    });

    jButtonCleanJTextArea.setText("Clean");
    jButtonCleanJTextArea.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonCleanJTextAreaActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(41, 41, 41).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addComponent(jButtonStartTest).addGap(53, 53, 53)
                            .addComponent(jButtonCleanJTextArea).addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonLoadDefaultLoc)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 540,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(layout.createSequentialGroup()
                                                    .addComponent(jButtonSelectFalseImagesFolder1)
                                                    .addGap(40, 40, 40)
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(jLabel3)
                                                            .addComponent(testFalseImagesFolderLocation,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 152,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                                            .addGroup(layout.createSequentialGroup()
                                                    .addComponent(jButtonSelectImagesFolder).addGap(40, 40, 40)
                                                    .addGroup(layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jLabel1)
                                                            .addComponent(testImagesFolderLocation,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 152,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                                            .addGap(18, 18, 18).addComponent(jButtonSelectConfigurationFolder)
                                            .addGap(40, 40, 40)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.LEADING, false)
                                                    .addComponent(jLabel2)
                                                    .addComponent(configurationsFolderLocation,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 152,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))))
                            .addContainerGap(59, Short.MAX_VALUE)))));
    layout.setVerticalGroup(layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(layout
                    .createSequentialGroup().addGap(35, 35, 35).addComponent(
                            jButtonLoadDefaultLoc)
                    .addGap(44, 44, 44)
                    .addGroup(
                            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel1).addComponent(jButtonSelectImagesFolder))
                                            .addGap(18, 18,
                                                    18)
                                            .addComponent(testImagesFolderLocation,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup().addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel2)
                                            .addComponent(jButtonSelectConfigurationFolder)).addGap(18, 18, 18)
                                            .addComponent(configurationsFolderLocation,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(jButtonSelectFalseImagesFolder1))
                    .addGap(18, 18, 18)
                    .addComponent(testFalseImagesFolderLocation, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 118,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(27, 27, 27)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonStartTest).addComponent(jButtonCleanJTextArea))
                    .addGap(50, 50, 50)));
}

From source file:nick.gaImageRecognitionGui.panel.JPanelTraining.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from  w  w w. jav a  2 s  .  c om*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jButtonSelectTrainingFolder = new javax.swing.JButton();
    jButtonSelectFalseImages = new javax.swing.JButton();
    jButtonTrain = new javax.swing.JButton();
    jButtonLoadDefaultLoc = new javax.swing.JButton();
    jComboBoxIndividualType = new javax.swing.JComboBox();
    jLabel3 = new javax.swing.JLabel();
    jSpinnerPopSize = new javax.swing.JSpinner();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jSpinnerMaxNumberOfIterations = new javax.swing.JSpinner();
    trainingFolderLocation = new javax.swing.JTextField();
    falseImagesFolderLoc = new javax.swing.JTextField();
    jButtonSetTrainingRules = new javax.swing.JButton();

    setMinimumSize(new java.awt.Dimension(640, 480));
    setPreferredSize(new java.awt.Dimension(640, 480));

    jLabel1.setText("Training folder: ");

    jLabel2.setText("False images folder: ");

    jButtonSelectTrainingFolder.setText("Select..");
    jButtonSelectTrainingFolder.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonSelectTrainingFolderActionPerformed(evt);
        }
    });

    jButtonSelectFalseImages.setText("Select..");
    jButtonSelectFalseImages.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonSelectFalseImagesActionPerformed(evt);
        }
    });

    jButtonTrain.setText("Train");
    jButtonTrain.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonTrainActionPerformed(evt);
        }
    });

    jButtonLoadDefaultLoc.setText("Load last settings");
    jButtonLoadDefaultLoc.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonLoadDefaultLocActionPerformed(evt);
        }
    });

    jComboBoxIndividualType.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

    jLabel3.setText("Population size");

    jLabel4.setText("Max number of iterations");

    jLabel5.setText("Individual type");

    trainingFolderLocation.setEditable(false);
    trainingFolderLocation.setText("Not loaded..");

    falseImagesFolderLoc.setEditable(false);
    falseImagesFolderLoc.setText("Not loaded..");

    jButtonSetTrainingRules.setText("Set training rules");
    jButtonSetTrainingRules.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jButtonSetTrainingRulesActionPerformed(evt);
        }
    });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(34, 34, 34).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButtonSelectFalseImages)
                                    .addComponent(jButtonSelectTrainingFolder))
                            .addGap(40, 40, 40)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(trainingFolderLocation,
                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
                                            .addComponent(falseImagesFolderLoc,
                                                    javax.swing.GroupLayout.Alignment.LEADING))
                                    .addComponent(jLabel2).addComponent(jLabel1))
                            .addGap(18, 18, 18)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup().addComponent(jLabel5)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jComboBoxIndividualType,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup().addComponent(jLabel4)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    22, Short.MAX_VALUE)
                                            .addComponent(jSpinnerMaxNumberOfIterations,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 77,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup().addComponent(jLabel3)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                                    71, Short.MAX_VALUE)
                                            .addComponent(jSpinnerPopSize,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 77,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(layout.createSequentialGroup().addGroup(layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonLoadDefaultLoc)
                            .addGroup(layout.createSequentialGroup().addComponent(jButtonSetTrainingRules)
                                    .addGap(147, 147, 147).addComponent(jButtonTrain)))
                            .addGap(0, 0, Short.MAX_VALUE)))
                    .addGap(127, 127, 127)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(45, 45, 45).addComponent(jButtonLoadDefaultLoc)
                    .addGap(64, 64, 64)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel1).addComponent(jButtonSelectTrainingFolder)
                                    .addComponent(jLabel5))
                            .addComponent(jComboBoxIndividualType, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                    .addComponent(trainingFolderLocation,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(33, 33, 33)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jLabel2).addComponent(jButtonSelectFalseImages)
                                            .addGroup(layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.BASELINE)
                                                    .addComponent(jLabel4)
                                                    .addComponent(jSpinnerMaxNumberOfIterations,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addGap(18, 18, 18)
                                    .addComponent(falseImagesFolderLoc, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 117,
                                            Short.MAX_VALUE)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jButtonSetTrainingRules).addComponent(jButtonTrain))
                                    .addGap(53, 53, 53))
                            .addGroup(layout.createSequentialGroup()
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup().addGap(1, 1, 1)
                                                    .addComponent(jLabel3))
                                            .addComponent(jSpinnerPopSize,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))));
}

From source file:nz.govt.natlib.ndha.manualdeposit.customizemetadata.CustomizeMetaDataForm.java

private void initComponents() {

    pnlButtons = new javax.swing.JPanel();
    btnClose = new javax.swing.JButton();
    btnSaveAndClose = new javax.swing.JButton();
    btnOpen = new javax.swing.JButton();
    scrlMetaDataList = new javax.swing.JScrollPane();
    tblMetaDataList = new javax.swing.JTable();

    setTitle("MetaData Customization");
    setName("CustomizeMetaDataForm"); // NOI18N
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);//from   ww  w . j  av a 2 s .c om
        }

        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
        }
    });

    btnClose.setText("Close");
    btnClose.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnCloseActionPerformed(evt);
        }
    });

    btnSaveAndClose.setText("Save and Close");
    btnSaveAndClose.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnSaveAndCloseActionPerformed(evt);
        }
    });

    btnOpen.setText("Open");
    btnOpen.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnOpenActionPerformed(evt);
        }
    });

    tblMetaDataList.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseReleased(MouseEvent e) {
            if (tblMetaDataList.getSelectedColumnCount() == 0 || tblMetaDataList.getSelectedColumnCount() > 1) {
                btnOpen.setEnabled(false);
            } else if (tblMetaDataList.getSelectedRowCount() > 1) {
                btnOpen.setEnabled(false);
            } else if (tblMetaDataList.getSelectedColumn() == 0) {
                btnOpen.setEnabled(true);
                if (e.getClickCount() == 2) {
                    btnOpenActionPerformed(null);
                }
            } else {
                btnOpen.setEnabled(false);
            }
        }
    });

    javax.swing.GroupLayout pnlButtonsLayout = new javax.swing.GroupLayout(pnlButtons);
    pnlButtonsLayout.setHorizontalGroup(pnlButtonsLayout.createParallelGroup(Alignment.LEADING)
            .addGroup(pnlButtonsLayout.createSequentialGroup().addContainerGap().addComponent(btnClose)
                    .addPreferredGap(ComponentPlacement.UNRELATED).addComponent(btnSaveAndClose).addGap(48)
                    .addComponent(btnOpen).addContainerGap(560, Short.MAX_VALUE)));
    pnlButtonsLayout.setVerticalGroup(pnlButtonsLayout.createParallelGroup(Alignment.LEADING)
            .addGroup(pnlButtonsLayout.createSequentialGroup().addContainerGap()
                    .addGroup(pnlButtonsLayout.createParallelGroup(Alignment.BASELINE).addComponent(btnClose)
                            .addComponent(btnSaveAndClose).addComponent(btnOpen))
                    .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    pnlButtons.setLayout(pnlButtonsLayout);

    tblMetaDataList
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    scrlMetaDataList.setViewportView(tblMetaDataList);
    tblMetaDataList.setCellSelectionEnabled(true);
    // Add Copy/Paste/Delete functionality to the Customize Meta Data table.
    CustomizeExcelAdapter copyPastFunct = new CustomizeExcelAdapter(tblMetaDataList);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlButtons, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(scrlMetaDataList, javax.swing.GroupLayout.DEFAULT_SIZE, 853, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(scrlMetaDataList, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
                    .addGap(8, 8, 8).addComponent(pnlButtons, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:nz.govt.natlib.ndha.manualdeposit.provenanceevent.ProvenanceEventsEditor.java

private void initComponents() {

    addProvenanceNoteButton = new javax.swing.JButton();
    removeProvenanceNoteButton = new javax.swing.JButton();
    copyProvenanceNoteButton = new javax.swing.JButton();
    closeButton = new javax.swing.JButton();
    sharedNotePropertiesPanel = new javax.swing.JPanel();
    eventTypeComboBox = new javax.swing.JComboBox();
    eventTypeLabel = new javax.swing.JLabel();
    eventIdentifierTypeLabel = new javax.swing.JLabel();
    eventIdentifierTypeTextBox = new javax.swing.JTextField();
    eventIdentifierValueLabel = new javax.swing.JLabel();
    eventIdentifierValueTextBox = new javax.swing.JTextField();
    eventOutcomeLabel = new javax.swing.JLabel();
    chkEventOutcome = new javax.swing.JCheckBox();
    eventOutcomeDetailLabel = new javax.swing.JLabel();
    eventDescription = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    eventOutcomeDetailValue = new javax.swing.JTextArea();
    warningMessageLabel = new javax.swing.JLabel();
    jScrollPane2 = new javax.swing.JScrollPane();
    entityNamesList = new javax.swing.JList();
    scrlProvenanceNotesList = new javax.swing.JScrollPane();
    provenanceNotesList = new javax.swing.JList();

    setTitle("Edit Provenance Events");
    setName("ProvenanceEventsEditor"); // NOI18N
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);//from w ww  .  j a  v  a2s.  c o  m
        }

        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);
        }
    });

    addProvenanceNoteButton.setText("Add");
    addProvenanceNoteButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            addProvenanceNoteButtonActionPerformed(evt);
        }
    });

    copyProvenanceNoteButton.setText("Copy");
    copyProvenanceNoteButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            copyProvenanceNoteButtonActionPerformed(evt);
        }
    });

    removeProvenanceNoteButton.setText("Remove");
    removeProvenanceNoteButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            removeProvenanceNoteButtonActionPerformed(evt);
        }
    });

    closeButton.setText("Close");
    closeButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            closeButtonActionPerformed(evt);
        }
    });

    sharedNotePropertiesPanel
            .setBorder(javax.swing.BorderFactory.createTitledBorder("Provenance Note properties"));

    eventTypeComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

    eventTypeLabel.setText("Event type");

    eventIdentifierTypeLabel.setText("Event identifier type");

    eventIdentifierTypeTextBox.setText(ProvenanceEventsPresenter.DEFAULT_IDENTIFIER_TYPE);
    eventIdentifierTypeTextBox.setEnabled(false);

    eventIdentifierValueLabel.setText("Event identifier value");

    eventIdentifierValueTextBox.setText(ProvenanceEventsPresenter.DEFAULT_IDENTIFIER_VALUE);
    eventIdentifierValueTextBox.setEnabled(false);

    eventOutcomeLabel.setText("Successful outcome?");

    eventOutcomeDetailLabel.setText("Event outcome detail");

    eventDescription.setText(ProvenanceEventsPresenter.DEFAULT_EVENT_DESCRIPTION);
    eventDescription.setEnabled(false);

    jLabel1.setLabelFor(eventDescription);
    jLabel1.setText("Event Description");

    eventOutcomeDetailValue.setColumns(20);
    eventOutcomeDetailValue.setLineWrap(true);
    eventOutcomeDetailValue.setRows(5);
    jScrollPane1.setViewportView(eventOutcomeDetailValue);

    javax.swing.GroupLayout sharedNotePropertiesPanelLayout = new javax.swing.GroupLayout(
            sharedNotePropertiesPanel);
    sharedNotePropertiesPanel.setLayout(sharedNotePropertiesPanelLayout);
    sharedNotePropertiesPanelLayout.setHorizontalGroup(sharedNotePropertiesPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(sharedNotePropertiesPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(eventIdentifierValueLabel).addComponent(eventIdentifierTypeLabel)
                            .addComponent(eventTypeLabel).addComponent(eventOutcomeLabel)
                            .addComponent(eventOutcomeDetailLabel).addComponent(jLabel1))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(eventDescription).addComponent(chkEventOutcome)
                            .addComponent(eventIdentifierTypeTextBox)
                            .addComponent(eventTypeComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(eventIdentifierValueTextBox).addComponent(jScrollPane1,
                                    javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 351, Short.MAX_VALUE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    sharedNotePropertiesPanelLayout.setVerticalGroup(sharedNotePropertiesPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(sharedNotePropertiesPanelLayout.createSequentialGroup()
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(eventTypeLabel)
                            .addComponent(eventTypeComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(eventIdentifierTypeLabel).addComponent(eventIdentifierTypeTextBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(eventIdentifierValueLabel).addComponent(eventIdentifierValueTextBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(chkEventOutcome).addComponent(eventOutcomeLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(eventOutcomeDetailLabel).addComponent(jScrollPane1,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                    .addGroup(sharedNotePropertiesPanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(eventDescription, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))));

    jLabel1.getAccessibleContext().setAccessibleName("event Description");

    warningMessageLabel.setForeground(new java.awt.Color(255, 51, 0));
    warningMessageLabel.setText("warning_message_place_holder");

    entityNamesList.setModel(new javax.swing.AbstractListModel() {
        String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };

        public int getSize() {
            return strings.length;
        }

        public Object getElementAt(int i) {
            return strings[i];
        }
    });
    jScrollPane2.setViewportView(entityNamesList);

    //        jList2.setModel(new javax.swing.AbstractListModel() {
    //            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
    //            public int getSize() { return strings.length; }
    //            public Object getElementAt(int i) { return strings[i]; }
    //        });
    scrlProvenanceNotesList.setViewportView(provenanceNotesList);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(jScrollPane2, GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(layout
                            .createParallelGroup(Alignment.TRAILING).addGroup(layout.createSequentialGroup()
                                    .addComponent(addProvenanceNoteButton, GroupLayout.PREFERRED_SIZE, 51,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,
                                            Short.MAX_VALUE)
                                    .addComponent(removeProvenanceNoteButton))
                            .addComponent(scrlProvenanceNotesList, GroupLayout.DEFAULT_SIZE, 192,
                                    Short.MAX_VALUE))
                    .addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout
                            .createSequentialGroup().addGap(18)
                            .addGroup(layout.createParallelGroup(Alignment.TRAILING)
                                    .addComponent(warningMessageLabel, GroupLayout.DEFAULT_SIZE, 489,
                                            Short.MAX_VALUE)
                                    .addGroup(layout.createParallelGroup(Alignment.LEADING)
                                            .addGroup(layout.createSequentialGroup().addGap(10)
                                                    .addComponent(copyProvenanceNoteButton))
                                            .addComponent(sharedNotePropertiesPanel, GroupLayout.PREFERRED_SIZE,
                                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
                            .addContainerGap())
                            .addGroup(layout.createSequentialGroup()
                                    .addPreferredGap(ComponentPlacement.RELATED, 436, Short.MAX_VALUE)
                                    .addComponent(closeButton).addGap(22)))));
    layout.setVerticalGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(sharedNotePropertiesPanel, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(ComponentPlacement.RELATED).addComponent(copyProvenanceNoteButton)
                            .addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(warningMessageLabel))
                    .addComponent(jScrollPane2, GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE)
                    .addComponent(scrlProvenanceNotesList, GroupLayout.DEFAULT_SIZE, 320, Short.MAX_VALUE))
            .addPreferredGap(ComponentPlacement.RELATED)
            .addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(closeButton)
                    .addComponent(removeProvenanceNoteButton).addComponent(addProvenanceNoteButton))
            .addGap(46)));
    getContentPane().setLayout(layout);

    pack();
}

From source file:nz.govt.natlib.ndha.manualdeposit.StructMapFileDescManagement.java

private void initComponents() {

    scrlDescription = new javax.swing.JScrollPane();
    lstDescription = new javax.swing.JList();
    pnlDetails = new javax.swing.JPanel();
    btnMoveUp = new javax.swing.JButton();
    btnMoveDown = new javax.swing.JButton();
    btnAddNew = new javax.swing.JButton();
    btnDelete = new javax.swing.JButton();
    btnSave = new javax.swing.JButton();
    btnCancel = new javax.swing.JButton();
    btnClose = new javax.swing.JButton();
    btnGenMainDesc = new javax.swing.JButton();

    setTitle("Manage Structure Map File Descriptions");
    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowOpened(java.awt.event.WindowEvent evt) {
            formWindowOpened(evt);/*from   w ww . ja  v  a2 s  .  com*/
        }

        public void windowClosing(java.awt.event.WindowEvent evt) {
            dialogWindowClosing(evt);
        }
    });

    scrlDescription.setViewportView(lstDescription);

    JPanel panelLayer1 = new JPanel();
    panelLayer1.setAlignmentY(Component.TOP_ALIGNMENT);

    panel_ExtraLayers = new JPanel();
    panel_ExtraLayers.setAlignmentY(Component.TOP_ALIGNMENT);

    panel_ExtraLayers.setMinimumSize(new Dimension(300, 0));
    panel_ExtraLayers.setPreferredSize(new Dimension(300, 500));
    panel_ExtraLayers.setMaximumSize(new Dimension(300, 500));
    panel_ExtraLayers.setVisible(false);

    JLabel lblDescriptionL2 = new JLabel("Layer 2");
    lblDescriptionL2.setFont(new Font("Tahoma", Font.PLAIN, 11));

    JLabel lblDescription_1 = new JLabel("Description");

    textfldDescriptionL2 = new JTextField();
    textfldDescriptionL2.setName("DescriptionL2");
    textfldDescriptionL2.setColumns(10);

    JLabel lblFilePrefixL2 = new JLabel("File Prefix/Suffix");

    textfldFilePrefixL2 = new JTextField();
    textfldFilePrefixL2.setName("FilePrefixL2");
    textfldFilePrefixL2.setColumns(10);

    JLabel lblAllowMultiplesL2 = new JLabel("Allow Multiples?");

    checkAllowMultiplesL2 = new JCheckBox("");
    checkAllowMultiplesL2.setName("AllowMultiplesL2");

    JLabel lblDescriptionL3 = new JLabel("Layer 3");
    lblDescriptionL3.setFont(new Font("Tahoma", Font.PLAIN, 11));

    JLabel lblDescription_2 = new JLabel("Description");

    textfldDescriptionL3 = new JTextField();
    textfldDescriptionL3.setName("DescriptionL3");
    textfldDescriptionL3.setColumns(10);

    JLabel lblFilePrefixL3 = new JLabel("File Prefix/Suffix");

    textfldFilePrefixL3 = new JTextField();
    textfldFilePrefixL3.setName("FilePrefixL3");
    textfldFilePrefixL3.setColumns(10);

    JLabel lblAllowMultiplesL3 = new JLabel("Allow Multiples?");

    checkAllowMultiplesL3 = new JCheckBox("");
    checkAllowMultiplesL3.setName("AllowMultiplesL3");

    JLabel lblDescriptionL4 = new JLabel("Layer 4");
    lblDescriptionL4.setFont(new Font("Tahoma", Font.PLAIN, 11));

    JLabel lblDescription_3 = new JLabel("Description");

    textfldDescriptionL4 = new JTextField();
    textfldDescriptionL4.setName("DescriptionL4");
    textfldDescriptionL4.setColumns(10);

    lblFilePrefixL4 = new JLabel("File Prefix/Suffix");

    textfldFilePrefixL4 = new JTextField();
    textfldFilePrefixL4.setName("FilePrefixL4");
    textfldFilePrefixL4.setColumns(10);

    lblAllowMultiplesL4 = new JLabel("Allow Multiples?");

    checkAllowMultiplesL4 = new JCheckBox("");
    checkAllowMultiplesL4.setName("AllowMultiplesL4");

    GroupLayout gl_panel_ExtraLayers = new GroupLayout(panel_ExtraLayers);
    gl_panel_ExtraLayers
            .setHorizontalGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.LEADING)
                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup().addContainerGap()
                            .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.LEADING)
                                    .addComponent(lblDescriptionL2)
                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                            .addComponent(lblDescription_1).addGap(44)
                                            .addComponent(textfldDescriptionL2, GroupLayout.DEFAULT_SIZE, 193,
                                                    Short.MAX_VALUE))
                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                            .addComponent(lblFilePrefixL2).addGap(18)
                                            .addComponent(textfldFilePrefixL2, GroupLayout.PREFERRED_SIZE, 53,
                                                    GroupLayout.PREFERRED_SIZE))
                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                            .addComponent(lblAllowMultiplesL2).addGap(18)
                                            .addComponent(checkAllowMultiplesL2))
                                    .addComponent(lblDescriptionL3)
                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                            .addGroup(gl_panel_ExtraLayers
                                                    .createParallelGroup(Alignment.LEADING)
                                                    .addComponent(lblDescription_2)
                                                    .addComponent(lblFilePrefixL3)
                                                    .addComponent(lblAllowMultiplesL3))
                                            .addGroup(gl_panel_ExtraLayers
                                                    .createParallelGroup(Alignment.LEADING)
                                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                                            .addGap(21)
                                                            .addGroup(gl_panel_ExtraLayers
                                                                    .createParallelGroup(Alignment.LEADING)
                                                                    .addComponent(textfldFilePrefixL3,
                                                                            GroupLayout.PREFERRED_SIZE, 50,
                                                                            GroupLayout.PREFERRED_SIZE)
                                                                    .addComponent(
                                                                            textfldDescriptionL3,
                                                                            GroupLayout.DEFAULT_SIZE, 190,
                                                                            Short.MAX_VALUE)))
                                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                                            .addGap(18)
                                                            .addGroup(gl_panel_ExtraLayers
                                                                    .createParallelGroup(Alignment.LEADING)
                                                                    .addComponent(textfldDescriptionL4,
                                                                            GroupLayout.DEFAULT_SIZE, 193,
                                                                            Short.MAX_VALUE)
                                                                    .addGroup(gl_panel_ExtraLayers
                                                                            .createSequentialGroup()
                                                                            .addComponent(checkAllowMultiplesL3)
                                                                            .addPreferredGap(
                                                                                    ComponentPlacement.RELATED,
                                                                                    172, Short.MAX_VALUE))))))
                                    .addComponent(lblDescriptionL4).addComponent(lblDescription_3)
                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                            .addComponent(lblFilePrefixL4).addGap(18)
                                            .addComponent(textfldFilePrefixL4, GroupLayout.PREFERRED_SIZE, 54,
                                                    GroupLayout.PREFERRED_SIZE))
                                    .addGroup(gl_panel_ExtraLayers.createSequentialGroup()
                                            .addComponent(lblAllowMultiplesL4).addGap(18)
                                            .addComponent(checkAllowMultiplesL4)))
                            .addContainerGap()));
    gl_panel_ExtraLayers.setVerticalGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel_ExtraLayers.createSequentialGroup().addContainerGap()
                    .addComponent(lblDescriptionL2).addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblDescription_1)
                            .addComponent(textfldDescriptionL2, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblFilePrefixL2)
                            .addComponent(textfldFilePrefixL2, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblAllowMultiplesL2).addComponent(checkAllowMultiplesL2))
                    .addGap(18).addComponent(lblDescriptionL3).addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblDescription_2)
                            .addComponent(textfldDescriptionL3, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblFilePrefixL3)
                            .addComponent(textfldFilePrefixL3, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.LEADING)
                            .addComponent(lblAllowMultiplesL3).addComponent(checkAllowMultiplesL3))
                    .addGap(18).addComponent(lblDescriptionL4).addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblDescription_3)
                            .addComponent(textfldDescriptionL4, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblFilePrefixL4)
                            .addComponent(textfldFilePrefixL4, GroupLayout.PREFERRED_SIZE,
                                    GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(gl_panel_ExtraLayers.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblAllowMultiplesL4).addComponent(checkAllowMultiplesL4))
                    .addContainerGap(39, Short.MAX_VALUE)));
    panel_ExtraLayers.setLayout(gl_panel_ExtraLayers);

    lblDescription = new JLabel();
    lblDescription.setText("Description");

    textfldDescription = new JTextField();
    textfldDescription.setName("Description");

    textfldFilePrefix = new JTextField();
    textfldFilePrefix.setName("FilePrefix");

    lblFilePrefix = new JLabel();
    lblFilePrefix.setText("File Prefix/Suffix");

    lblPosition = new JLabel();
    lblPosition.setText("Position");

    cmbPosition = new JComboBox();
    cmbPosition.setName("Position");

    lblMandatory = new JLabel();
    lblMandatory.setText("Mandatory?");

    checkMandatory = new JCheckBox();
    checkMandatory.setName("Mandatory");

    lblAllowMultiples = new JLabel();
    lblAllowMultiples.setText("Allow Multiples?");

    checkAllowMultiples = new JCheckBox();
    checkAllowMultiples.setName("AllowMultiples");

    lblExtraLayers = new JLabel("Extra Layers?");

    checkExtraLayers = new JCheckBox("");
    checkExtraLayers.setName("ExtraLayers");
    checkExtraLayers.addItemListener(new ItemListener() {
        public void itemStateChanged(ItemEvent e) {
            JCheckBox button = (JCheckBox) e.getSource();
            if (button.isSelected()) {
                panel_MainDesc.setVisible(true);
                panel_ExtraLayers.setVisible(true);
                pnlDetails.revalidate();
                pnlDetails.repaint();
            } else {
                panel_MainDesc.setVisible(false);
                panel_ExtraLayers.setVisible(false);
                pnlDetails.revalidate();
                pnlDetails.repaint();
            }
        }
    });

    GroupLayout gl_panelLayer1 = new GroupLayout(panelLayer1);
    gl_panelLayer1.setHorizontalGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panelLayer1.createSequentialGroup().addContainerGap()
                    .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                            .addGroup(gl_panelLayer1.createSequentialGroup()
                                    .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                                            .addComponent(lblFilePrefix).addComponent(lblDescription)
                                            .addComponent(lblPosition))
                                    .addGap(18)
                                    .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                                            .addComponent(textfldFilePrefix, GroupLayout.PREFERRED_SIZE, 51,
                                                    GroupLayout.PREFERRED_SIZE)
                                            .addComponent(textfldDescription, GroupLayout.DEFAULT_SIZE, 169,
                                                    Short.MAX_VALUE)
                                            .addComponent(cmbPosition, 0, 169, Short.MAX_VALUE)))
                            .addGroup(
                                    gl_panelLayer1.createSequentialGroup()
                                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                                                    .addComponent(lblAllowMultiples)
                                                    .addComponent(lblExtraLayers).addComponent(lblMandatory))
                                            .addGap(18)
                                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                                                    .addComponent(checkExtraLayers).addComponent(checkMandatory)
                                                    .addComponent(checkAllowMultiples))))
                    .addContainerGap()));
    gl_panelLayer1
            .setVerticalGroup(gl_panelLayer1.createParallelGroup(Alignment.TRAILING).addGroup(Alignment.LEADING,
                    gl_panelLayer1.createSequentialGroup().addGap(24)
                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.BASELINE)
                                    .addComponent(lblDescription)
                                    .addComponent(textfldDescription, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(ComponentPlacement.RELATED)
                            .addGroup(gl_panelLayer1
                                    .createParallelGroup(Alignment.BASELINE).addComponent(lblFilePrefix)
                                    .addComponent(textfldFilePrefix, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(ComponentPlacement.RELATED)
                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.BASELINE)
                                    .addComponent(lblPosition)
                                    .addComponent(cmbPosition, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                            .addGap(8)
                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                                    .addComponent(checkMandatory).addComponent(lblMandatory))
                            .addPreferredGap(ComponentPlacement.RELATED)
                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.LEADING)
                                    .addComponent(checkAllowMultiples).addComponent(lblAllowMultiples))
                            .addPreferredGap(ComponentPlacement.UNRELATED)
                            .addGroup(gl_panelLayer1.createParallelGroup(Alignment.BASELINE)
                                    .addComponent(lblExtraLayers).addComponent(checkExtraLayers))
                            .addContainerGap(26, Short.MAX_VALUE)));
    panelLayer1.setLayout(gl_panelLayer1);

    btnMoveUp.setPreferredSize(new java.awt.Dimension(91, 23));
    btnMoveUp.setText("Move Up");

    btnMoveDown.setText("Move Down");

    btnAddNew.setText("Add New");

    btnDelete.setText("Delete");

    btnSave.setText("Save");

    btnCancel.setText("Cancel");

    btnClose.setText("Close");

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addGroup(layout.createParallelGroup(Alignment.TRAILING).addGroup(layout.createSequentialGroup()
                    .addComponent(scrlDescription, GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE).addGap(18)
                    .addGroup(layout.createParallelGroup(Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup().addComponent(btnAddNew).addGap(18)
                                    .addComponent(btnDelete, GroupLayout.PREFERRED_SIZE, 75,
                                            GroupLayout.PREFERRED_SIZE)
                                    .addGap(19))
                            .addComponent(pnlDetails, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(btnMoveUp, GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)
                            .addPreferredGap(ComponentPlacement.RELATED)
                            .addComponent(btnMoveDown, GroupLayout.DEFAULT_SIZE, 92, Short.MAX_VALUE).addGap(89)
                            .addComponent(btnSave, GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE)
                            .addPreferredGap(ComponentPlacement.UNRELATED)
                            .addComponent(btnCancel, GroupLayout.DEFAULT_SIZE, 68, Short.MAX_VALUE)
                            .addPreferredGap(ComponentPlacement.UNRELATED)
                            .addComponent(btnClose, GroupLayout.DEFAULT_SIZE, 62, Short.MAX_VALUE)))
            .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout
            .createSequentialGroup().addContainerGap()
            .addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup()
                    .addComponent(pnlDetails, GroupLayout.PREFERRED_SIZE, 597, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(btnDelete)
                            .addComponent(btnAddNew)))
                    .addComponent(scrlDescription, GroupLayout.DEFAULT_SIZE, 387, Short.MAX_VALUE))
            .addGap(18)
            .addGroup(layout.createParallelGroup(Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(Alignment.BASELINE)
                            .addComponent(btnMoveUp, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnMoveDown))
                    .addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(btnClose)
                            .addComponent(btnCancel).addComponent(btnSave)))
            .addContainerGap()));
    pnlDetails.setLayout(new BoxLayout(pnlDetails, BoxLayout.Y_AXIS));

    panel_MainDesc = new JPanel();

    panel_MainDesc.setMinimumSize(new Dimension(300, 0));
    panel_MainDesc.setPreferredSize(new Dimension(300, 60));
    panel_MainDesc.setMaximumSize(new Dimension(300, 60));
    panel_MainDesc.setVisible(false);

    lblDescriptionMain = new JLabel("Main Description");

    textfldDescriptionMain = new JTextField();
    textfldDescriptionMain.setName("DescriptionMain");
    textfldDescriptionMain.setColumns(10);

    btnGenMainDesc_1 = new JButton("");
    btnGenMainDesc_1.setToolTipText("Generate a main description by concatenating layer descriptions.");
    btnGenMainDesc_1.setContentAreaFilled(false);
    btnGenMainDesc_1.setIcon(new ImageIcon(StructMapFileDescManagement.class
            .getResource("/org/jdesktop/swingx/plaf/basic/resources/month-down.png")));
    GroupLayout gl_panel_MainDesc = new GroupLayout(panel_MainDesc);
    gl_panel_MainDesc.setHorizontalGroup(gl_panel_MainDesc.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel_MainDesc.createSequentialGroup().addContainerGap()
                    .addComponent(lblDescriptionMain).addGap(18)
                    .addComponent(textfldDescriptionMain, GroupLayout.PREFERRED_SIZE, 165,
                            GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(btnGenMainDesc_1, GroupLayout.PREFERRED_SIZE, 25, Short.MAX_VALUE)
                    .addContainerGap()));
    gl_panel_MainDesc.setVerticalGroup(gl_panel_MainDesc.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_panel_MainDesc.createSequentialGroup().addContainerGap().addGroup(gl_panel_MainDesc
                    .createParallelGroup(Alignment.LEADING)
                    .addComponent(btnGenMainDesc_1, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
                    .addGroup(gl_panel_MainDesc.createParallelGroup(Alignment.BASELINE)
                            .addComponent(lblDescriptionMain).addComponent(textfldDescriptionMain,
                                    GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,
                                    GroupLayout.PREFERRED_SIZE)))
                    .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    panel_MainDesc.setLayout(gl_panel_MainDesc);
    pnlDetails.add(panel_MainDesc);
    pnlDetails.add(panelLayer1);
    pnlDetails.add(panel_ExtraLayers);
    getContentPane().setLayout(layout);

    pack();
}

From source file:org.bitbucket.mlopatkin.android.logviewer.ConfigurationDialog.java

private ConfigurationDialog(Frame owner) {
    super(owner);
    setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    setModalityType(ModalityType.APPLICATION_MODAL);
    setTitle("Configuration");
    setBounds(100, 100, 400, 122);/*from  w  w  w  .j av  a2s  . c  o  m*/
    getContentPane().setLayout(new BorderLayout());
    contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
    getContentPane().add(contentPanel, BorderLayout.CENTER);

    JLabel lblAdbExecutableLocation = new JLabel("ADB executable location");

    textAdbExecutable = new JTextField(Configuration.adb.executable());
    lblAdbExecutableLocation.setLabelFor(textAdbExecutable);
    textAdbExecutable.setColumns(10);

    JButton btBrowseAdb = new JButton("...");

    btBrowseAdb.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            JFileChooser fileChooser = new JFileChooser();
            int result = fileChooser.showOpenDialog(ConfigurationDialog.this);
            if (result == JFileChooser.APPROVE_OPTION) {
                textAdbExecutable.setText(fileChooser.getSelectedFile().getAbsolutePath());
            }
        }
    });
    GroupLayout gl_contentPanel = new GroupLayout(contentPanel);
    gl_contentPanel.setHorizontalGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_contentPanel.createSequentialGroup().addComponent(lblAdbExecutableLocation)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(textAdbExecutable, GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)
                    .addPreferredGap(ComponentPlacement.RELATED)
                    .addComponent(btBrowseAdb, GroupLayout.PREFERRED_SIZE, 33, GroupLayout.PREFERRED_SIZE)));
    gl_contentPanel.setVerticalGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)
            .addGroup(gl_contentPanel.createSequentialGroup()
                    .addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING)
                            .addComponent(lblAdbExecutableLocation)
                            .addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)
                                    .addComponent(textAdbExecutable, GroupLayout.PREFERRED_SIZE,
                                            GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                    .addComponent(btBrowseAdb)))
                    .addContainerGap(375, Short.MAX_VALUE)));
    contentPanel.setLayout(gl_contentPanel);
    {
        JPanel buttonPane = new JPanel();
        buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
        getContentPane().add(buttonPane, BorderLayout.SOUTH);
        {
            JButton okButton = new JButton(acOk);
            buttonPane.add(okButton);
            getRootPane().setDefaultButton(okButton);
        }
        {
            JButton cancelButton = new JButton(acCancel);
            buttonPane.add(cancelButton);
        }
    }
}

From source file:org.dc.file.search.ui.DashboardForm.java

/**
 * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The
 * content of this method is always regenerated by the Form Editor.
 *//*from w ww.  j ava 2 s.c o  m*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    txtSearchKey = new javax.swing.JTextField();
    btnSearch = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    tblSearchResults = new javax.swing.JTable();
    btnFilesList = new javax.swing.JButton();
    btnPeersList = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    chkAdvancedSearch = new javax.swing.JCheckBox();
    lblHopCount = new javax.swing.JLabel();
    txtHopCount = new javax.swing.JTextField();
    lblTimeout = new javax.swing.JLabel();
    txtTimeoutSec = new javax.swing.JTextField();
    lblSec = new javax.swing.JLabel();
    progressBar = new javax.swing.JProgressBar();
    sliderHopCount = new javax.swing.JSlider();
    sliderTimout = new javax.swing.JSlider();
    jLabel2 = new javax.swing.JLabel();
    btnNewComment = new javax.swing.JButton();
    jScrollPane3 = new javax.swing.JScrollPane();
    tblComments = new javax.swing.JTable();
    jScrollPane4 = new javax.swing.JScrollPane();
    txtCommentThread = new javax.swing.JTextArea();

    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            formWindowClosing(evt);
        }
    });

    btnSearch.setText("Search");
    btnSearch.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnSearchActionPerformed(evt);
        }
    });

    tblSearchResults
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Peer", "Hop Count", "File", "Ratings" }));
    jScrollPane1.setViewportView(tblSearchResults);

    btnFilesList.setText("Files List");
    btnFilesList.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnFilesListActionPerformed(evt);
        }
    });

    btnPeersList.setText("Peers List");
    btnPeersList.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnPeersListActionPerformed(evt);
        }
    });

    jLabel1.setText("File Name:");

    chkAdvancedSearch.setText("Enable Advanced Search");
    chkAdvancedSearch.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            chkAdvancedSearchActionPerformed(evt);
        }
    });

    lblHopCount.setLabelFor(txtHopCount);
    lblHopCount.setText("Hop Count:");

    txtHopCount.setEditable(false);
    txtHopCount.setText("2");
    txtHopCount.setToolTipText("");

    lblTimeout.setLabelFor(txtTimeoutSec);
    lblTimeout.setText("Timeout:");

    txtTimeoutSec.setEditable(false);
    txtTimeoutSec.setText("5");

    lblSec.setText("sec");

    sliderHopCount.setMaximum(20);
    sliderHopCount.setMinimum(2);
    sliderHopCount.setValue(2);
    sliderHopCount.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            sliderHopCountStateChanged(evt);
        }
    });

    sliderTimout.setMaximum(60);
    sliderTimout.setMinimum(5);
    sliderTimout.setMinorTickSpacing(5);
    sliderTimout.setValue(5);
    sliderTimout.addChangeListener(new javax.swing.event.ChangeListener() {
        public void stateChanged(javax.swing.event.ChangeEvent evt) {
            sliderTimoutStateChanged(evt);
        }
    });

    jLabel2.setText("Comments");

    btnNewComment.setText("New Comment");
    btnNewComment.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            btnNewCommentActionPerformed(evt);
        }
    });

    tblComments
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Id", "Comment", "Ratings", "Reply" }));
    jScrollPane3.setViewportView(tblComments);
    if (tblComments.getColumnModel().getColumnCount() > 0) {
        tblComments.getColumnModel().getColumn(0).setPreferredWidth(250);
    }

    txtCommentThread.setColumns(20);
    txtCommentThread.setRows(5);
    jScrollPane4.setViewportView(txtCommentThread);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane1)
                            .addGroup(layout.createSequentialGroup().addComponent(jLabel1)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(txtSearchKey)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(btnSearch))
                            .addGroup(layout
                                    .createSequentialGroup().addComponent(jLabel2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btnNewComment))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                                    .createSequentialGroup().addComponent(btnFilesList)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(btnPeersList))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout
                                                    .createSequentialGroup().addComponent(lblHopCount)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(txtHopCount,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 33,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(sliderHopCount,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 170,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(lblTimeout)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(txtTimeoutSec,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 33,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(5, 5, 5).addComponent(lblSec)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                    .addComponent(sliderTimout,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 123,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                                    .addGap(5, 5, 5))))
                            .addComponent(jScrollPane3).addGroup(layout.createSequentialGroup()
                                    .addComponent(chkAdvancedSearch).addGap(0, 0, Short.MAX_VALUE))
                            .addComponent(jScrollPane4))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGap(10, 10, 10).addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(btnSearch)
                    .addComponent(txtSearchKey, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(chkAdvancedSearch)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(
                            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(lblHopCount)
                                            .addComponent(txtHopCount, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblTimeout)
                                            .addComponent(txtTimeoutSec, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(lblSec))
                                    .addComponent(sliderHopCount, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(sliderTimout, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 158,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnNewComment).addComponent(jLabel2))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 107,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btnFilesList).addComponent(btnPeersList))
                    .addContainerGap()));

    pack();
}