Example usage for javax.swing SwingConstants RIGHT

List of usage examples for javax.swing SwingConstants RIGHT

Introduction

In this page you can find the example usage for javax.swing SwingConstants RIGHT.

Prototype

int RIGHT

To view the source code for javax.swing SwingConstants RIGHT.

Click Source Link

Document

Box-orientation constant used to specify the right side of a box.

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.
 */// w  ww  .  j a va 2  s  .co 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:edu.ku.brc.af.ui.forms.FormViewObj.java

@Override
public Component createSeparator(String title) {
    int titleAlignment = builder.isLeftToRight() ? SwingConstants.LEFT : SwingConstants.RIGHT;
    JComponent titledSeparator = builder.getComponentFactory().createSeparator(title, titleAlignment);
    setControlSize(titledSeparator);/*  w  w w.j  a v  a  2s.co m*/

    return titledSeparator;
}

From source file:src.gui.ItSIMPLE.java

/**
 * This method creates the panel for all analysis functionalities
 * @return //from   w  w w. jav a2s  . c o  m
 */
private JPanel getAnalysisPane() {

    if (analysisPane == null) {
        analysisPane = new JPanel(new BorderLayout());

        //tabbed panel for distinct analysis context
        //TODO: in the future this is going to be just one panel.
        // a tabbed panel won't be necessary any more
        JTabbedPane analysisTabbedPane = new JTabbedPane();
        analysisTabbedPane.setTabPlacement(JTabbedPane.TOP);
        analysisTabbedPane.addTab("General", getAnalysisSplitPane());
        analysisTabbedPane.addTab("Petri Net", getPetriSplitPane());

        //status bar for the analysis processes
        analysisStatusBar = new JLabel("Status:");
        analysisStatusBar.setHorizontalAlignment(SwingConstants.RIGHT);
        JPanel bottomPlanSimPane = new JPanel(new BorderLayout());
        bottomPlanSimPane.add(analysisStatusBar, BorderLayout.CENTER);

        //analysisPane.add(getAnalysisSplitPane(), BorderLayout.CENTER);
        analysisPane.add(analysisTabbedPane, BorderLayout.CENTER);
        analysisPane.add(bottomPlanSimPane, BorderLayout.SOUTH);

    }

    return analysisPane;
}

From source file:src.gui.ItSIMPLE.java

/**
 * This method initializes planSimPane/*from w  w w .  j a v  a  2  s  .  c o  m*/
 *
 * @return the planSimPane
 */
private JPanel getPlanSimPane() {

    if (planSimPane == null) {
        planSimPane = new JPanel(new BorderLayout());
        planSimPane.add(getPlanSimSplitPane(), BorderLayout.CENTER);

        planSimStatusBar = new JLabel("Status:");
        planSimStatusBar.setHorizontalAlignment(SwingConstants.RIGHT);
        //planSimPane.add(planSimStatusBar, BorderLayout.SOUTH);

        simProgressBar = new JProgressBar(0, 100);
        simProgressBar.setValue(0);
        simProgressBar.setStringPainted(true);
        simProgressBar.setPreferredSize(new java.awt.Dimension(200, 18));
        simProgressBar.setVisible(false);

        simTimeSpent = new JLabel("");
        JPanel timeCtrlPlanSimPane = new JPanel(new BorderLayout());
        timeCtrlPlanSimPane.add(simProgressBar, BorderLayout.CENTER);
        timeCtrlPlanSimPane.add(simTimeSpent, BorderLayout.WEST);

        JPanel bottomPlanSimPane = new JPanel(new BorderLayout());
        bottomPlanSimPane.add(planSimStatusBar, BorderLayout.CENTER);
        //bottomPlanSimPane.add(simProgressBar, BorderLayout.EAST);
        bottomPlanSimPane.add(timeCtrlPlanSimPane, BorderLayout.EAST);
        planSimPane.add(bottomPlanSimPane, BorderLayout.SOUTH);

    }

    return planSimPane;
}

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   www  . j a  v  a2 s. co  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.sourceforge.squirrel_sql.client.preferences.UpdatePreferencesPanel.java

