Examples of JLabel4j_std


Examples of com.commander4j.gui.JLabel4j_std

          doc.setDocumentFilter(new JFixedSizeFilter(JDBCustomer.field_customer_id));
          jDesktopPane1.add(jTextFieldCustomer);
          jTextFieldCustomer.setBounds(340, 105, 103, 21);
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setBounds(2, 11, 108, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Location_ID"));
          jLabel3.setBounds(260, 11, 74, 21);
        }
        {
          jLabel23 = new JLabel4j_std();
          jLabel23.setHorizontalAlignment(SwingConstants.TRAILING);
          jDesktopPane1.add(jLabel23);
          jLabel23.setText(lang.get("lbl_Customer_ID"));
          jLabel23.setBounds(243, 105, 91, 21);
        }
        {
          ComboBoxModel<JDBUom> jComboBox2Model = new DefaultComboBoxModel<JDBUom>(uomList);
          jComboBoxUOM = new JComboBox4j<JDBUom>();
          jDesktopPane1.add(jComboBoxUOM);
          jComboBoxUOM.setModel(jComboBox2Model);
          jComboBoxUOM.setBounds(580, 75, 125, 23);
          jComboBoxUOM.setMaximumRowCount(12);
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setText(lang.get("lbl_Material_UOM"));
          jLabel4.setBounds(490, 75, 88, 21);
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jButtonAdd = new JButton4j(Common.icon_add);
          jDesktopPane1.add(jButtonAdd);
          jButtonAdd.setText(lang.get("btn_Add"));
          jButtonAdd.setBounds(196, 226, 98, 32);
          jButtonAdd.setMnemonic(lang.getMnemonicChar());
          jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_ADD"));
          jButtonAdd.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              addRecord();
            }
          });
        }
        {
          jButtonEdit = new JButton4j(Common.icon_edit);
          jDesktopPane1.add(jButtonEdit);
          jButtonEdit.setText(lang.get("btn_Edit"));
          jButtonEdit.setBounds(294, 226, 98, 32);
          jButtonEdit.setMnemonic(lang.getMnemonicChar());
          jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT"));
          jButtonEdit.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              editRecord();
            }
          });
        }
        {
          jButtonDelete = new JButton4j(Common.icon_delete);
          jDesktopPane1.add(jButtonDelete);
          jButtonDelete.setText(lang.get("btn_Delete"));
          jButtonDelete.setBounds(392, 226, 98, 32);
          jButtonDelete.setMnemonic(lang.getMnemonicChar());
          jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_DELETE"));
          jButtonDelete.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              deleteRecord();
            }
          });
        }
        {
          jButtonSummary = new JButton4j(Common.icon_report);
          jButtonSummary.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent e)
            {
              print_summary();
            }
          });
          jDesktopPane1.add(jButtonSummary);
          jButtonSummary.setText(lang.get("btn_Print_Summary"));
          jButtonSummary.setBounds(686, 226, 98, 32);
          jButtonSummary.setMnemonic(lang.getMnemonicChar());
          jButtonSummary.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PAL_SUMMARY"));
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(882, 226, 98, 32);
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JDBQuery2.closeStatement(listStatement);
              dispose();
            }
          });
        }
        {
          jButtonPrint = new JButton4j(Common.icon_report);
          jDesktopPane1.add(jButtonPrint);
          jButtonPrint.setText(lang.get("btn_Print"));
          jButtonPrint.setBounds(490, 226, 98, 32);
          jButtonPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PALLETS"));
          jButtonPrint.setMnemonic(lang.getMnemonicChar());
          jButtonPrint.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              printRecords("multi");

            }
          });
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Limit"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(702, 200, 97, 21);
        }
        {
          ComboBoxModel<String> jComboBoxSortByModel = new DefaultComboBoxModel<String>(new String[]
          { "DATE_OF_MANUFACTURE", "DATE_CREATED","DATE_UPDATED","SSCC", "MATERIAL,BATCH_NUMBER", "MATERIAL,PROCESS_ORDER", "BATCH_NUMBER,MATERIAL", "PROCESS_ORDER,DATE_OF_MANUFACTURE", "QUANTITY", "STATUS", "LOCATION_ID", "UOM", "EAN", "VARIANT" });
          jComboBoxSortBy = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(318, 198, 355, 23);
        }
        {
          ComboBoxModel<String> jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel<String>(Common.palletStatusIncBlank);
          jComboBoxPalletStatus = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxPalletStatus);
          jComboBoxPalletStatus.setModel(jComboBoxDefaultPalletStatusModel);
          jComboBoxPalletStatus.setBounds(805, 11, 169, 23);
        }
        {
          jLabel15 = new JLabel4j_std();
          jDesktopPane1.add(jLabel15);
          jLabel15.setText(lang.get("lbl_Pallet_Status"));
          jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel15.setBounds(702, 11, 97, 21);
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jToggleButtonSequence.setSelected(true);
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(680, 198, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }
        {
          jLabelQuantity = new JLabel4j_std();
          jDesktopPane1.add(jLabelQuantity);
          jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
          jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity.setBounds(490, 105, 88, 21);
        }
        {

          jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
          jDesktopPane1.add(jFormattedTextFieldQuantity);
          jFormattedTextFieldQuantity.setFont(Common.font_std);
          jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldQuantity.setBounds(604, 105, 97, 21);
          jFormattedTextFieldQuantity.setVerifyInputWhenFocusTarget(false);
          jFormattedTextFieldQuantity.setEnabled(false);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material_Batch"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(490, 11, 88, 21);
        }
        {
          jTextFieldBatch = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setBounds(582, 11, 98, 21);
        }
        {
          jLabelProcessOrder = new JLabel4j_std();
          jDesktopPane1.add(jLabelProcessOrder);
          jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
          jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProcessOrder.setBounds(490, 44, 88, 21);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setBounds(582, 44, 98, 21);
        }
        {
          jLabelProductionDate = new JLabel4j_std();
          jDesktopPane1.add(jLabelProductionDate);
          jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
          jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProductionDate.setBounds(2, 42, 108, 25);
        }
        {
          jTextFieldEAN = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldEAN.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_ean));
          jDesktopPane1.add(jTextFieldEAN);
          jTextFieldEAN.setBounds(805, 75, 117, 21);
          jTextFieldEAN.setFocusCycleRoot(true);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_UOM_EAN"));
          jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel5.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel5.setBounds(702, 75, 97, 21);
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText("/");
          jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel6.setBounds(922, 75, 15, 21);
        }
        {
          jTextFieldVariant = new JTextField4j();
          jTextFieldVariant.setHorizontalAlignment(SwingConstants.CENTER);
          AbstractDocument doc = (AbstractDocument) jTextFieldVariant.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_variant));
          jDesktopPane1.add(jTextFieldVariant);
          jTextFieldVariant.setBounds(937, 75, 21, 21);
          jTextFieldVariant.setFocusCycleRoot(true);
        }
        {
          jCheckBoxQuantity = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxQuantity);
          jCheckBoxQuantity.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxQuantity.setBounds(582, 105, 21, 21);
          jCheckBoxQuantity.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxQuantity.isSelected())
              {
                jFormattedTextFieldQuantity.setValue(0);
                jFormattedTextFieldQuantity.setEnabled(true);
              } else
              {
                jFormattedTextFieldQuantity.setValue(0);
                jFormattedTextFieldQuantity.setEnabled(false);
              }
            }
          });
        }
        {
          domDateFrom = new JDateControl();
          jDesktopPane1.add(domDateFrom);
          domDateFrom.setEnabled(false);
          domDateFrom.setFont(Common.font_std);
          domDateFrom.setBounds(144, 40, 120, 25);

        }
        {
          jCheckBoxDOMTo = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxDOMTo);
          jCheckBoxDOMTo.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxDOMTo.setBounds(313, 40, 21, 25);
          jCheckBoxDOMTo.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxDOMTo.isSelected())
              {
                button_CalendardomDateTo.setEnabled(true);
                domDateTo.setEnabled(true);
              } else
              {
                domDateTo.setEnabled(false);
                button_CalendardomDateTo.setEnabled(false);
              }
            }
          });
        }
        {
          domDateTo = new JDateControl();
          jDesktopPane1.add(domDateTo);
          domDateTo.setEnabled(false);
          domDateTo.setFont(Common.font_std);
          domDateTo.setBounds(340, 40, 120, 25);
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Sort_By"));
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel7.setBounds(243, 198, 69, 21);
        }
        {
          SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel();
          jSpinnerIntModel.setMinimum(1);
          jSpinnerIntModel.setMaximum(5000);
          jSpinnerIntModel.setStepSize(1);
          jSpinnerLimit = new JSpinner();
          JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerLimit);
          ne.getTextField().setFont(Common.font_std);
          jSpinnerLimit.setEditor(ne);
          jSpinnerLimit.setModel(jSpinnerIntModel);
          jSpinnerLimit.setBounds(824, 200, 68, 21);
          jSpinnerLimit.setValue(1000);
          jSpinnerLimit.getEditor().setSize(45, 21);
          jDesktopPane1.add(jSpinnerLimit);
        }
        {
          jCheckBoxLimit = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxLimit);
          jCheckBoxLimit.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxLimit.setBounds(801, 200, 21, 21);
          jCheckBoxLimit.setSelected(true);
          jCheckBoxLimit.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxLimit.isSelected())
              {
                jSpinnerLimit.setEnabled(true);
              } else
              {
                jSpinnerLimit.setEnabled(false);
              }
            }
          });
        }
        {
          jButtonLookupProcessOrder = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupProcessOrder);
          jButtonLookupProcessOrder.setBounds(680, 44, 21, 21);
          jButtonLookupProcessOrder.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgCriteriaDefault = "Ready";
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.processOrders())
              {
                jTextFieldProcessOrder.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupBatch = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupBatch);

          jButtonLookupBatch.setBounds(680, 11, 21, 21);
          jButtonLookupBatch.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.materialBatches())
              {
                jTextFieldBatch.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupMaterial);
          jButtonLookupMaterial.setFont(new java.awt.Font("Dialog", 1, 7));
          jButtonLookupMaterial.setBounds(243, 11, 21, 21);
          jButtonLookupMaterial.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgAutoExec = false;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.materials())
              {
                jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupLocation = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupLocation);
          jButtonLookupLocation.setBounds(444, 11, 21, 21);
          jButtonLookupLocation.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "Y";
              if (JLaunchLookup.locations())
              {
                jTextFieldLocation.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupCustomer = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupCustomer);
          jButtonLookupCustomer.setBounds(444, 105, 21, 21);
          jButtonLookupCustomer.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.customers())
              {
                jTextFieldCustomer.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jCheckBoxDOMFrom = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxDOMFrom);
          jCheckBoxDOMFrom.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxDOMFrom.setBounds(120, 40, 21, 25);
          jCheckBoxDOMFrom.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxDOMFrom.isSelected())
              {
                domDateFrom.setEnabled(true);
                button_CalendardomDateFrom.setEnabled(true);
              } else
              {
                domDateFrom.setEnabled(false);
                button_CalendardomDateFrom.setEnabled(false);
              }
            }
          });
        }
        {
          jTextFieldSSCC = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
          jDesktopPane1.add(jTextFieldSSCC);
          jTextFieldSSCC.setBounds(122, 105, 120, 21);
        }
        {
          jLabelSCC = new JLabel4j_std();
          jDesktopPane1.add(jLabelSCC);
          jLabelSCC.setText(lang.get("lbl_Pallet_SSCC"));
          jLabelSCC.setBounds(2, 105, 108, 21);
          jLabelSCC.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          expiryDateFrom = new JDateControl();
          jDesktopPane1.add(expiryDateFrom);
          expiryDateFrom.setEnabled(false);
          expiryDateFrom.setFont(Common.font_std);
          expiryDateFrom.setBounds(144, 71, 120, 25);
        }
        {
          expiryDateTo = new JDateControl();
          jDesktopPane1.add(expiryDateTo);
          expiryDateTo.setEnabled(false);
          expiryDateTo.setFont(Common.font_std);
          expiryDateTo.setBounds(340, 71, 120, 25);
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(2, 71, 108, 25);
        }
        {
          jCheckBoxExpiryFrom = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxExpiryFrom);
          jCheckBoxExpiryFrom.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxExpiryFrom.setBounds(120, 71, 21, 25);
          jCheckBoxExpiryFrom.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxExpiryFrom.isSelected())
              {
                expiryDateFrom.setEnabled(true);
                calendarButtonexpiryDateFrom.setEnabled(true);
              } else
              {
                expiryDateFrom.setEnabled(false);
                calendarButtonexpiryDateFrom.setEnabled(false);
              }
            }
          });
        }
        {
          jCheckBoxExpiryTo = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxExpiryTo);
          jCheckBoxExpiryTo.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxExpiryTo.setBounds(313, 71, 21, 25);
          jCheckBoxExpiryTo.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxExpiryTo.isSelected())
              {
                expiryDateTo.setEnabled(true);
                calendarButtonexpiryDateTo.setEnabled(true);
              } else
              {
                expiryDateTo.setEnabled(false);
                calendarButtonexpiryDateTo.setEnabled(false);
              }
            }
          });
        }
        {
          jButtonLabel = new JButton4j(Common.icon_report);
          jButtonLabel.setToolTipText("Print labels for all returned rows below");
          jDesktopPane1.add(jButtonLabel);
          jButtonLabel.setText(lang.get("btn_Label"));
          jButtonLabel.setMnemonic(java.awt.event.KeyEvent.VK_L);
          jButtonLabel.setBounds(588, 226, 98, 32);
          jButtonLabel.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              printLabels();
            }
          });
        }

        {
          jLabel8_1 = new JLabel4j_std();
          jLabel8_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8_1.setText(lang.get("lbl_Despatch_No"));
          jLabel8_1.setBounds(702, 44, 97, 21);
          jDesktopPane1.add(jLabel8_1);
        }

        {
          jTextFieldDespatch_No = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldDespatch_No.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBDespatch.field_despatch_no));
          jTextFieldDespatch_No.setFocusCycleRoot(true);
          jTextFieldDespatch_No.setBounds(805, 44, 117, 21);
          jDesktopPane1.add(jTextFieldDespatch_No);
        }

        {
          final JButton4j exportXlsButton = new JButton4j(Common.icon_XLS);
          exportXlsButton.setToolTipText("Export all rows below to spreadsheet.");
          exportXlsButton.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              exportExcel("multi");
            }
          });
          exportXlsButton.setText(lang.get("btn_Excel"));
          exportXlsButton.setBounds(784, 226, 98, 32);
          jDesktopPane1.add(exportXlsButton);
        }

        {
          jLabel5_1 = new JLabel4j_std();
          jLabel5_1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel5_1.setText(lang.get("lbl_Confirmed"));
          jLabel5_1.setBounds(702, 167, 97, 21);
          jDesktopPane1.add(jLabel5_1);
        }

        {
          jCheckBoxConfirmed = new JCheckBox4j();
          jCheckBoxConfirmed.setSelected(true);
          jCheckBoxConfirmed.setBackground(Color.WHITE);
          jCheckBoxConfirmed.setBounds(801, 167, 21, 21);
          jDesktopPane1.add(jCheckBoxConfirmed);
        }

        {
          jButtonClear = new JButton4j(Common.icon_clear);
          jButtonClear.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              clearFilter();

            }
          });
          jButtonClear.setText(lang.get("btn_Clear_Filter"));
          jButtonClear.setBounds(98, 226, 98, 32);
          jDesktopPane1.add(jButtonClear);
        }

        button_CalendardomDateFrom = new JCalendarButton(domDateFrom);
        button_CalendardomDateFrom.setSize(21, 21);
        button_CalendardomDateFrom.setEnabled(false);
        button_CalendardomDateFrom.setLocation(274, 42);
        jDesktopPane1.add(button_CalendardomDateFrom);

        button_CalendardomDateTo = new JCalendarButton(domDateTo);
        button_CalendardomDateTo.setSize(21, 21);
        button_CalendardomDateTo.setEnabled(false);
        button_CalendardomDateTo.setLocation(470, 42);
        jDesktopPane1.add(button_CalendardomDateTo);

        calendarButtonexpiryDateFrom = new JCalendarButton(expiryDateFrom);
        calendarButtonexpiryDateFrom.setSize(21, 21);
        calendarButtonexpiryDateFrom.setEnabled(false);
        calendarButtonexpiryDateFrom.setLocation(274, 75);
        jDesktopPane1.add(calendarButtonexpiryDateFrom);

        calendarButtonexpiryDateTo = new JCalendarButton(expiryDateTo);
        calendarButtonexpiryDateTo.setSize(21, 21);
        calendarButtonexpiryDateTo.setEnabled(false);
        calendarButtonexpiryDateTo.setLocation(470, 74);
        jDesktopPane1.add(calendarButtonexpiryDateTo);

        JLabel4j_std label = new JLabel4j_std();
        label.setText(lang.get("lbl_MHN_Number"));
        label.setHorizontalAlignment(SwingConstants.TRAILING);
        label.setBounds(702, 105, 97, 21);
        jDesktopPane1.add(label);

        textFieldMHN = new JTextField4j();
        textFieldMHN.setBounds(805, 105, 117, 21);
        jDesktopPane1.add(textFieldMHN);

        JLabel4j_std label_1 = new JLabel4j_std();
        label_1.setText(lang.get("lbl_Decision"));
        label_1.setHorizontalAlignment(SwingConstants.TRAILING);
        label_1.setBounds(702, 134, 97, 21);
        jDesktopPane1.add(label_1);

        ComboBoxModel<JDBMHNDecisions> jComboBox3Model = new DefaultComboBoxModel<JDBMHNDecisions>(decisionList);
        comboBoxDecisions.setModel(jComboBox3Model);
        comboBoxDecisions.setMaximumRowCount(12);
        comboBoxDecisions.setFont(new Font("Monospaced", Font.PLAIN, 11));
        comboBoxDecisions.setBounds(805, 134, 169, 23);
        jDesktopPane1.add(comboBoxDecisions);
      }

      {
        jStatusText = new JLabel4j_std();
        jStatusText.setBounds(10, 545, 974, 21);
        jDesktopPane1.add(jStatusText);
        jStatusText.setBackground(Color.GRAY);
        jStatusText.setForeground(new Color(255, 0, 0));
      }
      jScrollPane1 = new JScrollPane();
      jScrollPane1.setBounds(0, 262, 984, 284);
      jDesktopPane1.add(jScrollPane1);
      jScrollPane1.getViewport().setBackground(Common.color_tablebackground);
      jTable1 = new JTable();
      jTable1.setDefaultRenderer(Object.class, Common.renderer_table);
      jScrollPane1.setViewportView(jTable1);
      jTable1.setModel(jTable1Model);
      jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
      jTable1.getTableHeader().setFont(Common.font_table_header);
      jTable1.getTableHeader().setForeground(Common.color_tableHeaderFont);
      jTable1.addMouseListener(new MouseAdapter()
      {
        public void mouseClicked(MouseEvent evt)
        {
          if (evt.getClickCount() == 2)
          {
            if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_EDIT") == true)
            {
              editRecord();
            }
          }
        }
      });

      {
        final JPopupMenu popupMenu = new JPopupMenu();
        popupMenu.setFont(Common.font_std);
        addPopup(jTable1, popupMenu);

        {
          final JMenuItem4j menuItemAdd = new JMenuItem4j(Common.icon_add);
          menuItemAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_ADD"));
          menuItemAdd.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              addRecord();
            }
          });
          menuItemAdd.setText(lang.get("btn_Add"));
          popupMenu.add(menuItemAdd);
        }

        {
          final JMenuItem4j menuItemEdit = new JMenuItem4j(Common.icon_edit);
          menuItemEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT"));
          menuItemEdit.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              editRecord();
            }
          });
          menuItemEdit.setText(lang.get("btn_Edit"));
          popupMenu.add(menuItemEdit);
        }

        {
          final JMenuItem4j menuItemDelete = new JMenuItem4j(Common.icon_delete);
          menuItemDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_DELETE"));
          menuItemDelete.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              deleteRecord();
            }
          });
          menuItemDelete.setText(lang.get("btn_Delete"));
          popupMenu.add(menuItemDelete);
        }

        {
          final JMenuItem4j menuItemPrint = new JMenuItem4j(Common.icon_print);
          menuItemPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PALLETS"));
          menuItemPrint.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              printRecords("selected");
            }
          });
          menuItemPrint.setText(lang.get("btn_Print"));
          popupMenu.add(menuItemPrint);
        }

        {
          final JMenuItem4j menuItemLabel = new JMenuItem4j(Common.icon_report);
          menuItemLabel.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              printLabels();
            }
          });
          menuItemLabel.setText(lang.get("btn_Label"));
          popupMenu.add(menuItemLabel);
        }

        {
          final JMenuItem4j menuItemExcel = new JMenuItem4j(Common.icon_XLS);
          menuItemExcel.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              exportExcel("selected");
            }
          });
          menuItemExcel.setText(lang.get("btn_Excel"));
          popupMenu.add(menuItemExcel);
        }

        {
          final JMenuItem4j menuItemConfirm = new JMenuItem4j(Common.icon_ok);
          menuItemConfirm.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PAL_PROD_CONFIRM"));
          menuItemConfirm.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              confirmRecord();
            }
          });

          menuItemConfirm.setText(lang.get("btn_Confirm"));
          popupMenu.add(menuItemConfirm);
        }
        {
          menuItemSummary = new JMenuItem4j(Common.icon_report);
          menuItemSummary.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent e)
            {
              print_summary();
            }
          });
          menuItemSummary.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PAL_SUMMARY"));
          menuItemSummary.setText(lang.get("btn_Print_Summary"));
          popupMenu.add(menuItemSummary);
        }
        {
          final JMenuItem4j menuItemSplit = new JMenuItem4j(Common.icon_split);
          menuItemSplit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PAL_SPLIT"));
          menuItemSplit.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              splitRecord();
            }
          });
          menuItemSplit.setText(lang.get("mod_FRM_PAL_SPLIT"));
          popupMenu.add(menuItemSplit);
        }
        {
          mnReferenceData = new JMenu4j(lang.get("lbl_Referenced_Data"));
          popupMenu.add(mnReferenceData);
          {
            mntmEditBatch = new JMenuItem4j(lang.get("btn_Edit_Batch"));
            mntmEditBatch.addActionListener(new ActionListener()
            {
              public void actionPerformed(ActionEvent arg0)
              {
                int row = jTable1.getSelectedRow();
                if (row >= 0)
                {
                  String lmaterial = jTable1.getValueAt(row, 1).toString();
                  String lbatch = jTable1.getValueAt(row, 2).toString();
                  JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_BATCH_EDIT", lmaterial, lbatch);
                }
              }
            });
            mnReferenceData.add(mntmEditBatch);
            mntmEditBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_BATCH_EDIT"));
            mntmEditBatch.setIcon(Common.icon_batch);
          }
          {
            mntmEditLocation = new JMenuItem4j(lang.get("btn_Edit_Location"));
            mntmEditLocation.addActionListener(new ActionListener()
            {
              public void actionPerformed(ActionEvent arg0)
              {
                int row = jTable1.getSelectedRow();
                if (row >= 0)
                {
                  String llocation = jTable1.getValueAt(row, 8).toString();
                  JLaunchMenu.runForm("FRM_ADMIN_LOCATION_EDIT", llocation);
                }
              }
            });
            mnReferenceData.add(mntmEditLocation);
            mntmEditLocation.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_LOCATION_EDIT"));
            mntmEditLocation.setIcon(Common.icon_location);
          }
          {
            mntmEditMaterial = new JMenuItem4j(lang.get("btn_Edit_Material"));
            mntmEditMaterial.addActionListener(new ActionListener()
            {
              public void actionPerformed(ActionEvent arg0)
              {
                int row = jTable1.getSelectedRow();
                if (row >= 0)
                {
                  String lmaterial = jTable1.getValueAt(row, 1).toString();
                  JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_EDIT", lmaterial);
                }
              }
            });
            mnReferenceData.add(mntmEditMaterial);
            mntmEditMaterial.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_EDIT"));
            mntmEditMaterial.setIcon(Common.icon_material);
          }
          {
            mntmEditProcessOrder = new JMenuItem4j(lang.get("btn_Edit_Process_Order"));
            mntmEditProcessOrder.addActionListener(new ActionListener()
            {
              public void actionPerformed(ActionEvent arg0)
              {
                int row = jTable1.getSelectedRow();
                if (row >= 0)
                {
                  String lprocessorder = jTable1.getValueAt(row, 3).toString();
                  JLaunchMenu.runForm("FRM_ADMIN_PROCESS_ORDER_EDIT", lprocessorder);
                }
              }
            });
            mnReferenceData.add(mntmEditProcessOrder);
            mntmEditProcessOrder.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PROCESS_ORDER_EDIT"));
            mntmEditProcessOrder.setIcon(Common.icon_process_order);
          }
          {
            mntmEditMHN = new JMenuItem4j(lang.get("btn_Edit_MHN"));
            mntmEditMHN.addActionListener(new ActionListener()
            {
              public void actionPerformed(ActionEvent arg0)
              {
                int row = jTable1.getSelectedRow();
                if (row >= 0)
                {
                  String lmhn = jTable1.getValueAt(row, JDBPalletTableModel.MHN_Number_Col).toString();
                  if (lmhn.equals("") == false)
                  {
                    JLaunchMenu.runForm("FRM_ADMIN_MHN_EDIT", lmhn);
                  }
                }
              }
            });
            mnReferenceData.add(mntmEditMHN);
            mntmEditMHN.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_EDIT"));
            mntmEditMHN.setIcon(Common.icon_mhn);
          }
        }

        {
          final JMenu4j filterByMenu = new JMenu4j();
          filterByMenu.setText(lang.get("lbl_Filter_By"));
          popupMenu.add(filterByMenu);

          {
            final JMenuItem4j menuItemFilterBySSCC = new JMenuItem4j();
            menuItemFilterBySSCC.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("SSCC");
              }
            });
            menuItemFilterBySSCC.setText(lang.get("lbl_Pallet_SSCC"));
            filterByMenu.add(menuItemFilterBySSCC);
          }

          {
            final JMenuItem4j menuItemFilterByMaterial = new JMenuItem4j();
            menuItemFilterByMaterial.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("Material");
              }
            });
            menuItemFilterByMaterial.setText(lang.get("lbl_Material"));
            filterByMenu.add(menuItemFilterByMaterial);
          }

          {
            final JMenuItem4j menuItemFilterByBatch = new JMenuItem4j();
            menuItemFilterByBatch.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("Batch");
              }
            });
            menuItemFilterByBatch.setText(lang.get("lbl_Material_Batch"));
            filterByMenu.add(menuItemFilterByBatch);
          }

          {
            final JMenuItem4j menuItemFilterByLocation = new JMenuItem4j();
            menuItemFilterByLocation.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("Location");
              }
            });
            menuItemFilterByLocation.setText(lang.get("lbl_Location_ID"));
            filterByMenu.add(menuItemFilterByLocation);
          }

          {
            final JMenuItem4j menuItemFilterByDespatch = new JMenuItem4j();
            menuItemFilterByDespatch.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("Despatch");
              }
            });
            menuItemFilterByDespatch.setText(lang.get("lbl_Despatch_No"));
            filterByMenu.add(menuItemFilterByDespatch);
          }

          {
            final JMenuItem4j menuItemFilterByPalletStatus = new JMenuItem4j();
            menuItemFilterByPalletStatus.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("Pallet Status");
              }
            });
            menuItemFilterByPalletStatus.setText(lang.get("lbl_Pallet_Status"));
            filterByMenu.add(menuItemFilterByPalletStatus);
          }

          {
            final JMenuItem4j menuItemFilterByProcessOrder = new JMenuItem4j();
            menuItemFilterByProcessOrder.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                filterBy("Process Order");
              }
            });
            menuItemFilterByProcessOrder.setText(lang.get("lbl_Process_Order"));
            filterByMenu.add(menuItemFilterByProcessOrder);
          }

          {
            filterByMenu.addSeparator();
          }

          {
            final JMenuItem4j menuItemResetFilter = new JMenuItem4j();
            menuItemResetFilter.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                clearFilter();
              }
            });
            menuItemResetFilter.setText(lang.get("btn_Clear_Filter"));
            filterByMenu.add(menuItemResetFilter);
          }
        }

        {
          final JMenu4j sortByMenu = new JMenu4j();
          sortByMenu.setText(lang.get("lbl_Sort_By"));
          popupMenu.add(sortByMenu);

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("SSCC");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Pallet_SSCC"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("BATCH_NUMBER");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Material_Batch"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("PROCESS_ORDER");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Process_Order"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("QUANTITY");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Pallet_Quantity"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("DATE_OF_MANUFACTURE");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Pallet_DOM"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("STATUS");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Pallet_Status"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("LOCATION_ID");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Location_ID"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("UOM");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Pallet_UOM"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("EAN");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Material_UOM_EAN"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenuItem4j newItemMenuItem = new JMenuItem4j();
            newItemMenuItem.addActionListener(new ActionListener()
            {
              public void actionPerformed(final ActionEvent e)
              {
                sortBy("VARIANT");
              }
            });
            newItemMenuItem.setText(lang.get("lbl_Material_UOM_Variant"));
            sortByMenu.add(newItemMenuItem);
          }

          {
            final JMenu4j orderMenu = new JMenu4j();
            orderMenu.setText(lang.get("lbl_Sort_By"));
            sortByMenu.add(orderMenu);

            {

              rbascending.addActionListener(new ActionListener()
              {
                public void actionPerformed(final ActionEvent e)
                {
                  setSequence(false);
                }
              });
              buttonGroup.add(rbascending);
              rbascending.setSelected(true);
              rbascending.setText("Ascending");
              rbascending.setFont(Common.font_popup);
              orderMenu.add(rbascending);
            }

            {

              rbdescending.addActionListener(new ActionListener()
              {
                public void actionPerformed(final ActionEvent e)
                {
                  setSequence(true);
                }
              });
              buttonGroup.add(rbdescending);
              rbdescending.setText("Descending");
              rbdescending.setFont(Common.font_popup);
              orderMenu.add(rbdescending);
            }
          }
        }
      }
     
      JLabel4j_std jLabelCreatedDate = new JLabel4j_std();
      jLabelCreatedDate.setText(lang.get("lbl_Date_Created"));
      jLabelCreatedDate.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelCreatedDate.setBounds(2, 134, 108, 21);
      jDesktopPane1.add(jLabelCreatedDate);
     
      JLabel4j_std jLabelUpdatedDate = new JLabel4j_std();
      jLabelUpdatedDate.setText(lang.get("lbl_Date_Updated"));
      jLabelUpdatedDate.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelUpdatedDate.setBounds(2, 163, 108, 25);
      jDesktopPane1.add(jLabelUpdatedDate);
     
      jCheckBoxCreatedFrom = new JCheckBox4j();
      jCheckBoxCreatedFrom.setBackground(Color.WHITE);
      jCheckBoxCreatedFrom.setBounds(120, 134, 21, 25);
      jDesktopPane1.add(jCheckBoxCreatedFrom);
      jCheckBoxCreatedFrom.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent evt)
        {
          if (jCheckBoxCreatedFrom.isSelected())
          {
            createdDateFrom.setEnabled(true);
            button_CalendarCreatedDateFrom.setEnabled(true);
          } else
          {
            createdDateFrom.setEnabled(false);
            button_CalendarCreatedDateFrom.setEnabled(false);
          }
        }
      });
     
      jCheckBoxUpdatedFrom = new JCheckBox4j();
      jCheckBoxUpdatedFrom.setBackground(Color.WHITE);
      jCheckBoxUpdatedFrom.setBounds(120, 163, 21, 25);
      jDesktopPane1.add(jCheckBoxUpdatedFrom);
      jCheckBoxUpdatedFrom.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent evt)
        {
          if (jCheckBoxUpdatedFrom.isSelected())
          {
            updatedDateFrom.setEnabled(true);
            button_CalendarUpdatedDateFrom.setEnabled(true);
          } else
          {
            updatedDateFrom.setEnabled(false);
            button_CalendarUpdatedDateFrom.setEnabled(false);
          }
        }
      });
     
      createdDateFrom = new JDateControl();
      createdDateFrom.setFont(new Font("Arial", Font.PLAIN, 11));
      createdDateFrom.setEnabled(false);
      createdDateFrom.setBounds(144, 134, 128, 25);
      jDesktopPane1.add(createdDateFrom);
     
      updatedDateFrom = new JDateControl();
      updatedDateFrom.setFont(new Font("Arial", Font.PLAIN, 11));
      updatedDateFrom.setEnabled(false);
      updatedDateFrom.setBounds(144, 163, 128, 25);
      jDesktopPane1.add(updatedDateFrom);
     
      jCheckBoxCreatedTo = new JCheckBox4j();
      jCheckBoxCreatedTo.setBackground(Color.WHITE);
      jCheckBoxCreatedTo.setBounds(313, 134, 21, 25);
      jDesktopPane1.add(jCheckBoxCreatedTo);
      jCheckBoxCreatedTo.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent evt)
        {
          if (jCheckBoxCreatedTo.isSelected())
          {
            createdDateTo.setEnabled(true);
            button_CalendarCreatedDateTo.setEnabled(true);
          } else
          {
            createdDateTo.setEnabled(false);
            button_CalendarCreatedDateTo.setEnabled(false);
          }
        }
      });
     
      jCheckBoxUpdatedTo = new JCheckBox4j();
      jCheckBoxUpdatedTo.setBackground(Color.WHITE);
      jCheckBoxUpdatedTo.setBounds(313, 163, 21, 25);
      jDesktopPane1.add(jCheckBoxUpdatedTo);
      jCheckBoxUpdatedTo.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent evt)
        {
          if (jCheckBoxUpdatedTo.isSelected())
          {
            updatedDateTo.setEnabled(true);
            button_CalendarUpdatedDateTo.setEnabled(true);
          } else
          {
            createdDateTo.setEnabled(false);
            button_CalendarUpdatedDateTo.setEnabled(false);
          }
        }
      });
     
      createdDateTo = new JDateControl();
      createdDateTo.setFont(new Font("Arial", Font.PLAIN, 11));
      createdDateTo.setEnabled(false);
      createdDateTo.setBounds(340, 134, 128, 25);
      jDesktopPane1.add(createdDateTo);
     
      updatedDateTo = new JDateControl();
      updatedDateTo.setFont(new Font("Arial", Font.PLAIN, 11));
      updatedDateTo.setEnabled(false);
      updatedDateTo.setBounds(340, 163, 128, 25);
      jDesktopPane1.add(updatedDateTo);
     
      JLabel4j_std label4j_std_2 = new JLabel4j_std();
      label4j_std_2.setText((String) null);
      label4j_std_2.setHorizontalAlignment(SwingConstants.TRAILING);
      label4j_std_2.setBounds(2, 138, 108, 25);
      jDesktopPane1.add(label4j_std_2);
     
      JLabel4j_std label4j_std_3 = new JLabel4j_std();
      label4j_std_3.setText((String) null);
      label4j_std_3.setHorizontalAlignment(SwingConstants.TRAILING);
      label4j_std_3.setBounds(2, 167, 108, 25);
      jDesktopPane1.add(label4j_std_3);
     
      JLabel4j_std jLabelCreatedUser = new JLabel4j_std();
      jLabelCreatedUser.setText(lang.get("lbl_Created_By"));
      jLabelCreatedUser.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelCreatedUser.setBounds(501, 134, 77, 21);
      jDesktopPane1.add(jLabelCreatedUser);
     
      textFieldUserCreated = new JTextField4j();
      textFieldUserCreated.setBounds(582, 134, 98, 21);
      jDesktopPane1.add(textFieldUserCreated);
     
      JButton4j jButtonLookupUserCreated = new JButton4j(Common.icon_lookup);
      jButtonLookupUserCreated.setBounds(680, 134, 21, 21);
      jDesktopPane1.add(jButtonLookupUserCreated);
      jButtonLookupUserCreated.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent e)
        {
          JLaunchLookup.dlgAutoExec = true;
          JLaunchLookup.dlgCriteriaDefault = "";

          if (JLaunchLookup.users())
          {
            textFieldUserCreated.setText(JLaunchLookup.dlgResult);
          }
        }
      });
     
      JLabel4j_std jLabelUpdatedUser = new JLabel4j_std();
      jLabelUpdatedUser.setText(lang.get("lbl_Updated_By"));
      jLabelUpdatedUser.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelUpdatedUser.setBounds(501, 167, 77, 21);
      jDesktopPane1.add(jLabelUpdatedUser);
     
      textFieldUserUpdated = new JTextField4j();
      textFieldUserUpdated.setBounds(582, 167, 98, 21);
      jDesktopPane1.add(textFieldUserUpdated);
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    }
    jTextFieldTotalMemory.setText(String.valueOf(Runtime.getRuntime().totalMemory()/1024) + "k");
    jTextFieldFreeMemory.setText(String.valueOf(Runtime.getRuntime().freeMemory()/1024) + "k");
   
    JLabel4j_std lblUsedMemory = new JLabel4j_std();
    lblUsedMemory.setText("Used Memory :");
    lblUsedMemory.setHorizontalAlignment(SwingConstants.TRAILING);
    lblUsedMemory.setBounds(530, 352, 91, 21);
    jDesktopPane1.add(lblUsedMemory);
   
    textFieldUsedMemory = new JTextField4j();
    textFieldUsedMemory.setText(String.valueOf((Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory())/1024) + "k");
    textFieldUsedMemory.setHorizontalAlignment(SwingConstants.TRAILING);
    textFieldUsedMemory.setEnabled(false);
    textFieldUsedMemory.setEditable(false);
    textFieldUsedMemory.setBounds(632, 353, 119, 21);
    jDesktopPane1.add(textFieldUsedMemory);
   
    JLabel4j_std lblLocale = new JLabel4j_std();
    lblLocale.setText("Locale :");
    lblLocale.setHorizontalAlignment(SwingConstants.TRAILING);
    lblLocale.setBounds(476, 12, 58, 21);
    jDesktopPane1.add(lblLocale);
   
    textFieldLocale = new JTextField4j();
    textFieldLocale.setEnabled(false);
    textFieldLocale.setEditable(false);
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

              dispose();
            }
          });
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText("Version :");
          jLabel1.setBounds(59, 258, 58, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText("Java Version :");
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(25, 10, 92, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText("Java VM Version :");
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(232, 10, 119, 21);
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText("Java Home :");
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setBounds(29, 40, 88, 21);
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText("OS Name :");
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel7.setBounds(27, 72, 90, 21);
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText("OS Architecture :");
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(232, 72, 118, 21);
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText("OS Version :");
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(481, 72, 95, 21);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText("OS User Name :");
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(24, 103, 93, 21);
        }
        {
          jLabel11 = new JLabel4j_std();
          jDesktopPane1.add(jLabel11);
          jLabel11.setText("User Home :");
          jLabel11.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel11.setBounds(27, 165, 90, 21);
        }
        {
          jTextFieldJavaHome = new JTextField4j();
          jDesktopPane1.add(jTextFieldJavaHome);
          jTextFieldJavaHome.setBounds(129, 42, 622, 20);
          jTextFieldJavaHome.setEditable(false);
          jTextFieldJavaHome.setEnabled(false);
        }
        {
          jTextFieldJavaVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldJavaVersion);
          jTextFieldJavaVersion.setBounds(129, 11, 100, 20);
          jTextFieldJavaVersion.setEditable(false);
          jTextFieldJavaVersion.setEnabled(false);
        }
        {
          jTextFieldJavaVMVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldJavaVMVersion);
          jTextFieldJavaVMVersion.setBounds(360, 11, 100, 20);
          jTextFieldJavaVMVersion.setEditable(false);
          jTextFieldJavaVMVersion.setEnabled(false);
        }
        {
          jTextFieldOSName = new JTextField4j();
          jDesktopPane1.add(jTextFieldOSName);
          jTextFieldOSName.setBounds(129, 73, 100, 20);
          jTextFieldOSName.setEditable(false);
          jTextFieldOSName.setEnabled(false);
        }
        {
          jTextFieldOSArchitecture = new JTextField4j();
          jDesktopPane1.add(jTextFieldOSArchitecture);
          jTextFieldOSArchitecture.setBounds(360, 73, 100, 20);
          jTextFieldOSArchitecture.setEditable(false);
          jTextFieldOSArchitecture.setEnabled(false);
        }
        {
          jTextFieldOSVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldOSVersion);
          jTextFieldOSVersion.setBounds(582, 73, 169, 20);
          jTextFieldOSVersion.setEditable(false);
          jTextFieldOSVersion.setEnabled(false);
        }
        {
          jTextFieldUserName = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserName);
          jTextFieldUserName.setEditable(false);
          jTextFieldUserName.setBounds(129, 104, 231, 20);
        }
        {
          jTextFieldUserHome = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserHome);
          jTextFieldUserHome.setEditable(false);
          jTextFieldUserHome.setBounds(129, 166, 624, 20);
          jTextFieldUserHome.setEnabled(false);
        }
        {
          jTextFieldUserDir = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserDir);
          jTextFieldUserDir.setEditable(false);
          jTextFieldUserDir.setBounds(129, 197, 624, 20);
          jTextFieldUserDir.setEnabled(false);
        }
        {
          jTextFieldDatabaseProductName = new JTextField4j();
          jDesktopPane1.add(jTextFieldDatabaseProductName);
          jTextFieldDatabaseProductName.setEditable(false);
          jTextFieldDatabaseProductName.setBounds(129, 228, 231, 20);
          jTextFieldDatabaseProductName.setEnabled(false);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText("Base Dir :");
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(27, 196, 90, 21);
        }
        {
          jTextFieldDatabaseProductVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldDatabaseProductVersion);
          jTextFieldDatabaseProductVersion.setEditable(false);
          jTextFieldDatabaseProductVersion.setBounds(129, 259, 623, 20);
          jTextFieldDatabaseProductVersion.setEnabled(false);
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText("Version :");
          jLabel6.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel6.setBounds(66, 320, 51, 21);
        }
        {
          jLabel12 = new JLabel4j_std();
          jDesktopPane1.add(jLabel12);
          jLabel12.setText("Database Name :");
          jLabel12.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel12.setBounds(17, 227, 100, 21);
        }
        {
          jTextFieldJDBCDriverName = new JTextField4j();
          jDesktopPane1.add(jTextFieldJDBCDriverName);
          jTextFieldJDBCDriverName.setEditable(false);
          jTextFieldJDBCDriverName.setBounds(129, 290, 231, 20);
          jTextFieldJDBCDriverName.setEnabled(false);
        }
        {
          jTextFieldJDBCDriverVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldJDBCDriverVersion);
          jTextFieldJDBCDriverVersion.setEditable(false);
          jTextFieldJDBCDriverVersion.setBounds(129, 321, 622, 20);
          jTextFieldJDBCDriverVersion.setEnabled(false);
        }
        {
          jLabel13 = new JLabel4j_std();
          jDesktopPane1.add(jLabel13);
          jLabel13.setText("Driver Name :");
          jLabel13.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel13.setBounds(37, 289, 80, 21);
        }
        {
          jTextFieldTotalMemory = new JTextField4j();
          jDesktopPane1.add(jTextFieldTotalMemory);
          jTextFieldTotalMemory.setEditable(false);
          jTextFieldTotalMemory.setEnabled(false);
          jTextFieldTotalMemory.setBounds(129, 352, 119, 21);
          jTextFieldTotalMemory.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldFreeMemory = new JTextField4j();
          jDesktopPane1.add(jTextFieldFreeMemory);
          jTextFieldFreeMemory.setEditable(false);
          jTextFieldFreeMemory.setEnabled(false);
          jTextFieldFreeMemory.setBounds(359, 352, 119, 21);
          jTextFieldFreeMemory.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel14 = new JLabel4j_std();
          jDesktopPane1.add(jLabel14);
          jLabel14.setText("Total Memory :");
          jLabel14.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel14.setBounds(12, 352, 105, 21);
        }
        {
          jLabel15 = new JLabel4j_std();
          jDesktopPane1.add(jLabel15);
          jLabel15.setText("Free Memory :");
          jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel15.setBounds(254, 352, 91, 21);
        }

        {
          jLabel101 = new JLabel4j_std();
          jLabel101.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel101.setText("Client Name :");
          jLabel101.setBounds(24, 134, 93, 21);
          jDesktopPane1.add(jLabel101);
        }

        {
          jTextFieldClientName = new JTextField4j();
          jTextFieldClientName.setEditable(false);
          jTextFieldClientName.setBounds(129, 135, 231, 20);
          jTextFieldClientName.setText(JUtility.getClientName());
          jDesktopPane1.add(jTextFieldClientName);
        }

        {
          jLabel102 = new JLabel4j_std();
          jLabel102.setHorizontalAlignment(SwingConstants.TRAILING);
            jLabel102.setText("Application User Name :");
          jLabel102.setBounds(355, 103, 146, 21);
          jDesktopPane1.add(jLabel102);
        }

        {
          jTextFieldUserNameApp = new JTextField4j();
          jTextFieldUserNameApp.setEditable(false);
          jTextFieldUserNameApp.setBounds(520, 104, 231, 20);
          jTextFieldUserNameApp.setText(Common.userList.getUser(Common.sessionID).getUserId());
          jDesktopPane1.add(jTextFieldUserNameApp);
        }

        {
          jLabel102_1 = new JLabel4j_std();
          jLabel102_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel102_1.setText("Session ID :");
          jLabel102_1.setBounds(383, 134, 118, 21);
          jDesktopPane1.add(jLabel102_1);
        }

        {
          jTextFieldUserSessionID = new JTextField4j();
          jTextFieldUserSessionID.setEditable(false);
          jTextFieldUserSessionID.setBounds(520, 134, 231, 20);
          jDesktopPane1.add(jTextFieldUserSessionID);
        }

        {
          jTextFieldUserHostID = new JTextField4j();
          jTextFieldUserHostID.setEditable(false);
          jTextFieldUserHostID.setBounds(435, 228, 32, 20);
          jDesktopPane1.add(jTextFieldUserHostID);
        }

        {
          jLabel102_2 = new JLabel4j_std();
          jLabel102_2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel102_2.setText("Host ID :");
          jLabel102_2.setBounds(383, 227, 51, 21);
          jDesktopPane1.add(jLabel102_2);
        }

        {
          jTextFieldUserHostDescription = new JTextField4j();
          jTextFieldUserHostDescription.setBounds(481, 228, 270, 20);
          jTextFieldUserHostDescription.setEditable(false);
          jDesktopPane1.add(jTextFieldUserHostDescription);
        }

        {
          jLabel102_3 = new JLabel4j_std();
          jLabel102_3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel102_3.setText("Unique Host Ref :");
          jLabel102_3.setBounds(383, 289, 95, 21);
          jDesktopPane1.add(jLabel102_3);
        }
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

            processOrderChanged(jTextFieldProcessOrder.getText());
          }
        });
      }

      jLabelProcessOrder = new JLabel4j_std();
      jPanelProcessOrder.add(jLabelProcessOrder);
      jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
      jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelProcessOrder.setBounds(12, 21, 142, 21);
      jTextFieldProcessOrderDescription = new JTextField4j();
      jPanelProcessOrder.add(jTextFieldProcessOrderDescription);
      jTextFieldProcessOrderDescription.setBounds(449, 21, 287, 21);
      jTextFieldProcessOrderDescription.setEditable(false);
      jTextFieldProcessOrderDescription.setEnabled(false);
      jLabelOrderDescription = new JLabel4j_std();
      jPanelProcessOrder.add(jLabelOrderDescription);
      jLabelOrderDescription.setText(lang.get("lbl_Description"));
      jLabelOrderDescription.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelOrderDescription.setBounds(306, 21, 136, 21);
      jLabelOrderStatus = new JLabel4j_std();
      jPanelProcessOrder.add(jLabelOrderStatus);
      jLabelOrderStatus.setText(lang.get("lbl_Process_Order_Status"));
      jLabelOrderStatus.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelOrderStatus.setBounds(290, 49, 152, 21);
      jSpinnerDueDate = new JDateControl();
      jPanelProcessOrder.add(jSpinnerDueDate);
      jSpinnerDueDate.setEnabled(false);
      jSpinnerDueDate.setBounds(161, 49, 137, 21);
      jSpinnerDueDate.getEditor().setOpaque(true);
      jSpinnerDueDate.setForeground(new java.awt.Color(238, 238, 238));
      jLabelDueDate = new JLabel4j_std();
      jPanelProcessOrder.add(jLabelDueDate);
      jLabelDueDate.setText(lang.get("lbl_Process_Order_Due_Date"));
      jLabelDueDate.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelDueDate.setBounds(12, 49, 142, 21);
      jTextFieldProcessOrderStatus = new JTextField4j();
      jPanelProcessOrder.add(jTextFieldProcessOrderStatus);
      jTextFieldProcessOrderStatus.setBounds(449, 49, 126, 21);
      jTextFieldProcessOrderStatus.setEditable(false);
      jTextFieldProcessOrderStatus.setEnabled(false);
      jTextFieldRecipe = new JTextField4j();
      jPanelProcessOrder.add(jTextFieldRecipe);
      jTextFieldRecipe.setBounds(161, 77, 139, 21);
      jTextFieldRecipe.setEditable(false);
      jTextFieldRecipe.setEnabled(false);
      jLabelRecipe = new JLabel4j_std();
      jPanelProcessOrder.add(jLabelRecipe);
      jLabelRecipe.setText(lang.get("lbl_Process_Order_Recipe"));
      jLabelRecipe.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelRecipe.setBounds(12, 77, 142, 21);
      jTextFieldLocation = new JTextField4j();
      jPanelProcessOrder.add(jTextFieldLocation);
      jTextFieldLocation.setBounds(449, 77, 126, 21);
      jTextFieldLocation.setEditable(false);
      jTextFieldLocation.setEnabled(false);
      jLabelLocation = new JLabel4j_std();
      jPanelProcessOrder.add(jLabelLocation);
      jLabelLocation.setText(lang.get("lbl_Location_ID"));
      jLabelLocation.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelLocation.setBounds(290, 77, 152, 21);
      jButtonPOLookup = new JButton4j(Common.icon_lookup);
      jPanelProcessOrder.add(jButtonPOLookup);
      jButtonPOLookup.setBounds(280, 21, 20, 20);
      jButtonPOLookup.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt)
        {
          JLaunchLookup.dlgCriteriaDefault = "Ready";
          JLaunchLookup.dlgAutoExec = true;

          if (JLaunchLookup.processOrders())
          {
            String po = JLaunchLookup.dlgResult;
            processOrderChanged(po);
          }
        }
      });
      jPanelMaterial = new JPanel();
      jDesktopPane1.add(jPanelMaterial);
      jPanelMaterial.setBounds(7, 119, 748, 112);
      jPanelMaterial.setBorder(BorderFactory.createTitledBorder(lang.get("lbl_Material")));
      jPanelMaterial.setLayout(null);
      jPanelMaterial.setFont(Common.font_title);
      jPanelMaterial.setBackground(new java.awt.Color(255, 255, 255));
      jTextFieldMaterial = new JTextField4j();
      jPanelMaterial.add(jTextFieldMaterial);
      jTextFieldMaterial.setBounds(161, 21, 128, 21);
      jTextFieldMaterial.setEditable(false);
      jTextFieldMaterial.setEnabled(false);

      jLabelMaterial = new JLabel4j_std();
      jPanelMaterial.add(jLabelMaterial);
      jLabelMaterial.setText(lang.get("lbl_Material"));
      jLabelMaterial.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelMaterial.setBounds(12, 21, 142, 21);
      jTextFieldMaterialDescription = new JTextField4j();
      jPanelMaterial.add(jTextFieldMaterialDescription);
      jTextFieldMaterialDescription.setBounds(449, 21, 287, 21);
      jTextFieldMaterialDescription.setEditable(false);
      jTextFieldMaterialDescription.setEnabled(false);
      jLabelDescription = new JLabel4j_std();
      jPanelMaterial.add(jLabelDescription);
      jLabelDescription.setText(lang.get("lbl_Description"));
      jLabelDescription.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelDescription.setBounds(291, 21, 151, 21);
      jSpinnerShelfLife = new JSpinner();
      jPanelMaterial.add(jSpinnerShelfLife);
      jSpinnerShelfLife.setModel(shelflifenumbermodel);
      JSpinner.NumberEditor nec = new JSpinner.NumberEditor(jSpinnerShelfLife);
      nec.getTextField().setFont(Common.font_std);
      jSpinnerShelfLife.setEditor(nec);
      jSpinnerShelfLife.setBounds(161, 49, 63, 21);
      jSpinnerShelfLife.setEnabled(false);
      jTextFieldShelfLifeRoundingRule = new JTextField4j();
      jPanelMaterial.add(jTextFieldShelfLifeRoundingRule);
      jTextFieldShelfLifeRoundingRule.setBounds(638, 49, 98, 21);
      jTextFieldShelfLifeRoundingRule.setEditable(false);
      jTextFieldShelfLifeRoundingRule.setEnabled(false);
      jLabelRounding = new JLabel4j_std();
      jPanelMaterial.add(jLabelRounding);
      jLabelRounding.setText(lang.get("lbl_Material_Shelf_Life_Rounding_Rule"));
      jLabelRounding.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelRounding.setBounds(546, 49, 85, 21);
      jTextFieldShelfLifeUOM = new JTextField4j();
      jPanelMaterial.add(jTextFieldShelfLifeUOM);
      jTextFieldShelfLifeUOM.setBounds(449, 49, 91, 21);
      jTextFieldShelfLifeUOM.setEditable(false);
      jTextFieldShelfLifeUOM.setEnabled(false);
      jLabel1ShelfLifeUOM = new JLabel4j_std();
      jPanelMaterial.add(jLabel1ShelfLifeUOM);
      jLabel1ShelfLifeUOM.setText(lang.get("lbl_Material_Shelf_Life_UOM"));
      jLabel1ShelfLifeUOM.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabel1ShelfLifeUOM.setBounds(281, 49, 161, 21);
      jLabelShelfLife = new JLabel4j_std();
      jPanelMaterial.add(jLabelShelfLife);
      jLabelShelfLife.setText(lang.get("lbl_Material_Shelf_Life"));
      jLabelShelfLife.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelShelfLife.setBounds(12, 49, 142, 21);
      jTextFieldLegacyCode = new JTextField4j();
      jPanelMaterial.add(jTextFieldLegacyCode);
      jTextFieldLegacyCode.setBounds(161, 77, 128, 21);
      jTextFieldLegacyCode.setEditable(false);
      jTextFieldLegacyCode.setEnabled(false);
      jLabelLegacyCode = new JLabel4j_std();
      jPanelMaterial.add(jLabelLegacyCode);
      jLabelLegacyCode.setText(lang.get("lbl_Material_Legacy_Code"));
      jLabelLegacyCode.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelLegacyCode.setBounds(12, 77, 142, 21);
      jLabelEAN = new JLabel4j_std();
      jPanelMaterial.add(jLabelEAN);
      jLabelEAN.setText(lang.get("lbl_Material_UOM_EAN"));
      jLabelEAN.setHorizontalAlignment(SwingConstants.RIGHT);
      jLabelEAN.setHorizontalTextPosition(SwingConstants.RIGHT);
      jLabelEAN.setBounds(291, 77, 151, 21);
      jTextFieldEAN = new JTextField4j();
      jPanelMaterial.add(jTextFieldEAN);
      jTextFieldEAN.setBounds(449, 77, 126, 21);
      jTextFieldEAN.setFocusCycleRoot(true);
      jTextFieldEAN.setEditable(false);
      jTextFieldEAN.setEnabled(false);
      jLabelVariant = new JLabel4j_std();
      jPanelMaterial.add(jLabelVariant);
      jLabelVariant.setText(lang.get("lbl_Material_UOM_Variant"));
      jLabelVariant.setHorizontalAlignment(SwingConstants.RIGHT);
      jLabelVariant.setHorizontalTextPosition(SwingConstants.RIGHT);
      jLabelVariant.setBounds(579, 77, 110, 21);
      jTextFieldVariant = new JTextField4j();
      jPanelMaterial.add(jTextFieldVariant);
      jTextFieldVariant.setBounds(701, 77, 35, 21);
      jTextFieldVariant.setFocusCycleRoot(true);
      jTextFieldVariant.setEditable(false);
      jTextFieldVariant.setEnabled(false);
      jPanelPallet = new JPanel();
      jDesktopPane1.add(jPanelPallet);
      jPanelPallet.setBounds(7, 231, 748, 84);
      jPanelPallet.setBorder(BorderFactory.createTitledBorder(null, lang.get("lbl_Pallet"), TitledBorder.LEADING, TitledBorder.TOP));
      jPanelPallet.setLayout(null);
      jPanelPallet.setFont(Common.font_std);
      jPanelPallet.setBackground(new java.awt.Color(255, 255, 255));
      jLabelQuantity = new JLabel4j_std();
      jPanelPallet.add(jLabelQuantity);
      jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
      jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelQuantity.setBounds(323, 21, 119, 21);
      comboBoxPrintQueue = new JComboBox4j();
      comboBoxPrintQueue.setBounds(116, 455, 621, 23);
      jDesktopPane1.add(comboBoxPrintQueue);

      {
        jTextFieldSSCC = new JTextField4j();
        jPanelPallet.add(jTextFieldSSCC);
        AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
        doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
        jTextFieldSSCC.setBounds(161, 18, 128, 21);
        jTextFieldSSCC.setEnabled(false);
        jTextFieldSSCC.addKeyListener(new KeyAdapter() {
          public void keyReleased(KeyEvent evt)
          {
            checkSSCC();
          }
        });
      }

      jSpinnerProductionDate = new JDateControl();
      jPanelPallet.add(jSpinnerProductionDate);
      jSpinnerProductionDate.setFont(new java.awt.Font("Dialog", 0, 12));
      jSpinnerProductionDate.setBounds(161, 45, 136, 21);
      jSpinnerProductionDate.getEditor().addKeyListener(new KeyAdapter() {
        public void keyPressed(KeyEvent e)
        {
          calcBBEBatch();
        }
      });
      jSpinnerProductionDate.addChangeListener(new ChangeListener() {
        public void stateChanged(final ChangeEvent e)
        {
          calcBBEBatch();
        }
      });

      try
      {
        jSpinnerProductionDate.setDate(JUtility.getSQLDate());
        jSpinnerProductionDate.setEnabled(false);
      } catch (Exception e)
      {
      }

      jLabelProductionDate = new JLabel4j_std();
      jPanelPallet.add(jLabelProductionDate);
      jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
      jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelProductionDate.setBounds(12, 46, 122, 21);
      jFormattedTextFieldProdQuantity = new JQuantityInput(new BigDecimal("0"));
      jFormattedTextFieldProdQuantity.addPropertyChangeListener(new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent arg0)
        {
          Color background = Color.WHITE;

          try
          {
            if (jTextFieldProcessOrder.getText().equals("") == false)
            {
              BigDecimal newval = new BigDecimal(jFormattedTextFieldProdQuantity.getValue().toString());
              int res = newval.compareTo(new BigDecimal(0));
              if (res == 0)
              {
                background = Color.YELLOW;
              }
            }
          } catch (Exception e)
          {
            background = Color.YELLOW;
          }
          jFormattedTextFieldProdQuantity.setBackground(background);
        }
      });
      jPanelPallet.add(jFormattedTextFieldProdQuantity);
      jFormattedTextFieldProdQuantity.setFont(Common.font_std);
      jFormattedTextFieldProdQuantity.setBounds(449, 21, 91, 21);
      jFormattedTextFieldProdQuantity.setValue(0);
      jFormattedTextFieldProdQuantity.setEnabled(false);
      jFormattedTextFieldProdQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
      jFormattedTextFieldProdQuantity.addKeyListener(new KeyAdapter() {
        public void keyReleased(KeyEvent evt)
        {
          pallet.setUom(jTextFieldProductionUom.getText());
          pallet.setQuantity(JUtility.stringToBigDecimal(jFormattedTextFieldProdQuantity.getText().toString()));
          jFormattedTextFieldBaseQuantity.setText(pallet.getBaseQuantityAsString());
        }
      });
      jLabelSSCC = new JLabel4j_std();
      jPanelPallet.add(jLabelSSCC);
      jLabelSSCC.setText(lang.get("lbl_Pallet_SSCC"));
      jLabelSSCC.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelSSCC.setBounds(12, 18, 122, 21);
      jTextFieldProductionUom = new JTextField4j();
      jPanelPallet.add(jTextFieldProductionUom);
      jTextFieldProductionUom.setBounds(666, 21, 70, 21);
      jTextFieldProductionUom.setEditable(false);
      jTextFieldProductionUom.setEnabled(false);
      jLabelProductionEAN = new JLabel4j_std();
      jPanelPallet.add(jLabelProductionEAN);
      jLabelProductionEAN.setText(lang.get("lbl_Pallet_UOM"));
      jLabelProductionEAN.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelProductionEAN.setBounds(546, 21, 113, 21);
      jLabel2 = new JLabel4j_std();
      jPanelPallet.add(jLabel2);
      jLabel2.setText(lang.get("lbl_Pallet_Base_Quantity"));
      jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabel2.setBounds(323, 49, 119, 21);
      jLabel3 = new JLabel4j_std();
      jPanelPallet.add(jLabel3);
      jLabel3.setText(lang.get("lbl_Pallet_Base_UOM"));
      jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabel3.setBounds(546, 49, 113, 21);
      jTextFieldBaseUOM = new JTextField4j();
      jPanelPallet.add(jTextFieldBaseUOM);
      jTextFieldBaseUOM.setEditable(false);
      jTextFieldBaseUOM.setEnabled(false);
      jTextFieldBaseUOM.setBounds(666, 49, 70, 21);
      jFormattedTextFieldBaseQuantity = new JQuantityInput(new BigDecimal("0"));
      jPanelPallet.add(jFormattedTextFieldBaseQuantity);
      jFormattedTextFieldBaseQuantity.setFont(Common.font_std);
      jFormattedTextFieldBaseQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
      jFormattedTextFieldBaseQuantity.setText("0.000");
      jFormattedTextFieldBaseQuantity.setEnabled(false);
      jFormattedTextFieldBaseQuantity.setBounds(449, 49, 91, 21);
      jCheckBoxProductionDate = new JCheckBox();
      jPanelPallet.add(jCheckBoxProductionDate);
      jCheckBoxProductionDate.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxProductionDate.setBounds(139, 45, 21, 21);
      jCheckBoxProductionDate.setEnabled(false);
      jCheckBoxProductionDate.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt)
        {
          enableField(jSpinnerProductionDate, jCheckBoxProductionDate.isSelected());
          enableField(calendarButtonjSpinnerProductionDate, jCheckBoxProductionDate.isSelected());
        }
      });
      jCheckBoxAutoSSCC = new JCheckBox();
      jCheckBoxAutoSSCC.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e)
        {
          checkSSCC();
        }
      });
      jCheckBoxAutoSSCC.setSelected(true);
      jCheckBoxAutoSSCC.setToolTipText("Auto SSCC");
      jCheckBoxAutoSSCC.setBackground(new Color(255, 255, 255));
      jCheckBoxAutoSSCC.setBounds(139, 18, 21, 21);
      jPanelPallet.add(jCheckBoxAutoSSCC);

      calendarButtonjSpinnerProductionDate = new JCalendarButton(jSpinnerProductionDate);
      calendarButtonjSpinnerProductionDate.setEnabled(false);
      calendarButtonjSpinnerProductionDate.setBounds(290, 47, 21, 21);
      jPanelPallet.add(calendarButtonjSpinnerProductionDate);
      jPanelBatch = new JPanel();
      jDesktopPane1.add(jPanelBatch);
      jPanelBatch.setBounds(7, 315, 748, 56);
      jPanelBatch.setLayout(null);
      jPanelBatch.setFont(Common.font_std);
      jPanelBatch.setBorder(BorderFactory.createTitledBorder(lang.get("lbl_Material_Batch")));
      jPanelBatch.setBackground(new java.awt.Color(255, 255, 255));
      jLabelBatch = new JLabel4j_std();
      jPanelBatch.add(jLabelBatch);
      jLabelBatch.setText(lang.get("lbl_Material_Batch"));
      jLabelBatch.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelBatch.setBounds(320, 21, 96, 21);

      jTextFieldBatch = new JTextField4j();
      jPanelBatch.add(jTextFieldBatch);
      AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
      doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
      jTextFieldBatch.setBounds(449, 21, 108, 21);
      jTextFieldBatch.setEnabled(false);

      jSpinnerExpiryDate = new JDateControl();
      jSpinnerExpiryDate.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent arg0)
        {
          jSpinnerExpiryDate.setDate(material.getRoundedExpiryDate(jSpinnerExpiryDate.getDate()));
        }
      });
      jPanelBatch.add(jSpinnerExpiryDate);
      jSpinnerExpiryDate.setFont(Common.font_std);
      jSpinnerExpiryDate.setBounds(161, 17, 135, 25);
      jSpinnerExpiryDate.getEditor().setPreferredSize(new java.awt.Dimension(87, 19));
      jSpinnerExpiryDate.getEditor().setSize(87, 21);
      jSpinnerExpiryDate.setEnabled(false);
      jLabelBatchExpiry = new JLabel4j_std();
      jPanelBatch.add(jLabelBatchExpiry);
      jLabelBatchExpiry.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
      jLabelBatchExpiry.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelBatchExpiry.setBounds(12, 17, 122, 21);
      jCheckBoxExpiry = new JCheckBox();
      jPanelBatch.add(jCheckBoxExpiry);
      jCheckBoxExpiry.setBounds(139, 17, 21, 21);
      jCheckBoxExpiry.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxExpiry.setEnabled(false);
      jCheckBoxExpiry.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt)
        {
          enableField(jSpinnerExpiryDate, jCheckBoxExpiry.isSelected());
          enableField(calendarButtonjSpinnerExpiryDate, jCheckBoxExpiry.isSelected());
          calcBBEBatch();
        }
      });
      jCheckBoxBatch = new JCheckBox();
      jPanelBatch.add(jCheckBoxBatch);
      jCheckBoxBatch.setEnabled(false);
      jCheckBoxBatch.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxBatch.setBounds(422, 21, 21, 21);
      jCheckBoxBatch.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt)
        {
          enableField(jTextFieldBatch, jCheckBoxBatch.isSelected());
          calcBBEBatch();
        }
      });
      jStatusText = new JLabel4j_std();
      jDesktopPane1.add(jStatusText);
      jStatusText.setForeground(new java.awt.Color(255, 0, 0));
      jStatusText.setBounds(0, 532, 761, 21);
      jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
      jButtonReprint = new JButton4j(Common.icon_report);
      jButtonReprint.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e)
        {
          buildSQL(ssccList, ssccItems);
          String pq = comboBoxPrintQueue.getSelectedItem().toString();
         
           JLaunchReport.runReport(labelPrint.getPalletLabelReportName(pallet.getProcessOrder()), listStatement, jCheckBoxAutoPreview.isSelected(), pq,
              Integer.valueOf(jSpinnerCopies.getValue().toString()), checkBoxIncHeaderText.isSelected());

        }
      });
      jButtonReprint.setMnemonic(KeyEvent.VK_C);
      jButtonReprint.setText(lang.get("btn_Re_Print"));
      jButtonReprint.setBounds(248, 492, 126, 28);
      jButtonReprint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_REPRINT"));
      jDesktopPane1.add(jButtonReprint);

      {
        final JPanel panel = new JPanel();
        panel.setBorder(new TitledBorder(null, lang.get("lbl_Options"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));
        panel.setBackground(Color.WHITE);
        panel.setFont(Common.font_title);
        panel.setLayout(null);
        panel.setBounds(7, 374, 748, 73);
        jDesktopPane1.add(panel);
        jLabelPrintLabel = new JLabel4j_std();
        jLabelPrintLabel.setBounds(0, 15, 129, 21);
        panel.add(jLabelPrintLabel);
        jLabelPrintLabel.setHorizontalAlignment(SwingConstants.TRAILING);
        jLabelPrintLabel.setText(lang.get("lbl_Print"));
        jCheckBoxAutoPrint = new JCheckBox();
        jCheckBoxAutoPrint.setBounds(139, 15, 21, 21);
        panel.add(jCheckBoxAutoPrint);
        jCheckBoxAutoPrint.setToolTipText("Auto SSCC");
        jCheckBoxAutoPrint.setSelected(true);
        jCheckBoxAutoPrint.setBackground(new Color(255, 255, 255));
        jCheckBoxAutoPrint.setText("New JCheckBox");
        jCheckBoxAutoPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_PRINT"));
        jLabelPrintLabel_1 = new JLabel4j_std();
        jLabelPrintLabel_1.setBounds(282, 15, 138, 21);
        panel.add(jLabelPrintLabel_1);
        jLabelPrintLabel_1.setHorizontalTextPosition(SwingConstants.CENTER);
        jLabelPrintLabel_1.setHorizontalAlignment(SwingConstants.TRAILING);
        jLabelPrintLabel_1.setText(lang.get("lbl_Preview"));
        jCheckBoxAutoPreview = new JCheckBox();
        jCheckBoxAutoPreview.setBounds(424, 15, 21, 21);
        panel.add(jCheckBoxAutoPreview);
        jCheckBoxAutoPreview.setToolTipText("Auto SSCC");
        jCheckBoxAutoPreview.setSelected(true);
        jCheckBoxAutoPreview.setBackground(new Color(255, 255, 255));
        jCheckBoxAutoPreview.setText("New JCheckBox");
        jCheckBoxAutoPreview.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_PREVIEW"));
        jLabelPrintLabel_2 = new JLabel4j_std();
        jLabelPrintLabel_2.setHorizontalAlignment(SwingConstants.TRAILING);
        jLabelPrintLabel_2.setText(lang.get("lbl_Label_Header_Text"));
        jLabelPrintLabel_2.setBounds(10, 44, 119, 21);
        panel.add(jLabelPrintLabel_2);
        jCheckBoxAutoConfirm = new JCheckBox();
        jCheckBoxAutoConfirm.setBackground(Color.WHITE);
        jCheckBoxAutoConfirm.setText("New JCheckBox");
        jCheckBoxAutoConfirm.setBounds(424, 44, 21, 21);
        panel.add(jCheckBoxAutoConfirm);
        jCheckBoxAutoConfirm.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_CONFIRM"));
        jLabelQuantity_1 = new JLabel4j_std();
        jLabelQuantity_1.setBounds(474, 15, 201, 21);
        panel.add(jLabelQuantity_1);
        jLabelQuantity_1.setHorizontalAlignment(SwingConstants.RIGHT);
        jLabelQuantity_1.setText(lang.get("lbl_Number_of_SSCCs"));

        jSpinnerQuantity = new JSpinner();
        jSpinnerQuantity.addChangeListener(new ChangeListener() {
          public void stateChanged(final ChangeEvent e)
          {
            int t = Integer.valueOf(jSpinnerQuantity.getValue().toString());

            if (t <= 0)
            {
              jSpinnerQuantity.setValue(1);
            }

            if (t > 50)
            {
              jSpinnerQuantity.setValue(50);
            }
          }
        });
        jSpinnerQuantity.setBounds(687, 15, 49, 21);
        jSpinnerQuantity.setInputVerifier(null);
        jSpinnerQuantity.setModel(quantitynumbermodel);
        jSpinnerQuantity.setValue(1);
        JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerQuantity);
        ne.getTextField().setFont(Common.font_std);
        jSpinnerQuantity.setEditor(ne);
        panel.add(jSpinnerQuantity);

        jSpinnerCopies = new JSpinner();
        jSpinnerCopies.setBounds(687, 44, 49, 21);
        jSpinnerCopies.setInputVerifier(null);
        jSpinnerCopies.setModel(copiesnumbermodel);
        JSpinner.NumberEditor nec2 = new JSpinner.NumberEditor(jSpinnerCopies);
        nec2.getTextField().setFont(Common.font_std);
        jSpinnerCopies.setEditor(nec2);
        panel.add(jSpinnerCopies);

        labelCopies.setText((String) null);
        labelCopies.setHorizontalAlignment(SwingConstants.RIGHT);
        labelCopies.setBounds(474, 44, 201, 21);
        labelCopies.setText(lang.get("lbl_Labels_Per_SSCC"));
        panel.add(labelCopies);

        label_1 = new JLabel4j_std();
        label_1.setHorizontalAlignment(SwingConstants.TRAILING);
        label_1.setText(lang.get("lbl_Confirmed"));
        label_1.setBounds(292, 44, 129, 21);
        panel.add(label_1);

        checkBoxIncHeaderText = new JCheckBox();
        checkBoxIncHeaderText.setSelected(true);
        checkBoxIncHeaderText.setText("New JCheckBox");
        checkBoxIncHeaderText.setBackground(Color.WHITE);
        checkBoxIncHeaderText.setBounds(139, 44, 21, 21);
        panel.add(checkBoxIncHeaderText);

        textFieldBatchExtension = new JTextField4j();
        textFieldBatchExtension.setText("");
        textFieldBatchExtension.setBounds(561, 21, 39, 21);
        jPanelBatch.add(textFieldBatchExtension);

        calendarButtonjSpinnerExpiryDate = new JCalendarButton(jSpinnerExpiryDate);
        calendarButtonjSpinnerExpiryDate.setEnabled(false);
        calendarButtonjSpinnerExpiryDate.setBounds(290, 18, 21, 21);
        jPanelBatch.add(calendarButtonjSpinnerExpiryDate);

      }

      lblPrintQueueFor = new JLabel4j_std(lang.get("lbl_Print_Queue"));
      lblPrintQueueFor.setHorizontalAlignment(SwingConstants.TRAILING);
      lblPrintQueueFor.setBounds(7, 461, 102, 16);
      jDesktopPane1.add(lblPrintQueueFor);

    } catch (Exception e)
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

          button.setText(lang.get("btn_Search"));
          button.setMnemonic(lang.getMnemonicChar());
          button.setBounds(3, 75, 120, 32);
          jDesktopPane1.add(button);

          JLabel4j_std label = new JLabel4j_std();
          label.setForeground(Color.RED);
          label.setBackground(Color.GRAY);
          label.setBounds(0, 550, 976, 21);
          jDesktopPane1.add(label);

          JLabel4j_std label_1 = new JLabel4j_std();
          label_1.setHorizontalTextPosition(SwingConstants.RIGHT);
          label_1.setHorizontalAlignment(SwingConstants.RIGHT);
          label_1.setText(lang.get("lbl_Text"));
          label_1.setBounds(8, 45, 115, 21);
          jDesktopPane1.add(label_1);

          JLabel4j_std label_2 = new JLabel4j_std();
          label_2.setHorizontalTextPosition(SwingConstants.RIGHT);
          label_2.setHorizontalAlignment(SwingConstants.RIGHT);
          label_2.setBounds(557, 12, 115, 21);
          label_2.setText(lang.get("lbl_Resource_Key"));
          jDesktopPane1.add(label_2);

          JLabel4j_std label_3 = new JLabel4j_std();
          label_3.setHorizontalTextPosition(SwingConstants.RIGHT);
          label_3.setHorizontalAlignment(SwingConstants.RIGHT);
          label_3.setText(lang.get("lbl_Language_ID"));
          label_3.setBounds(8, 12, 115, 21);
          jDesktopPane1.add(label_3);

          JLabel4j_std label_4 = new JLabel4j_std();
          label_4.setText(lang.get("lbl_Mnemonic"));
          label_4.setHorizontalTextPosition(SwingConstants.RIGHT);
          label_4.setHorizontalAlignment(SwingConstants.RIGHT);
          label_4.setBounds(557, 45, 115, 21);
          jDesktopPane1.add(label_4);

          comboBoxLanguageID = new JComboBox4j<String>();
          comboBoxLanguageID.setModel(new DefaultComboBoxModel<String>(Common.languages));
          comboBoxLanguageID.setPreferredSize(new Dimension(45, 21));
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

      buttonReasonLookup.setBounds(214, 35, 21, 21);
      jDesktopPane1.add(buttonReasonLookup);
    }
    {
      jLabelAuthorisor = new JLabel4j_std();
      jLabelAuthorisor.setText(lang.get("lbl_Authorisor"));
      jLabelAuthorisor.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelAuthorisor.setBounds(726, 8, 103, 21);
      jDesktopPane1.add(jLabelAuthorisor);
    }
    {
      jTextFieldAuthorisor = new JTextField4j();
      jTextFieldAuthorisor.setBounds(833, 8, 99, 21);
      jDesktopPane1.add(jTextFieldAuthorisor);
    }
   
    JLabel4j_std labelCreated = new JLabel4j_std();
    labelCreated.setText(lang.get("lbl_Created"));
    labelCreated.setHorizontalAlignment(SwingConstants.TRAILING);
    labelCreated.setBounds(476, 35, 126, 21);
    jDesktopPane1.add(labelCreated);
   
    dateControlCreatedFrom = new JDateControl();
    dateControlCreatedFrom.setEnabled(false);
    dateControlCreatedFrom.setBounds(634, 31, 125, 25);
    jDesktopPane1.add(dateControlCreatedFrom);
   
    calendarButtonCreatedFrom = new JCalendarButton(dateControlCreatedFrom);
    calendarButtonCreatedFrom.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
      }
    });
    calendarButtonCreatedFrom.setEnabled(false);
    calendarButtonCreatedFrom.setBounds(763, 35, 21, 21);
    jDesktopPane1.add(calendarButtonCreatedFrom);
   
    checkBoxCreatedFrom = new JCheckBox();
    checkBoxCreatedFrom.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (checkBoxCreatedFrom.isSelected())
        {
          dateControlCreatedFrom.setEnabled(true);
          calendarButtonCreatedFrom.setEnabled(true);
        }
        else
        {
          dateControlCreatedFrom.setEnabled(false);
          calendarButtonCreatedFrom.setEnabled(false);
        }
      }
    });
    checkBoxCreatedFrom.setBackground(Color.WHITE);
    checkBoxCreatedFrom.setBounds(604, 31, 21, 25);
    jDesktopPane1.add(checkBoxCreatedFrom);
   
    checkBoxCreatedTo = new JCheckBox();
    checkBoxCreatedTo.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (checkBoxCreatedTo.isSelected())
        {
          dateControlCreatedTo.setEnabled(true);
          calendarButtonCreatedTo.setEnabled(true);
        }
        else
        {
          dateControlCreatedTo.setEnabled(false);
          calendarButtonCreatedTo.setEnabled(false);
        }
      }
    });
    checkBoxCreatedTo.setBackground(Color.WHITE);
    checkBoxCreatedTo.setBounds(784, 31, 21, 25);
    jDesktopPane1.add(checkBoxCreatedTo);
   
    dateControlCreatedTo = new JDateControl();
    dateControlCreatedTo.setEnabled(false);
    dateControlCreatedTo.setBounds(810, 31, 125, 25);
    jDesktopPane1.add(dateControlCreatedTo);
   
    calendarButtonCreatedTo = new JCalendarButton(dateControlCreatedTo);
    calendarButtonCreatedTo.setEnabled(false);
    calendarButtonCreatedTo.setBounds(938, 35, 21, 21);
    jDesktopPane1.add(calendarButtonCreatedTo);
   
    JLabel4j_std labelExpected = new JLabel4j_std();
    labelExpected.setText(lang.get("lbl_Expected"));
    labelExpected.setHorizontalAlignment(SwingConstants.TRAILING);
    labelExpected.setBounds(476, 63, 126, 21);
    jDesktopPane1.add(labelExpected);
   
    checkBoxExpectedFrom = new JCheckBox();
    checkBoxExpectedFrom.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (checkBoxExpectedFrom.isSelected())
        {
          dateControlExpectedFrom.setEnabled(true);
          calendarButtonExpectedFrom.setEnabled(true);
        }
        else
        {
          dateControlExpectedFrom.setEnabled(false);
          calendarButtonExpectedFrom.setEnabled(false);
        }
      }
    });
    checkBoxExpectedFrom.setBackground(Color.WHITE);
    checkBoxExpectedFrom.setBounds(604, 59, 21, 25);
    jDesktopPane1.add(checkBoxExpectedFrom);
   
    dateControlExpectedFrom = new JDateControl();
    dateControlExpectedFrom.setEnabled(false);
    dateControlExpectedFrom.setBounds(634, 59, 125, 25);
    jDesktopPane1.add(dateControlExpectedFrom);
   
    calendarButtonExpectedFrom = new JCalendarButton(dateControlExpectedFrom);
    calendarButtonExpectedFrom.setEnabled(false);
    calendarButtonExpectedFrom.setBounds(763, 63, 21, 21);
    jDesktopPane1.add(calendarButtonExpectedFrom);
   
    checkBoxExpectedTo = new JCheckBox();
    checkBoxExpectedTo.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        if (checkBoxExpectedTo.isSelected())
        {
          dateControlExpectedTo.setEnabled(true);
          calendarButtonExpectedTo.setEnabled(true);
        }
        else
        {
          dateControlExpectedTo.setEnabled(false);
          calendarButtonExpectedTo.setEnabled(false);
        }
      }
    });
    checkBoxExpectedTo.setBackground(Color.WHITE);
    checkBoxExpectedTo.setBounds(784, 59, 21, 25);
    jDesktopPane1.add(checkBoxExpectedTo);
   
    dateControlExpectedTo = new JDateControl();
    dateControlExpectedTo.setEnabled(false);
    dateControlExpectedTo.setBounds(810, 59, 125, 25);
    jDesktopPane1.add(dateControlExpectedTo);
   
    calendarButtonExpectedTo = new JCalendarButton(dateControlExpectedTo);
    calendarButtonExpectedTo.setEnabled(false);
    calendarButtonExpectedTo.setBounds(938, 63, 21, 21);
    jDesktopPane1.add(calendarButtonExpectedTo);
   
    JLabel4j_std labelResolved = new JLabel4j_std();
    labelResolved.setText(lang.get("lbl_Resolved"));
    labelResolved.setHorizontalAlignment(SwingConstants.TRAILING);
    labelResolved.setBounds(480, 90, 122, 21);
    jDesktopPane1.add(labelResolved);
   
    checkBoxResolvedFrom = new JCheckBox();
    checkBoxResolvedFrom.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

        jDesktopPane1 = new JDesktopPane();
        jDesktopPane1.setBackground(Color.WHITE);
        getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setLayout(null);
        {
          jLabelRecorder = new JLabel4j_std();
          jDesktopPane1.add(jLabelRecorder);
          jLabelRecorder.setText(lang.get("lbl_Recorder"));
          jLabelRecorder.setBounds(242, 8, 102, 21);
          jLabelRecorder.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          JButton4j btnExcel = new JButton4j(Common.icon_XLS);
          btnExcel.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent arg0)
            {
              export();
            }
          });
          btnExcel.setText(lang.get("btn_Excel"));
          btnExcel.setMnemonic(lang.getMnemonicChar());
          btnExcel.setBounds(642, 118, 106, 28);
          jDesktopPane1.add(btnExcel);
        }
        {
          jTextFieldRecorder = new JTextField4j();
          jDesktopPane1.add(jTextFieldRecorder);
          jTextFieldRecorder.setBounds(350, 8, 99, 21);
        }
        {
          jLabelComment = new JLabel4j_std();
          jDesktopPane1.add(jLabelComment);
          jLabelComment.setText(lang.get("lbl_Comment"));
          jLabelComment.setBounds(2, 63, 102, 21);
          jLabelComment.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldComment = new JTextField4j();
          jDesktopPane1.add(jTextFieldComment);
          jTextFieldComment.setBounds(109, 63, 360, 21);
        }
        {
          jScrollPane1 = new JScrollPane();
          jScrollPane1.getViewport().setBackground(Common.color_tablebackground);
          jScrollPane1.setToolTipText("");
          jDesktopPane1.add(jScrollPane1);
          jScrollPane1.setBounds(0, 152, 969, 343);
          {
            TableModel jTable1Model = new DefaultTableModel(new String[][] { { "One", "Two" }, { "Three", "Four" } }, new String[] { "Column 1", "Column 2" });
            jTable1 = new JTable();
            jTable1.setToolTipText("Update selected MHN by using the Edit option.");
            jTable1.setDefaultRenderer(Object.class, Common.renderer_table);
            jScrollPane1.setViewportView(jTable1);
            jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            jTable1.getTableHeader().setFont(Common.font_table_header);
            jTable1.addMouseListener(new MouseAdapter()
            {
              public void mouseClicked(MouseEvent evt)
              {
                if (evt.getClickCount() == 2)
                {
                  if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_EDIT"))
                  {
                    editRecord();
                  }
                }
              }
            });
            jTable1.setModel(jTable1Model);

            {
              final JPopupMenu popupMenu = new JPopupMenu();
              addPopup(jTable1, popupMenu);

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_find);
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    search();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Search"));
                popupMenu.add(newItemMenuItem);
              }

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_add);
                newItemMenuItem.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_ADD"));
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    create();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Add"));
                popupMenu.add(newItemMenuItem);
              }

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_edit);
                newItemMenuItem.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_EDIT"));
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    editRecord();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Edit"));
                popupMenu.add(newItemMenuItem);
              }

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_delete);
                newItemMenuItem.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_DELETE"));
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    deleteRecord();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Delete"));
                popupMenu.add(newItemMenuItem);
              }

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_print);
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    print();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Print"));
                popupMenu.add(newItemMenuItem);
              }

              {
                final JMenu4j sortByMenu = new JMenu4j();
                sortByMenu.setText(lang.get("lbl_Sort_By"));
                popupMenu.add(sortByMenu);

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      sortBy("MHN_NUMBER");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_MHN_Number"));
                  sortByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      sortBy("INITIATOR");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Initiator"));
                  sortByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      sortBy("RECORDER");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Recorder"));
                  sortByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      sortBy("REASON");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Reason"));
                  sortByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      sortBy("STATUS");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Status"));
                  sortByMenu.add(newItemMenuItem);
                }


              }

              {
                final JMenu4j filterByMenu = new JMenu4j();
                filterByMenu.setText("Filter by");
                popupMenu.add(filterByMenu);

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      filterBy("RECORDER");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Recorder"));
                  filterByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      filterBy("INITIATOR");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Initiator"));
                  filterByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      filterBy("REASON");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Reason"));
                  filterByMenu.add(newItemMenuItem);
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      filterBy("STATUS");
                    }
                  });
                  newItemMenuItem.setText(lang.get("lbl_Status"));
                  filterByMenu.add(newItemMenuItem);
                }


                {
                  filterByMenu.addSeparator();
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      clearFilter();
                    }
                  });
                  newItemMenuItem.setText(lang.get("btn_Clear_Filter"));
                  filterByMenu.add(newItemMenuItem);
                }
              }
            }
          }
        }
        {
          jLabelInitiator = new JLabel4j_std();
          jDesktopPane1.add(jLabelInitiator);
          jLabelInitiator.setText(lang.get("lbl_Initiator"));
          jLabelInitiator.setBounds(480, 8, 103, 21);
          jLabelInitiator.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldInitiator = new JTextField4j();
          jDesktopPane1.add(jTextFieldInitiator);
          jTextFieldInitiator.setBounds(592, 8, 99, 21);
        }
        {
          jTextFieldMHN = new JTextField4j();
          jDesktopPane1.add(jTextFieldMHN);
          jTextFieldMHN.setBounds(109, 8, 126, 21);
        }
        {
          jLabelMHN = new JLabel4j_std();
          jDesktopPane1.add(jLabelMHN);
          jLabelMHN.setText(lang.get("lbl_MHN_Number"));
          jLabelMHN.setBounds(2, 8, 102, 21);
          jLabelMHN.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabelResource = new JLabel4j_std();
          jDesktopPane1.add(jLabelResource);
          jLabelResource.setText(lang.get("lbl_Process_Order_Required_Resource"));
          jLabelResource.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelResource.setBounds(2, 90, 102, 21);
        }
        {
          jTextFieldResource = new JTextField4j();
          jDesktopPane1.add(jTextFieldResource);
          jTextFieldResource.setBounds(109, 90, 126, 21);
        }
        {
          jLabelReason = new JLabel4j_std();
          jDesktopPane1.add(jLabelReason);
          jLabelReason.setText(lang.get("lbl_Reason"));
          jLabelReason.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelReason.setBounds(2, 35, 102, 21);
        }
        {
          jTextFieldReason = new JTextField4j();
          jDesktopPane1.add(jTextFieldReason);
          jTextFieldReason.setBounds(109, 35, 105, 21);
        }
        {
          jLabelStatus = new JLabel4j_std();
          jDesktopPane1.add(jLabelStatus);
          jLabelStatus.setText(lang.get("lbl_Status"));
          jLabelStatus.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelStatus.setBounds(242, 35, 102, 21);
        }
        {
          jTextFieldStatus = new JComboBox4j();
          jTextFieldStatus.setModel(new DefaultComboBoxModel(new String[] {"", "Active", "Closed"}));
          jDesktopPane1.add(jTextFieldStatus);
          jTextFieldStatus.setBounds(349, 35, 120, 23);
          jTextFieldStatus.setSelectedItem("Active");
        }
        {
          jLabel1SortBy = new JLabel4j_std();
          jDesktopPane1.add(jLabel1SortBy);
          jLabel1SortBy.setText(lang.get("lbl_Sort_By"));
          jLabel1SortBy.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1SortBy.setBounds(242, 90, 80, 21);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "MHN_NUMBER", "RECORDER", "INITIATOR", "REASON", "STATUS", "DATE_CREATED", "DATE_EXPECTED",
              "DATE_RESOLVED" });
          jComboBoxSortBy = new JComboBox4j();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(328, 90, 141, 23);
          jComboBoxSortBy.setSelectedItem("MHN_NUMBER");
          jComboBoxSortBy.setRequestFocusEnabled(false);
        }
        {
          jButtonSearch = new JButton4j(Common.icon_find);
          jDesktopPane1.add(jButtonSearch);
          jButtonSearch.setText(lang.get("btn_Search"));
          jButtonSearch.setMnemonic(lang.getMnemonicChar());
          jButtonSearch.setBounds(0, 118, 106, 28);
          jButtonSearch.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              search();

            }
          });
        }
        {
          jButtonAdd = new JButton4j(Common.icon_add);
          jButtonAdd.setToolTipText("Create new MHN");
          jDesktopPane1.add(jButtonAdd);
          jButtonAdd.setText(lang.get("btn_Add"));
          jButtonAdd.setMnemonic(lang.getMnemonicChar());
          jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_ADD"));
          jButtonAdd.setBounds(214, 118, 106, 28);
          jButtonAdd.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              create();
            }
          });
        }
        {
          jButtonEdit = new JButton4j(Common.icon_edit);
          jButtonEdit.setToolTipText("Edit MHN (Update Pallets)");
          jDesktopPane1.add(jButtonEdit);
          jButtonEdit.setText(lang.get("btn_Edit"));
          jButtonEdit.setMnemonic(lang.getMnemonicChar());
          jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_EDIT"));
          jButtonEdit.setBounds(321, 118, 106, 28);
          jButtonEdit.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              editRecord();
            }
          });
        }
        {
          jButtonDelete = new JButton4j(Common.icon_delete);
          jButtonDelete.setToolTipText("Delete MHN");
          jDesktopPane1.add(jButtonDelete);
          jButtonDelete.setText(lang.get("btn_Delete"));
          jButtonDelete.setMnemonic(lang.getMnemonicChar());
          jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_DELETE"));
          jButtonDelete.setBounds(428, 118, 106, 28);
          jButtonDelete.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              deleteRecord();
            }
          });
        }
        {
          jButtonPrint = new JButton4j(Common.icon_report);
          jDesktopPane1.add(jButtonPrint);
          jButtonPrint.setText(lang.get("btn_Print"));
          jButtonPrint.setMnemonic(lang.getMnemonicChar());
          jButtonPrint.setBounds(535, 118, 106, 28);
          jButtonPrint.setEnabled(true);
          jButtonPrint.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              print();
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
          jButtonHelp.setBounds(749, 118, 106, 28);
        }
        {

          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.setBounds(856, 118, 106, 28);
          jButtonClose.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JDBQuery.closeStatement(listStatement);
              dispose();
            }
          });
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(470, 90, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }

        {
          jStatusText = new JLabel4j_std();
          jStatusText.setForeground(new Color(255, 0, 0));
          jStatusText.setBackground(Color.GRAY);
          jStatusText.setBounds(0, 495, 962, 21);
          jDesktopPane1.add(jStatusText);
        }
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

          jComboBoxOrderBy.setBounds(70, 63, 182, 23);
          jComboBoxOrderBy.setSelectedIndex(dlg_orderBy_name_default_pos);
        }

        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText("Value :");
          jLabel1.setBounds(0, 35, 63, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText("Criteria :");
          jLabel2.setBounds(0, 7, 63, 21);
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Sort_By")+" :");
          jLabel3.setBounds(0, 63, 63, 21);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jScrollPane1 = new JScrollPane();
          jDesktopPane1.add(jScrollPane1);
          jScrollPane1.setBounds(7, 154, 448, 350);
          jScrollPane1.getHorizontalScrollBar().addComponentListener(new ComponentAdapter() {
            public void componentResized(ComponentEvent evt) {
              if (jScrollPane1.getHorizontalScrollBar().isVisible() == true)
              {
                me.setSize(me.getSize().width + 50, (me.getSize().height));
                screen = Toolkit.getDefaultToolkit().getScreenSize();
                window = getBounds();
                setLocation((screen.width - window.width) / 2, (screen.height - window.height) / 2);
                me.validate();
              }
            }
          });
          {
            ListModel<String> jList1Model = new DefaultComboBoxModel<String>();

            jListData = new JList4j<String>();
            jScrollPane1.setViewportView(jListData);
            jListData.setModel(jList1Model);
            jListData.setCellRenderer(Common.renderer_list);
            jListData.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            jListData.setFont(Common.font_list);
            jListData.addMouseListener(new MouseAdapter() {
              public void mouseClicked(MouseEvent evt) {
                if (evt.getClickCount() == 2)
                {
                  jButtonSelect.doClick();
                }
              }
            });
          }
        }
        {
          jToggleButtonSequence = new JToggleButton(Common.icon_ascending);
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(259, 63, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }
        {

          jButtonSearch = new JButton4j(Common.icon_search);
          jDesktopPane1.add(jButtonSearch);
          jButtonSearch.setText(lang.get("btn_Search"));
          jButtonSearch.setBounds(3, 98, 113, 32);
          jButtonSearch.setMnemonic(java.awt.event.KeyEvent.VK_S);
          jButtonSearch.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              search();
            }
          });
        }
        {
          jTextFieldHeading = new JLabel4j_std();
          jDesktopPane1.add(jTextFieldHeading);
          jTextFieldHeading.setBounds(7, 133, 448, 21);
          jTextFieldHeading.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldHeading.setBorder(BorderFactory.createEtchedBorder(BevelBorder.LOWERED));
        }
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setBackground(Color.WHITE);
    desktopPane.setBounds(0, 0, 855, 162);
    getContentPane().add(desktopPane);
   
    JLabel4j_std lblInspectionID = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lblInspectionID.setBounds(8, 27, 87, 16);
    desktopPane.add(lblInspectionID);
    lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    JLabel4j_std lblActivityID = new JLabel4j_std(lang.get("lbl_Activity_ID"));
    lblActivityID.setBounds(6, 67, 89, 16);
    desktopPane.add(lblActivityID);
    lblActivityID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.setEnabled(false);
    textFieldInspectionID.setBounds(108, 22, 153, 28);
    desktopPane.add(textFieldInspectionID);
    textFieldInspectionID.setColumns(10);
   
   
    textFieldInspectionDescription = new JTextField4j();
    textFieldInspectionDescription.setEnabled(false);
    textFieldInspectionDescription.setBounds(377, 22, 463, 28);
    desktopPane.add(textFieldInspectionDescription);
    textFieldInspectionDescription.setColumns(10);
   

   
    btnSave = new JButton4j(lang.get("btn_Save"));
    btnSave.setEnabled(false);
    btnSave.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        save();
      }
    });
    btnSave.setIcon(Common.icon_save);
    btnSave.setBounds(292, 113, 117, 29);
    desktopPane.add(btnSave);
   
    btnClose = new JButton4j(lang.get("btn_Close"));
    btnClose.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        dispose();
      }
    });
    btnClose.setIcon(Common.icon_close);
    btnClose.setBounds(413, 113, 117, 29);
    desktopPane.add(btnClose);
   
    JLabel4j_std label4j_std_1 = new JLabel4j_std(lang.get("lbl_Description"));
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(273, 27, 92, 16);
    desktopPane.add(label4j_std_1);
   
    textFieldActivityID = new JTextField4j();
    textFieldActivityID.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldActivityID.setEnabled(false);
    textFieldActivityID.setText("<dynamic>");
    textFieldActivityID.setColumns(10);
    textFieldActivityID.setBounds(108, 62, 153, 28);
    desktopPane.add(textFieldActivityID);
   
    JLabel4j_std label4j_std_2 = new JLabel4j_std(lang.get("lbl_Description"));
    label4j_std_2.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_2.setBounds(267, 67, 98, 16);
    desktopPane.add(label4j_std_2);
   
    textFieldActivityDescription = new JTextField4j();
    textFieldActivityDescription.addKeyListener(new KeyAdapter() {
      @Override
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

                  });
                  newItemMenuItem.setText(lang.get("lbl_Material_UOM_Variant"));
                  sortByMenu.add(newItemMenuItem);
                }
                {
                  jStatusText = new JLabel4j_std();
                  jStatusText.setBounds(10, 540, 985, 21);
                  jDesktopPane1.add(jStatusText);
                  jStatusText.setForeground(new Color(255, 0, 0));
                  jStatusText.setBackground(Color.GRAY);
                }
              }
            }

          }
        }
        {
          jButtonSearch1 = new JButton4j(Common.icon_search);
          jDesktopPane1.add(jButtonSearch1);
          jButtonSearch1.setText(lang.get("btn_Search"));
          jButtonSearch1.setBounds(14, 176, 129, 32);
          jButtonSearch1.setMnemonic(java.awt.event.KeyEvent.VK_S);
          jButtonSearch1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              buildSQL();
              populateList();

            }
          });
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(134, 44, 120, 21);
        }
        {
          jTextFieldLocation = new JTextField4j();
          jDesktopPane1.add(jTextFieldLocation);
          jTextFieldLocation.setBounds(594, 44, 98, 21);
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setBounds(1, 44, 121, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Location_ID"));
          jLabel3.setBounds(485, 44, 103, 21);
        }
        {
          ComboBoxModel<JDBUom> jComboBox2Model = new DefaultComboBoxModel<JDBUom>(uomList);
          jComboBoxUOM = new JComboBox4j<JDBUom>();
          jDesktopPane1.add(jComboBoxUOM);
          jComboBoxUOM.setModel(jComboBox2Model);
          jComboBoxUOM.setBounds(865, 75, 130, 23);
          jComboBoxUOM.setMaximumRowCount(12);
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setText(lang.get("lbl_Pallet_UOM"));
          jLabel4.setBounds(764, 77, 96, 21);
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setBounds(582, 176, 129, 32);
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(866, 176, 129, 32);
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JDBQuery2.closeStatement(listStatement);
              dispose();
            }
          });
        }
        {
          jButtonPrint = new JButton4j(Common.icon_report);
          jDesktopPane1.add(jButtonPrint);
          jButtonPrint.setText(lang.get("btn_Print"));
          jButtonPrint.setBounds(298, 176, 129, 32);
          jButtonPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PALLETS"));
          jButtonPrint.setMnemonic(lang.getMnemonicChar());
          jButtonPrint.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              print();
            }
          });
        }
        {
          jButtonPrint = new JButton4j(Common.icon_report);
          jDesktopPane1.add(jButtonPrint);
          jButtonPrint.setText(lang.get("btn_Print_Summary"));
          jButtonPrint.setBounds(440, 176, 129, 32);
          jButtonPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_HIST_SUMMARY"));
          jButtonPrint.setMnemonic(lang.getMnemonicChar());
          jButtonPrint.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              print_summary();
            }
          });
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Limit"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(661, 145, 87, 21);
        }
        {
          ComboBoxModel<String> jComboBoxSortByModel = new DefaultComboBoxModel<String>(new String[] { "TRANSACTION_REF,SSCC", "TRANSACTION_TYPE,TRANSACTION_SUBTYPE", "TRANSACTION_DATE,SSCC", "MATERIAL,BATCH_NUMBER", "MATERIAL,PROCESS_ORDER", "BATCH_NUMBER,MATERIAL", "PROCESS_ORDER", "QUANTITY",
              "DATE_OF_MANUFACTURE", "STATUS", "LOCATION_ID", "UOM", "EAN", "VARIANT" });
          jComboBoxSortBy = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(330, 143, 299, 23);
        }
        {
          ComboBoxModel<String> jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel<String>(Common.palletStatusIncBlank);
          jComboBoxPalletStatus = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxPalletStatus);
          jComboBoxPalletStatus.setModel(jComboBoxDefaultPalletStatusModel);
          jComboBoxPalletStatus.setBounds(844, 44, 150, 23);
        }
        {
          jLabel15 = new JLabel4j_std();
          jDesktopPane1.add(jLabel15);
          jLabel15.setText(lang.get("lbl_Pallet_Status"));
          jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel15.setBounds(731, 44, 108, 21);
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jToggleButtonSequence.setSelected(true);
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(637, 145, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }
        {
          jLabelQuantity = new JLabel4j_std();
          jDesktopPane1.add(jLabelQuantity);
          jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
          jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity.setBounds(1, 110, 121, 21);
        }
        {

          jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
          jDesktopPane1.add(jFormattedTextFieldQuantity);
          jFormattedTextFieldQuantity.setFont(Common.font_std);
          jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldQuantity.setBounds(161, 110, 70, 21);
          jFormattedTextFieldQuantity.setVerifyInputWhenFocusTarget(false);
          jFormattedTextFieldQuantity.setEnabled(false);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material_Batch"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(266, 44, 77, 21);
        }
        {
          jTextFieldBatch = new JTextField4j();
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setBounds(347, 44, 100, 21);
        }
        {
          jLabelProcessOrder = new JLabel4j_std();
          jDesktopPane1.add(jLabelProcessOrder);
          jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
          jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProcessOrder.setBounds(691, 110, 144, 21);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setBounds(844, 110, 119, 21);
        }
        {
          jTextFieldEAN = new JTextField4j();
          jDesktopPane1.add(jTextFieldEAN);
          jTextFieldEAN.setBounds(594, 77, 119, 21);
          jTextFieldEAN.setFocusCycleRoot(true);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_UOM_EAN"));
          jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel5.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel5.setBounds(485, 77, 103, 21);
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText("/");
          jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel6.setBounds(714, 77, 10, 21);
        }
        {
          jTextFieldVariant = new JTextField4j();
          jDesktopPane1.add(jTextFieldVariant);
          jTextFieldVariant.setBounds(725, 77, 21, 21);
          jTextFieldVariant.setFocusCycleRoot(true);
        }
        {
          jCheckBoxQuantity = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxQuantity);
          jCheckBoxQuantity.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxQuantity.setBounds(129, 110, 21, 21);
          jCheckBoxQuantity.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              if (jCheckBoxQuantity.isSelected())
              {
                jFormattedTextFieldQuantity.setValue(0);
                jFormattedTextFieldQuantity.setEnabled(true);
              }
              else
              {
                jFormattedTextFieldQuantity.setValue(0);
                jFormattedTextFieldQuantity.setEnabled(false);
              }
            }
          });
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Sort_By"));
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel7.setBounds(161, 145, 158, 21);
        }
        {
          SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel();
          jSpinnerIntModel.setMinimum(1);
          jSpinnerIntModel.setMaximum(100000);
          jSpinnerIntModel.setStepSize(1);

          jSpinnerLimit = new JSpinner();
          jDesktopPane1.add(jSpinnerLimit);
         
          jSpinnerLimit.setModel(jSpinnerIntModel);
          JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerLimit);
          ne.getTextField().setFont(Common.font_std);
          jSpinnerLimit.setEditor(ne);
          jSpinnerLimit.setBounds(776, 145, 73, 21);
          jSpinnerLimit.setValue(1000);
          jSpinnerLimit.getEditor().setSize(45, 21);
        }
        {
          jCheckBoxLimit = new JCheckBox4j();
          jDesktopPane1.add(jCheckBoxLimit);
          jCheckBoxLimit.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxLimit.setBounds(755, 145, 21, 21);
          jCheckBoxLimit.setSelected(true);
          jCheckBoxLimit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              if (jCheckBoxLimit.isSelected())
              {
                jSpinnerLimit.setEnabled(true);
              }
              else
              {
                jSpinnerLimit.setEnabled(false);
              }
            }
          });
        }
        {
          jButtonLookupProcessOrder = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupProcessOrder);
          jButtonLookupProcessOrder.setBounds(963, 110, 21, 21);
          jButtonLookupProcessOrder.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgCriteriaDefault = "Ready";
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.processOrders())
              {
                jTextFieldProcessOrder.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupBatch = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupBatch);
          jButtonLookupBatch.setBounds(446, 44, 21, 21);
          jButtonLookupBatch.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.materialBatches())
              {
                jTextFieldBatch.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupMaterial);
          jButtonLookupMaterial.setBounds(253, 44, 21, 21);
          jButtonLookupMaterial.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = false;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.materials())
              {
                jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupLocation = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupLocation);
          jButtonLookupLocation.setBounds(691, 44, 21, 21);
          jButtonLookupLocation.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "Y";
              if (JLaunchLookup.locations())
              {
                jTextFieldLocation.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jTextFieldSSCC = new JTextField4j();
          jDesktopPane1.add(jTextFieldSSCC);
          jTextFieldSSCC.setBounds(134, 77, 140, 21);
        }
        {
          jLabelSCC = new JLabel4j_std();
          jDesktopPane1.add(jLabelSCC);
          jLabelSCC.setText(lang.get("lbl_Pallet_SSCC"));
          jLabelSCC.setBounds(1, 77, 121, 21);
          jLabelSCC.setHorizontalAlignment(SwingConstants.TRAILING);
        }

        {
          jLabel8_1 = new JLabel4j_std();
          jLabel8_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8_1.setText(lang.get("lbl_Despatch_No"));
          jLabel8_1.setBounds(266, 77, 77, 21);
          jDesktopPane1.add(jLabel8_1);
        }

        {
          jTextFieldDespatch_No = new JTextField4j();
          jTextFieldDespatch_No.setFocusCycleRoot(true);
          jTextFieldDespatch_No.setBounds(347, 77, 119, 21);
          jDesktopPane1.add(jTextFieldDespatch_No);
        }

        {
          jLabel1_1 = new JLabel4j_std();
          jLabel1_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1_1.setText(lang.get("lbl_Transaction_Ref"));
          jLabel1_1.setBounds(485, 110, 103, 21);
          jDesktopPane1.add(jLabel1_1);
        }

        {
          transactionDateFrom = new JDateControl();
          transactionDateFrom.setBounds(154, 7, 128, 25);
          transactionDateFrom.setEnabled(false);
          jDesktopPane1.add(transactionDateFrom);
        }

        {
          jCheckBoxTransactionDate = new JCheckBox4j();
          jCheckBoxTransactionDate.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent e) {
              if (jCheckBoxTransactionDate.isSelected())
              {
                transactionDateFrom.setEnabled(true);
                transactionDateTo.setEnabled(true);
                calendarButtontransactionDateFrom.setEnabled(true);
                calendarButtontransactionDateTo.setEnabled(true);
              }
              else
              {
                transactionDateFrom.setEnabled(false);
                transactionDateTo.setEnabled(false);
                calendarButtontransactionDateFrom.setEnabled(false);
                calendarButtontransactionDateTo.setEnabled(false);
              }
            }
          });
          jCheckBoxTransactionDate.setBackground(new Color(255, 255, 255));
          jCheckBoxTransactionDate.setBounds(129, 9, 21, 21);
          jDesktopPane1.add(jCheckBoxTransactionDate);
        }

        {
          jLabel1_2 = new JLabel4j_std();
          jLabel1_2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1_2.setText(lang.get("lbl_Transaction_Date"));
          jLabel1_2.setBounds(1, 12, 121, 21);
          jDesktopPane1.add(jLabel1_2);
        }

        {
          jLabel1_3 = new JLabel4j_std();
          jLabel1_3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1_3.setText(lang.get("lbl_Transaction_Type"));
          jLabel1_3.setBounds(495, 11, 93, 21);
          jDesktopPane1.add(jLabel1_3);
        }

        {
          jLabel1_4 = new JLabel4j_std();
          jLabel1_4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1_4.setText(lang.get("lbl_Transaction_Subtype"));
          jLabel1_4.setBounds(721, 11, 140, 23);
          jDesktopPane1.add(jLabel1_4);
        }

        {
          comboBoxTransactionType = new JComboBox4j<String>();
          comboBoxTransactionType.setModel(new DefaultComboBoxModel<String>(Common.transactionTypes));
          comboBoxTransactionType.setBounds(593, 11, 124, 23);
          jDesktopPane1.add(comboBoxTransactionType);
        }

        {
          comboBoxTransactionSubtype = new JComboBox4j<String>();
          comboBoxTransactionSubtype.setModel(new DefaultComboBoxModel<String>(Common.transactionSubTypes));
          comboBoxTransactionSubtype.setBounds(865, 11, 130, 23);
          jDesktopPane1.add(comboBoxTransactionSubtype);
        }

        {
          jTextFieldTransaction_Ref = new JTextField4j();
          jTextFieldTransaction_Ref.setBounds(595, 110, 87, 21);
          jDesktopPane1.add(jTextFieldTransaction_Ref);
        }

        {
          transactionDateTo = new JDateControl();
          transactionDateTo.setBounds(347, 7, 128, 25);
          transactionDateTo.setEnabled(false);
          jDesktopPane1.add(transactionDateTo);
        }

        {
          final JButton4j exportXlsButton = new JButton4j(Common.icon_XLS);
          exportXlsButton.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent e) {
              export();
            }
          });
          exportXlsButton.setText(lang.get("btn_Excel"));
          exportXlsButton.setBounds(724, 176, 129, 32);
          jDesktopPane1.add(exportXlsButton);
        }

        {
          jTextFieldUser = new JTextField4j();
          jTextFieldUser.setBounds(348, 110, 119, 21);
          jDesktopPane1.add(jTextFieldUser);
        }

        {
          jLabel5_1 = new JLabel4j_std();
          jLabel5_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5_1.setText(lang.get("lbl_User_ID"));
          jLabel5_1.setBounds(266, 110, 77, 21);
          jDesktopPane1.add(jLabel5_1);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.