private JPanel createUpdateSitePanel() {
    JPanel pnl = new JPanel(new GridBagLayout());
    pnl.setBorder(BorderFactory.createTitledBorder(i18n.UPDATE_SITE_BORDER_LABEL));

    ItemListener urlUpdateItemListener = new UrlItemListener();
    DocumentListener urlDocumentListener = new UrlDocumentListener();
    final GridBagConstraints gbc = new GridBagConstraints();

    setSeparatorConstraints(gbc, 0);/*from www  .  jav a  2 s.  com*/
    gbc.gridwidth = 1;
    gbc.weightx = 0;
    gbc.fill = GridBagConstraints.NONE;
    gbc.anchor = GridBagConstraints.EAST;
    siteTypeLabel = new JLabel(i18n.SITE_TYPE_LABEL, JLabel.RIGHT);
    pnl.add(siteTypeLabel, gbc);

    // Site type

    setSeparatorConstraints(gbc, 0);
    gbc.gridx = 1;
    gbc.gridwidth = 1;
    gbc.fill = GridBagConstraints.NONE;
    pnl.add(getSiteTypePanel(), gbc);

    setSeparatorConstraints(gbc, 1);
    pnl.add(getSep(), gbc);

    // Update server name

    setLabelConstraints(gbc, 2);
    _serverLabel = new JLabel(i18n.SERVER, SwingConstants.RIGHT);
    pnl.add(_serverLabel, gbc);

    setFieldConstraints(gbc, 2);
    _updateServerName.getDocument().addDocumentListener(urlDocumentListener);
    pnl.add(_updateServerName, gbc);

    // Update server port

    setLabelConstraints(gbc, 3);
    _portLabel = new JLabel(i18n.PORT, SwingConstants.RIGHT);
    pnl.add(_portLabel, gbc);

    setFieldConstraints(gbc, 3);
    _updateServerPort.getDocument().addDocumentListener(urlDocumentListener);
    pnl.add(_updateServerPort, gbc);

    // Path to release.xml

    setLabelConstraints(gbc, 4);
    _pathLabel = new JLabel(i18n.PATH, SwingConstants.RIGHT);
    pnl.add(_pathLabel, gbc);

    setFieldConstraints(gbc, 4);
    _updateServerPath.getDocument().addDocumentListener(urlDocumentListener);
    pnl.add(_updateServerPath, gbc);

    // Channnel combo-box

    setLabelConstraints(gbc, 5);
    _channelLabel = new JLabel(i18n.CHANNEL, SwingConstants.RIGHT);
    pnl.add(_channelLabel, gbc);

    setFieldConstraints(gbc, 5);
    gbc.fill = GridBagConstraints.NONE;
    _updateServerChannel.addItemListener(urlUpdateItemListener);
    pnl.add(_updateServerChannel, gbc);

    // URL text field

    setLabelConstraints(gbc, 6);
    _urlLabel = new JLabel(i18n.URL, SwingConstants.RIGHT);
    pnl.add(_urlLabel, gbc);

    setFieldConstraints(gbc, 6);
    updateUrl();
    pnl.add(_updateUrl, gbc);

    setFieldConstraints(gbc, 7);
    JLabel lblProxy = new JLabel(s_stringMgr.getString("UpdatePreferencesPanel.proxyHintHtml"));
    lblProxy.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    lblProxy.addMouseListener(new MouseAdapter() {
        @Override
        public void mouseClicked(MouseEvent e) {
            _prefrenceTabActvivationListener.activateTabForClass(ProxyPreferenceTabComponent.class);
        }
    });
    pnl.add(lblProxy, gbc);

    // Test Connection Button Panel (Both the button and the status label

    setFieldConstraints(gbc, 8);

    Box buttonBox = Box.createHorizontalBox();
    buttonBox.add(_testConnectionButton);
    buttonBox.add(Box.createHorizontalStrut(20));
    buttonBox.add(_testConnectionStatusLabel);
    _testConnectionButton.addActionListener(new TestConnectionButtonListener());
    pnl.add(buttonBox, gbc);

    // Separator

    setSeparatorConstraints(gbc, 9);
    pnl.add(getSep(), gbc);

    // Local update directory

    setLabelConstraints(gbc, 10);
    _localPathLabel = new JLabel(i18n.LOCAL_PATH, SwingConstants.RIGHT);
    pnl.add(_localPathLabel, gbc);

    setFieldConstraints(gbc, 10);
    pnl.add(_localPath, gbc);
    return pnl;
}

From source file:net.sourceforge.squirrel_sql.client.preferences.WikiTablePreferencesPanel.java

/**
 * The detail panel contains all information of a specific configuration.
 * The user can edit the configuration in this panel.
 *//*www .  j a va  2 s. c  o m*/
private JPanel createDetailPanel() {
    JPanel jp = new JPanel(new GridBagLayout());
    jp.setBorder(BorderFactory
            .createTitledBorder(s_stringMgr.getString("WikiTablePreferencesPanel.titleDetailPanel"))); //$NON-NLS-1$
    jp.setMinimumSize(new Dimension(400, 50));

    final GridBagConstraints gbc = new GridBagConstraints();

    int row = 0;

    setLabelConstraints(gbc, row);
    nameLable = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.name"), SwingConstants.RIGHT); //$NON-NLS-1$
    jp.add(nameLable, gbc);

    setFieldConstraints(gbc, row);
    name = new JTextField(30);
    jp.add(name, gbc);

    setLabelConstraints(gbc, ++row);
    tableStartTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.tableStartTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(tableStartTagLabel, gbc);

    setFieldConstraints(gbc, row);
    tableStartTag = new JTextField(30);
    jp.add(tableStartTag, gbc);

    setLabelConstraints(gbc, ++row);
    headerStartTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.headerStartTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(headerStartTagLabel, gbc);

    setFieldConstraints(gbc, row);
    headerStartTag = new JTextField(30);
    jp.add(headerStartTag, gbc);

    setLabelConstraints(gbc, ++row);
    headerCellTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.headerCellTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(headerCellTagLabel, gbc);

    setFieldConstraints(gbc, row);
    headerCellTag = new JTextField(30);
    jp.add(headerCellTag, gbc);

    setLabelConstraints(gbc, ++row);
    headerEndTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.headerEndTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(headerEndTagLabel, gbc);

    setFieldConstraints(gbc, row);
    headerEndTag = new JTextField(30);
    jp.add(headerEndTag, gbc);

    setLabelConstraints(gbc, ++row);
    rowStartTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.rowStartTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(rowStartTagLabel, gbc);

    setFieldConstraints(gbc, row);
    rowStartTag = new JTextField(30);
    jp.add(rowStartTag, gbc);

    setLabelConstraints(gbc, ++row);
    cellTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.cellTag"), SwingConstants.RIGHT); //$NON-NLS-1$
    jp.add(cellTagLabel, gbc);

    setFieldConstraints(gbc, row);
    cellTag = new JTextField(30);
    jp.add(cellTag, gbc);

    setLabelConstraints(gbc, ++row);
    rowEndTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.rowEndTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(rowEndTagLabel, gbc);

    setFieldConstraints(gbc, row);
    rowEndTag = new JTextField(30);
    jp.add(rowEndTag, gbc);

    setLabelConstraints(gbc, ++row);
    tableEndTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.tableEndTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(tableEndTagLabel, gbc);

    setFieldConstraints(gbc, row);
    tableEndTag = new JTextField(30);
    jp.add(tableEndTag, gbc);

    setLabelConstraints(gbc, ++row);
    noWikiTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.noWikiTag"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(noWikiTagLabel, gbc);

    setFieldConstraints(gbc, row);
    noWikiTag = new JTextField(30);
    jp.add(noWikiTag, gbc);

    setLabelConstraints(gbc, ++row);
    noWikiTagLabel = new JLabel(s_stringMgr.getString("WikiTablePreferencesPanel.enabled"), //$NON-NLS-1$
            SwingConstants.RIGHT);
    jp.add(noWikiTagLabel, gbc);

    setFieldConstraints(gbc, row);
    enabled = new JCheckBox();
    jp.add(enabled, gbc);

    addFocusLostListeners();

    return jp;
}

From source file:net.technicpack.launcher.ui.InstallerFrame.java

private void setupStandardInstall(JPanel panel) {
    panel.setLayout(new GridBagLayout());

    JLabel standardSpiel = new JLabel("<html><body align=\"left\" style='margin-right:10px;'>"
            + resources.getString("launcher.installer.standardspiel") + "</body></html>");
    standardSpiel.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 16));
    standardSpiel.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    standardSpiel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    panel.add(standardSpiel, new GridBagConstraints(0, 0, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(9, 0, 0, 3), 0, 0));

    panel.add(Box.createGlue(), new GridBagConstraints(0, 1, 3, 1, 1.0, 0.7, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

    standardDefaultDirectory = new JCheckBox(resources.getString("launcher.installer.default"));
    standardDefaultDirectory.setOpaque(false);
    standardDefaultDirectory.setHorizontalAlignment(SwingConstants.RIGHT);
    standardDefaultDirectory.setBorder(BorderFactory.createEmptyBorder());
    standardDefaultDirectory.setIconTextGap(0);
    standardDefaultDirectory.setSelectedIcon(resources.getIcon("checkbox_closed.png"));
    standardDefaultDirectory.setIcon(resources.getIcon("checkbox_open.png"));
    standardDefaultDirectory.setFocusPainted(false);
    standardDefaultDirectory.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 16));
    standardDefaultDirectory.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    standardDefaultDirectory.setIconTextGap(6);
    standardDefaultDirectory.setSelected(settings.isPortable() || settings.getTechnicRoot().getAbsolutePath()
            .equals(SettingsFactory.getTechnicHomeDir().getAbsolutePath()));
    standardDefaultDirectory.addActionListener(new ActionListener() {
        @Override/*from   w ww .  j  ava2  s .c o m*/
        public void actionPerformed(ActionEvent e) {
            useDefaultDirectoryChanged();
        }
    });
    panel.add(standardDefaultDirectory, new GridBagConstraints(0, 2, 3, 1, 0, 0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 24, 12, 0), 0, 0));

    JLabel installFolderLabel = new JLabel(resources.getString("launcher.installer.folder"));
    installFolderLabel.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    installFolderLabel.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    panel.add(installFolderLabel, new GridBagConstraints(0, 3, 1, 1, 0, 0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 24, 0, 8), 0, 0));

    String installDir = SettingsFactory.getTechnicHomeDir().getAbsolutePath();

    if (!settings.isPortable())
        installDir = settings.getTechnicRoot().getAbsolutePath();

    standardInstallDir = new JTextField(installDir);
    standardInstallDir.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    standardInstallDir.setBackground(LauncherFrame.COLOR_FORMELEMENT_INTERNAL);
    standardInstallDir.setHighlighter(null);
    standardInstallDir.setEditable(false);
    standardInstallDir.setCursor(null);
    panel.add(standardInstallDir, new GridBagConstraints(1, 3, 1, 1, 1, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0));

    standardSelectButton = new RoundedButton(resources.getString("launcher.installer.select"));
    standardSelectButton.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    standardSelectButton.setContentAreaFilled(false);
    standardSelectButton.setHoverForeground(LauncherFrame.COLOR_BLUE);
    standardSelectButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            selectStandard();
        }
    });
    panel.add(standardSelectButton, new GridBagConstraints(2, 3, 1, 1, 0, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 16), 0, 0));

    useDefaultDirectoryChanged();

    panel.add(Box.createGlue(), new GridBagConstraints(0, 4, 3, 1, 1.0, 1.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

    String defaultLocaleText = resources.getString("launcheroptions.language.default");
    if (!resources.isDefaultLocaleSupported()) {
        defaultLocaleText = defaultLocaleText
                .concat(" (" + resources.getString("launcheroptions.language.unavailable") + ")");
    }

    standardLanguages = new JComboBox();
    standardLanguages.addItem(new LanguageItem(ResourceLoader.DEFAULT_LOCALE, defaultLocaleText, resources));
    for (int i = 0; i < ResourceLoader.SUPPORTED_LOCALES.length; i++) {
        standardLanguages
                .addItem(new LanguageItem(resources.getCodeFromLocale(ResourceLoader.SUPPORTED_LOCALES[i]),
                        ResourceLoader.SUPPORTED_LOCALES[i].getDisplayName(ResourceLoader.SUPPORTED_LOCALES[i]),
                        resources.getVariant(ResourceLoader.SUPPORTED_LOCALES[i])));
    }
    if (!settings.getLanguageCode().equalsIgnoreCase(ResourceLoader.DEFAULT_LOCALE)) {
        Locale loc = resources.getLocaleFromCode(settings.getLanguageCode());

        for (int i = 0; i < ResourceLoader.SUPPORTED_LOCALES.length; i++) {
            if (loc.equals(ResourceLoader.SUPPORTED_LOCALES[i])) {
                standardLanguages.setSelectedIndex(i + 1);
                break;
            }
        }
    }
    standardLanguages.setBorder(new RoundBorder(LauncherFrame.COLOR_SCROLL_THUMB, 1, 10));
    standardLanguages.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 14));
    standardLanguages.setUI(new LanguageCellUI(resources));
    standardLanguages.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    standardLanguages.setBackground(LauncherFrame.COLOR_SELECTOR_BACK);
    standardLanguages.setRenderer(new LanguageCellRenderer(resources, "globe.png",
            LauncherFrame.COLOR_SELECTOR_BACK, LauncherFrame.COLOR_WHITE_TEXT));
    standardLanguages.setEditable(false);
    standardLanguages.setFocusable(false);
    standardLanguages.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            standardLanguageChanged();
        }
    });
    panel.add(standardLanguages, new GridBagConstraints(0, 5, 1, 0, 0, 0, GridBagConstraints.SOUTHWEST,
            GridBagConstraints.NONE, new Insets(0, 8, 8, 0), 0, 0));

    RoundedButton install = new RoundedButton(resources.getString("launcher.installer.install"));
    install.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    install.setContentAreaFilled(false);
    install.setForeground(LauncherFrame.COLOR_BUTTON_BLUE);
    install.setHoverForeground(LauncherFrame.COLOR_BLUE);
    install.setBorder(BorderFactory.createEmptyBorder(8, 56, 8, 56));
    install.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            standardInstall();
        }
    });
    panel.add(install, new GridBagConstraints(1, 5, 2, 1, 0, 0, GridBagConstraints.EAST,
            GridBagConstraints.VERTICAL, new Insets(0, 0, 8, 8), 0, 0));

}

From source file:net.technicpack.launcher.ui.LauncherFrame.java

private void initComponents() {
    BorderLayout layout = new BorderLayout();
    setLayout(layout);//  ww  w.  j ava 2 s  .c  o  m

    /////////////////////////////////////////////////////////////
    //HEADER
    /////////////////////////////////////////////////////////////
    JPanel header = new JPanel();
    header.setLayout(new BoxLayout(header, BoxLayout.LINE_AXIS));
    header.setBackground(COLOR_BLUE);
    header.setForeground(COLOR_WHITE_TEXT);
    header.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 10));
    this.add(header, BorderLayout.PAGE_START);

    ImageIcon headerIcon = resources.getIcon("platform_icon_title.png");
    JButton headerLabel = new JButton(headerIcon);
    headerLabel.setBorder(BorderFactory.createEmptyBorder(5, 8, 5, 0));
    headerLabel.setContentAreaFilled(false);
    headerLabel.setFocusPainted(false);
    headerLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    headerLabel.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            DesktopUtils.browseUrl("http://beta.technicpack.net/");
        }
    });
    header.add(headerLabel);

    header.add(Box.createRigidArea(new Dimension(6, 0)));

    ActionListener tabListener = new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            selectTab(e.getActionCommand());
        }
    };

    discoverTab = new HeaderTab(resources.getString("launcher.title.discover"), resources);
    header.add(discoverTab);
    discoverTab.setActionCommand(TAB_DISCOVER);
    discoverTab.addActionListener(tabListener);

    modpacksTab = new HeaderTab(resources.getString("launcher.title.modpacks"), resources);
    modpacksTab.setIsActive(true);
    modpacksTab.setHorizontalTextPosition(SwingConstants.LEADING);
    modpacksTab.addActionListener(tabListener);
    modpacksTab.setActionCommand(TAB_MODPACKS);
    header.add(modpacksTab);

    newsTab = new HeaderTab(resources.getString("launcher.title.news"), resources);
    newsTab.setLayout(null);
    newsTab.addActionListener(tabListener);
    newsTab.setActionCommand(TAB_NEWS);
    header.add(newsTab);

    CountCircle newsCircle = new CountCircle();
    newsCircle.setBackground(COLOR_RED);
    newsCircle.setForeground(COLOR_WHITE_TEXT);
    newsCircle.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS_BOLD, 14));
    newsTab.add(newsCircle);
    newsCircle.setBounds(10, 17, 25, 25);

    header.add(Box.createHorizontalGlue());

    JPanel rightHeaderPanel = new JPanel();
    rightHeaderPanel.setOpaque(false);
    rightHeaderPanel.setLayout(new BoxLayout(rightHeaderPanel, BoxLayout.PAGE_AXIS));
    rightHeaderPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0));

    JPanel windowGadgetPanel = new JPanel();
    windowGadgetPanel.setOpaque(false);
    windowGadgetPanel.setLayout(new BoxLayout(windowGadgetPanel, BoxLayout.LINE_AXIS));
    windowGadgetPanel.setAlignmentX(RIGHT_ALIGNMENT);

    ImageIcon minimizeIcon = resources.getIcon("minimize.png");
    JButton minimizeButton = new JButton(minimizeIcon);
    minimizeButton.setBorder(BorderFactory.createEmptyBorder());
    minimizeButton.setContentAreaFilled(false);
    minimizeButton.setCursor(new Cursor(Cursor.HAND_CURSOR));
    minimizeButton.setFocusable(false);
    minimizeButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            minimizeWindow();
        }
    });
    windowGadgetPanel.add(minimizeButton);

    ImageIcon closeIcon = resources.getIcon("close.png");
    JButton closeButton = new JButton(closeIcon);
    closeButton.setBorder(BorderFactory.createEmptyBorder());
    closeButton.setContentAreaFilled(false);
    closeButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            closeWindow();
        }
    });
    closeButton.setCursor(new Cursor(Cursor.HAND_CURSOR));
    closeButton.setFocusable(false);
    windowGadgetPanel.add(closeButton);

    rightHeaderPanel.add(windowGadgetPanel);
    rightHeaderPanel.add(Box.createVerticalGlue());

    JButton launcherOptionsLabel = new JButton(resources.getString("launcher.title.options"));
    launcherOptionsLabel.setIcon(resources.getIcon("options_cog.png"));
    launcherOptionsLabel.setFont(resources.getFont(ResourceLoader.FONT_RALEWAY, 14));
    launcherOptionsLabel.setForeground(COLOR_WHITE_TEXT);
    launcherOptionsLabel.setHorizontalAlignment(SwingConstants.RIGHT);
    launcherOptionsLabel.setHorizontalTextPosition(SwingConstants.LEADING);
    launcherOptionsLabel.setAlignmentX(RIGHT_ALIGNMENT);
    launcherOptionsLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    launcherOptionsLabel.setBorder(BorderFactory.createEmptyBorder());
    launcherOptionsLabel.setContentAreaFilled(false);
    launcherOptionsLabel.setFocusPainted(false);
    launcherOptionsLabel.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            openLauncherOptions();
        }
    });
    rightHeaderPanel.add(launcherOptionsLabel);

    header.add(rightHeaderPanel);

    /////////////////////////////////////////////////////////////
    // CENTRAL AREA
    /////////////////////////////////////////////////////////////
    centralPanel = new TintablePanel();
    centralPanel.setBackground(COLOR_CHARCOAL);
    centralPanel.setForeground(COLOR_WHITE_TEXT);
    centralPanel.setTintColor(COLOR_CENTRAL_BACK);
    this.add(centralPanel, BorderLayout.CENTER);
    centralPanel.setLayout(new BorderLayout());

    modpackPanel = new ModpackInfoPanel(resources, iconRepo, logoRepo, backgroundRepo, avatarRepo,
            new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    openModpackOptions((ModpackModel) e.getSource());
                }
            }, new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    refreshModpackOptions((ModpackModel) e.getSource());
                }
            });
    modpackSelector.setInfoPanel(modpackPanel);
    playButton = modpackPanel.getPlayButton();
    playButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            if (e.getSource() instanceof ModpackModel) {
                setupPlayButtonText((ModpackModel) e.getSource(), userModel.getCurrentUser());
            } else if (installer.isCurrentlyRunning()) {
                installer.cancel();
                setupPlayButtonText(modpackSelector.getSelectedPack(), userModel.getCurrentUser());
            } else {
                launchModpack();
            }
        }
    });

    modpackPanel.getDeleteButton().addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            if (JOptionPane.showConfirmDialog(LauncherFrame.this,
                    resources.getString("modpackoptions.delete.confirmtext"),
                    resources.getString("modpackoptions.delete.confirmtitle"),
                    JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {
                modpackSelector.getSelectedPack().delete();
                modpackSelector.forceRefresh();
            }
        }
    });

    infoSwap = new JPanel();
    infoLayout = new CardLayout();
    infoSwap.setLayout(infoLayout);
    infoSwap.setOpaque(false);
    newsInfoPanel = new NewsInfoPanel(resources, avatarRepo);
    infoSwap.add(discoverInfoPanel, "discover");

    JPanel newsHost = new JPanel();
    infoSwap.add(newsHost, "news");
    JPanel modpackHost = new JPanel();
    infoSwap.add(modpackHost, "modpacks");
    centralPanel.add(infoSwap, BorderLayout.CENTER);

    newsSelector = new NewsSelector(resources, newsInfoPanel, platformApi, avatarRepo, newsCircle, settings);
    newsHost.setLayout(new BorderLayout());
    newsHost.add(newsInfoPanel, BorderLayout.CENTER);
    newsHost.add(newsSelector, BorderLayout.WEST);

    modpackHost.setLayout(new BorderLayout());
    modpackHost.add(modpackPanel, BorderLayout.CENTER);
    modpackHost.add(modpackSelector, BorderLayout.WEST);

    footer = new TintablePanel();
    footer.setTintColor(COLOR_CENTRAL_BACK);
    footer.setBackground(COLOR_FOOTER);
    footer.setLayout(new BoxLayout(footer, BoxLayout.LINE_AXIS));
    footer.setForeground(COLOR_WHITE_TEXT);
    footer.setBorder(BorderFactory.createEmptyBorder(3, 6, 3, 12));

    userWidget = new UserWidget(resources, skinRepository);
    userWidget.setMaximumSize(userWidget.getPreferredSize());
    footer.add(userWidget);

    JLabel dashText = new JLabel("| ");
    dashText.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    dashText.setFont(resources.getFont(ResourceLoader.FONT_RALEWAY, 15));
    footer.add(dashText);

    JButton logout = new JButton(resources.getString("launcher.user.logout"));
    logout.setBorder(BorderFactory.createEmptyBorder());
    logout.setContentAreaFilled(false);
    logout.setFocusable(false);
    logout.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    logout.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    logout.setFont(resources.getFont(ResourceLoader.FONT_RALEWAY, 15));
    logout.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            logout();
        }
    });
    footer.add(logout);

    installProgress = new ProgressBar();
    installProgress.setForeground(Color.white);
    installProgress.setBackground(LauncherFrame.COLOR_GREEN);
    installProgress.setBorder(BorderFactory.createEmptyBorder(5, 45, 4, 45));
    installProgress.setIcon(resources.getIcon("download_icon.png"));
    installProgress.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 12));
    installProgress.setVisible(false);
    footer.add(installProgress);

    installProgressPlaceholder = Box.createHorizontalGlue();
    footer.add(installProgressPlaceholder);

    JLabel buildCtrl = new JLabel(resources.getString("launcher.build.text", resources.getLauncherBuild(),
            resources.getString("launcher.build." + settings.getBuildStream())));
    buildCtrl.setForeground(COLOR_WHITE_TEXT);
    buildCtrl.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 14));
    buildCtrl.setHorizontalTextPosition(SwingConstants.RIGHT);
    buildCtrl.setHorizontalAlignment(SwingConstants.RIGHT);
    footer.add(buildCtrl);

    this.add(footer, BorderLayout.PAGE_END);
}

From source file:op.care.med.inventory.DlgTX.java

/**
 * This method is called from within the constructor to
 * initialize the form.// ww  w  .j a va2  s.  c om
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the PrinterForm Editor.
 */
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
private void initComponents() {
    lblText = new JLabel();
    txtText = new JTextField();
    txtValue = new JTextField();
    lblValue = new JLabel();
    lblUnit = new JLabel();
    lblWeightControl = new JLabel();
    txtWeightControlled = new JTextField();
    lblUnit2 = new JLabel();
    panel1 = new JPanel();
    btnCancel = new JButton();
    btnBuchung = new JButton();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(
            new FormLayout("default, $lcgap, default, $ugap, 141dlu:grow, $rgap, default, $lcgap, default",
                    "2*(default, $lgap), fill:default, $lgap, default, $lgap, fill:default"));

    //---- lblText ----
    lblText.setText("Buchungstext");
    lblText.setFont(new Font("Arial", Font.PLAIN, 14));
    contentPane.add(lblText, CC.xy(3, 3, CC.DEFAULT, CC.TOP));

    //---- txtText ----
    txtText.setColumns(100);
    txtText.addActionListener(e -> txtTextActionPerformed(e));
    contentPane.add(txtText, CC.xywh(5, 3, 3, 1));

    //---- txtValue ----
    txtValue.setHorizontalAlignment(SwingConstants.RIGHT);
    txtValue.setText("jTextField1");
    txtValue.setFont(new Font("Arial", Font.PLAIN, 14));
    txtValue.addCaretListener(e -> txtMengeCaretUpdate(e));
    txtValue.addFocusListener(new FocusAdapter() {
        @Override
        public void focusGained(FocusEvent e) {
            txtMengeFocusGained(e);
        }
    });
    txtValue.addActionListener(e -> txtValueActionPerformed(e));
    contentPane.add(txtValue, CC.xy(5, 5));

    //---- lblValue ----
    lblValue.setText("Menge");
    lblValue.setFont(new Font("Arial", Font.PLAIN, 14));
    contentPane.add(lblValue, CC.xy(3, 5));

    //---- lblUnit ----
    lblUnit.setHorizontalAlignment(SwingConstants.TRAILING);
    lblUnit.setText("jLabel4");
    lblUnit.setFont(new Font("Arial", Font.PLAIN, 14));
    contentPane.add(lblUnit, CC.xy(7, 5));

    //---- lblWeightControl ----
    lblWeightControl.setText("Menge");
    lblWeightControl.setFont(new Font("Arial", Font.PLAIN, 14));
    contentPane.add(lblWeightControl, CC.xy(3, 7));

    //---- txtWeightControlled ----
    txtWeightControlled.setHorizontalAlignment(SwingConstants.RIGHT);
    txtWeightControlled.setText("jTextField1");
    txtWeightControlled.setFont(new Font("Arial", Font.PLAIN, 14));
    txtWeightControlled.addFocusListener(new FocusAdapter() {
        @Override
        public void focusGained(FocusEvent e) {
            txtWeightControlledFocusGained(e);
        }
    });
    txtWeightControlled.addCaretListener(e -> txtWeightControlledCaretUpdate(e));
    contentPane.add(txtWeightControlled, CC.xy(5, 7));

    //---- lblUnit2 ----
    lblUnit2.setHorizontalAlignment(SwingConstants.TRAILING);
    lblUnit2.setText("g");
    lblUnit2.setFont(new Font("Arial", Font.PLAIN, 14));
    contentPane.add(lblUnit2, CC.xy(7, 7, CC.LEFT, CC.DEFAULT));

    //======== panel1 ========
    {
        panel1.setLayout(new BoxLayout(panel1, BoxLayout.X_AXIS));

        //---- btnCancel ----
        btnCancel.setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/cancel.png")));
        btnCancel.addActionListener(e -> btnCancelActionPerformed(e));
        panel1.add(btnCancel);

        //---- btnBuchung ----
        btnBuchung.setIcon(new ImageIcon(getClass().getResource("/artwork/22x22/apply.png")));
        btnBuchung.addActionListener(e -> btnBuchungActionPerformed(e));
        panel1.add(btnBuchung);
    }
    contentPane.add(panel1, CC.xywh(5, 9, 3, 1, CC.RIGHT, CC.DEFAULT));
    setSize(600, 165);
    setLocationRelativeTo(getOwner());
}