Package com.commander4j.gui

Examples of com.commander4j.gui.JTextField4j


    JLabel4j_std lblProcessOrder = new JLabel4j_std(lang.get("lbl_Process_Order"));
    lblProcessOrder.setBounds(6, 16, 111, 16);
    lblProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
    desktopPane.add(lblProcessOrder);

    textFieldProcessOrder = new JTextField4j();
    textFieldProcessOrder.setBounds(123, 14, 119, 22);

    desktopPane.add(textFieldProcessOrder);
    textFieldProcessOrder.setColumns(10);

    btnClose = new JButton4j(lang.get("btn_Close"));
    btnClose.setBounds(397, 157, 117, 32);
    btnClose.setIcon(Common.icon_close);
    btnClose.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        dispose();
      }
    });
    desktopPane.add(btnClose);

    JButton4j btnSearch = new JButton4j(lang.get("btn_Search"));
    btnSearch.setBounds(45, 157, 117, 32);
    btnSearch.setIcon(Common.icon_search);
    btnSearch.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        populateTable();
      }
    });
    desktopPane.add(btnSearch);

    JButton btnProcessOrderLookup = new JButton();
    btnProcessOrderLookup.setIcon(Common.icon_lookup);
    btnProcessOrderLookup.setBounds(240, 14, 21, 22);
    btnProcessOrderLookup.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        JLaunchLookup.dlgCriteriaDefault = "Ready";
        JLaunchLookup.dlgAutoExec = true;
        if (JLaunchLookup.processOrders())
        {
          textFieldProcessOrder.setText(JLaunchLookup.dlgResult);
        }
      }
    });
    desktopPane.add(btnProcessOrderLookup);

    lblStatusBar = new JLabel4j_std();
    lblStatusBar.setBounds(4, 612, 990, 21);
    lblStatusBar.setForeground(Color.RED);
    lblStatusBar.setBackground(Color.GRAY);
    desktopPane.add(lblStatusBar);

    scrollPaneResults = new JScrollPane();
    scrollPaneResults.setBounds(6, 198, 993, 410);
    scrollPaneResults.getViewport().setBackground(Common.color_tablebackground);
    desktopPane.setLayout(null);
    scrollPaneResults.setViewportView(table);
    desktopPane.add(scrollPaneResults);

    textFieldMaterial = new JTextField4j();
    textFieldMaterial.setColumns(10);
    textFieldMaterial.setBounds(386, 14, 119, 22);
    desktopPane.add(textFieldMaterial);

    JLabel4j_std lbl_material = new JLabel4j_std(lang.get("lbl_Material"));
    lbl_material.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_material.setBounds(263, 16, 111, 16);
    desktopPane.add(lbl_material);

    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.setColumns(10);
    textFieldInspectionID.setBounds(123, 115, 119, 22);
    desktopPane.add(textFieldInspectionID);

    lbl_inspection = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lbl_inspection.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_inspection.setBounds(6, 120, 111, 16);
    desktopPane.add(lbl_inspection);

    JButton4j btnExcel = new JButton4j(lang.get("btn_Excel"));
    btnExcel.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent arg0)
      {
        JExcel export = new JExcel();
        PreparedStatement temp = buildSQL();

        ResultSet rs;

        try
        {
          rs = temp.executeQuery();
          export.saveAs("qm_results.xls", rs, Common.mainForm);
        } catch (Exception e)
        {
          rs = null;

        }

      }
    });
    btnExcel.setIcon(Common.icon_XLS);
    btnExcel.setBounds(279, 157, 117, 32);
    desktopPane.add(btnExcel);

    JLabel4j_std label4j_std = new JLabel4j_std(lang.get("lbl_Sample_Date"));
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std.setBounds(6, 87, 108, 16);
    desktopPane.add(label4j_std);

    checkBoxSampleFrom = new JCheckBox4j();
    checkBoxSampleFrom.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (checkBoxSampleFrom.isSelected())
        {
          dateSampleFrom.setEnabled(true);
          calendarButtonsampleDateFrom.setEnabled(true);
        } else
        {
          dateSampleFrom.setEnabled(false);
          calendarButtonsampleDateFrom.setEnabled(false);
        }
      }
    });
    checkBoxSampleFrom.setBackground(Color.WHITE);
    checkBoxSampleFrom.setBounds(120, 80, 21, 25);
    desktopPane.add(checkBoxSampleFrom);

    dateSampleFrom = new JDateControl();
    dateSampleFrom.setFont(new Font("Arial", Font.PLAIN, 11));
    dateSampleFrom.setEnabled(false);
    dateSampleFrom.setBounds(142, 80, 128, 28);
    desktopPane.add(dateSampleFrom);

    checkBoxSampleTo = new JCheckBox4j();
    checkBoxSampleTo.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (checkBoxSampleTo.isSelected())
        {
          dateSampleTo.setEnabled(true);
          calendarButtonsampleDateTo.setEnabled(true);
        } else
        {
          dateSampleTo.setEnabled(false);
          calendarButtonsampleDateTo.setEnabled(false);
        }
      }
    });
    checkBoxSampleTo.setBackground(Color.WHITE);
    checkBoxSampleTo.setBounds(373, 80, 21, 25);
    desktopPane.add(checkBoxSampleTo);

    dateSampleTo = new JDateControl();
    dateSampleTo.setFont(new Font("Arial", Font.PLAIN, 11));
    dateSampleTo.setEnabled(false);
    dateSampleTo.setBounds(396, 80, 128, 25);
    desktopPane.add(dateSampleTo);

    JLabel4j_std label4j_std_1 = new JLabel4j_std(lang.get("lbl_User_Data1"));
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(6, 50, 111, 16);
    desktopPane.add(label4j_std_1);

    JLabel4j_std label4j_std_2 = new JLabel4j_std(lang.get("lbl_User_Data2"));
    label4j_std_2.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_2.setBounds(263, 50, 111, 16);
    desktopPane.add(label4j_std_2);

    textFieldUserData1 = new JTextField4j();
    textFieldUserData1.setColumns(10);
    textFieldUserData1.setBounds(123, 44, 138, 22);
    desktopPane.add(textFieldUserData1);

    textFieldUserData2 = new JTextField4j();
    textFieldUserData2.setColumns(10);
    textFieldUserData2.setBounds(386, 44, 138, 22);
    desktopPane.add(textFieldUserData2);

    calendarButtonsampleDateFrom = new JCalendarButton(dateSampleFrom);
View Full Code Here


    JLabel4j_std lblValue = new JLabel4j_std(lang.get("lbl_Value"));
    lblValue.setBounds(220, 27, 89, 16);
    desktopPane.add(lblValue);
    lblValue.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldListID = new JTextField4j();
    textFieldListID.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0) {
        enableSave();
      }
    });
    textFieldListID.setEnabled(false);
    textFieldListID.setBounds(103, 22, 117, 28);
    desktopPane.add(textFieldListID);
    textFieldListID.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(118, 143, 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(240, 143, 117, 29);
    desktopPane.add(btnClose);
   
    textFieldValue = new JTextField4j();
    textFieldValue.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldValue.setEnabled(false);
    textFieldValue.setText("<dynamic>");
    textFieldValue.setColumns(10);
    textFieldValue.setBounds(329, 22, 60, 28);
    desktopPane.add(textFieldValue);
   
    JLabel4j_std lblDescription = new JLabel4j_std(lang.get("lbl_Description"));
    lblDescription.setHorizontalAlignment(SwingConstants.TRAILING);
    lblDescription.setBounds(6, 64, 89, 16);
    desktopPane.add(lblDescription);
   
    textFieldDescription = new JTextField4j();
    textFieldDescription.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0) {
        enableSave();
      }
View Full Code Here

        jDesktopPane1.setBackground(Common.color_edit_properties);
        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(462, 497));
        jDesktopPane1.setLayout(null);
        {
          jTextFieldSSCC = new JTextField4j();
          jDesktopPane1.add(jTextFieldSSCC);
          jTextFieldSSCC.setEditable(false);
          jTextFieldSSCC.setEnabled(false);
          jTextFieldSSCC.setBounds(147, 6, 147, 21);
        }
        {
          jButtonSave = new JButton4j(Common.icon_update);
          jDesktopPane1.add(jButtonSave);
          jButtonSave.setEnabled(false);
          jButtonSave.setText(lang.get("btn_Save"));
          jButtonSave.setMnemonic(lang.getMnemonicChar());
          jButtonSave.setBounds(3, 502, 111, 32);
          jButtonSave.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              boolean result = true;

              long txnRef = 0;

              if (pallet.isValidPallet(lsscc) == true) {
                txnRef = pallet.writePalletHistory(txnRef, "EDIT", "FROM");
              }

              pallet.setProcessOrder(jTextFieldProcessOrder.getText());
              pallet.setMaterial(jTextFieldMaterial.getText());
              pallet.setBatchNumber(jTextFieldBatch.getText());
              pallet.setLocationID(jTextFieldLocation.getText());
              Date dom = productionDate.getDate();
              pallet.setDateOfManufacture(JUtility.getTimestampFromDate(dom));

              pallet.setQuantity(jFormattedTextFieldQuantity.getQuantity());
              pallet.setDespatchNo(textFieldDespatchNo.getText());
              pallet.setCustomerID(textFieldCustomer.getText());
              Date exp = expiryDate.getDate();
              pallet.setBatchExpiry(JUtility.getTimestampFromDate(exp));
              if (expiryMode.equals("SSCC")) {
                try {
                  Date d = expiryDate.getDate();
                  pallet.setBatchExpiry(JUtility.getTimestampFromDate(d));
                } catch (Exception ex) {

                }
              }

              if (pallet.isValidPallet(lsscc) == true) {
                result = pallet.update();
                if (result == true) {
                  pallet.writePalletHistory(txnRef, "EDIT", "TO");
                  pallet.updateStatus((String) jComboBoxDefaultPalletStatus.getSelectedItem());

                  jTextFieldLayers.setText(String.valueOf(pallet.getLayersOnPallet()));
                  enableOrdisableFields(null);
                  jButtonSave.setEnabled(false);
                  jButtonUndo.setEnabled(false);
                } else {
                  JUtility.errorBeep();
                  JOptionPane.showMessageDialog(Common.mainForm, pallet.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);

                }
              } else {
                result = pallet.create();
                if (result == true) {
                  txnRef = pallet.writePalletHistory(txnRef, "EDIT", "CREATE");
                  jTextFieldLayers.setText(String.valueOf(pallet.getLayersOnPallet()));
                  enableOrdisableFields(null);
                  jButtonSave.setEnabled(false);
                  jButtonUndo.setEnabled(false);
                } else {
                  JUtility.errorBeep();
                  JOptionPane.showMessageDialog(Common.mainForm, pallet.getErrorMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);

                }
              }
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
          jButtonHelp.setBounds(229, 502, 111, 32);
        }
        {
          jButtonCancel = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonCancel);
          jButtonCancel.setText(lang.get("btn_Close"));
          jButtonCancel.setMnemonic(lang.getMnemonicChar());
          jButtonCancel.setBounds(342, 502, 111, 32);
          jButtonCancel.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          ComboBoxModel<JDBUom> jComboBoxBaseUOMModel = new DefaultComboBoxModel<JDBUom>(uomList);
          jComboBoxUOM = new JComboBox4j<JDBUom>();
          jDesktopPane1.add(jComboBoxUOM);
          jComboBoxUOM.setModel(jComboBoxBaseUOMModel);
          jComboBoxUOM.setMaximumRowCount(12);
          jComboBoxUOM.setBounds(147, 280, 287, 23);
          jComboBoxUOM.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_UOM"));
          jComboBoxUOM.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              uomChanged();
            }
          });

        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Pallet_SSCC"));
          jLabel1.setBounds(7, 6, 133, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setBounds(7, 280, 133, 21);
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setText(lang.get("lbl_Material_UOM"));
        }
        {
          jLabel15 = new JLabel4j_std();
          jDesktopPane1.add(jLabel15);
          jLabel15.setText(lang.get("lbl_Pallet_Status"));
          jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel15.setBounds(7, 389, 133, 21);
        }
        {
          textFieldDespatchNo = new JTextField4j();
          textFieldDespatchNo.setFocusCycleRoot(true);
          textFieldDespatchNo.setEnabled(false);
          textFieldDespatchNo.setBounds(147, 446, 119, 21);
          textFieldDespatchNo.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              despatchNoChanged();
            }
          });
          jDesktopPane1.add(textFieldDespatchNo);
        }
        {
          ComboBoxModel<String> jComboBox1Model = new DefaultComboBoxModel<String>(Common.palletStatus);
          jComboBoxDefaultPalletStatus = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxDefaultPalletStatus);
          jComboBoxDefaultPalletStatus.setModel(jComboBox1Model);
          jComboBoxDefaultPalletStatus.setBounds(147, 389, 168, 23);
          jComboBoxDefaultPalletStatus.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_STATUS"));
          jComboBoxDefaultPalletStatus.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
              jButtonUndo.setEnabled(true);
            }
          });
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(7, 87, 133, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldMaterial.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterial.field_material));
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(147, 87, 119, 21);
          jTextFieldMaterial.setEditable(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_MATERIAL"));
          jTextFieldMaterial.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              materialChanged();
            }
          });
        }
        {
          jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupMaterial);
          jButtonLookupMaterial.setBounds(266, 87, 21, 21);
          jButtonLookupMaterial.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_MATERIAL"));
          jButtonLookupMaterial.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = false;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.materials()) {
                jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
                materialChanged();

              }
            }
          });
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Material_Batch"));
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(7, 141, 133, 21);
        }
        {
          jTextFieldBatch = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setBounds(147, 141, 119, 21);
          jTextFieldBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_BATCH"));
          jTextFieldBatch.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              materialBatchChanged();
            }
          });
        }
        {
          jButtonLookupBatch = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupBatch);
          jButtonLookupBatch.setBounds(266, 141, 21, 21);
          jButtonLookupBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_BATCH"));
          jButtonLookupBatch.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.materialBatches()) {
                jTextFieldBatch.setText(JLaunchLookup.dlgResult);
                materialBatchChanged();
              }
            }
          });
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Location_ID"));
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setBounds(7, 226, 133, 21);
        }
        {
          jTextFieldLocation = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldLocation.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_location_id));
          jDesktopPane1.add(jTextFieldLocation);
          jTextFieldLocation.setBounds(147, 226, 119, 21);
          jTextFieldLocation.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_LOCATION"));
          jTextFieldLocation.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              locationChanged();
            }
          });
        }
        {
          jButtonLookupLocation = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupLocation);
          jButtonLookupLocation.setBounds(266, 226, 21, 21);
          jButtonLookupLocation.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_LOCATION"));
          jButtonLookupLocation.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "Y";
              if (JLaunchLookup.locations()) {
                jTextFieldLocation.setText(JLaunchLookup.dlgResult);
                locationChanged();
              }
            }
          });
        }
        {
          jLabelProcessOrder = new JLabel4j_std();
          jDesktopPane1.add(jLabelProcessOrder);
          jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
          jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProcessOrder.setBounds(7, 33, 133, 21);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setBounds(147, 33, 119, 21);
          jTextFieldProcessOrder.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_PROCESS_ORDER"));
          jTextFieldProcessOrder.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              processOrderChanged();
            }
          });
        }
        {
          jButtonLookupProcessOrder = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButtonLookupProcessOrder);
          jButtonLookupProcessOrder.setBounds(266, 33, 21, 21);
          jButtonLookupProcessOrder.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_PROCESS_ORDER"));
          jButtonLookupProcessOrder.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgCriteriaDefault = "Ready";
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.processOrders()) {
                jTextFieldProcessOrder.setText(JLaunchLookup.dlgResult);
                processOrderChanged();
              }
            }
          });
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText(lang.get("lbl_Material_UOM_EAN"));
          jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel6.setBounds(7, 335, 133, 21);
        }
        {
          jTextFieldLayers = new JTextField4j();
          jTextFieldLayers.setFocusCycleRoot(true);
          jTextFieldLayers.setEnabled(false);
          jTextFieldLayers.setBounds(147, 308, 32, 21);
          jDesktopPane1.add(jTextFieldLayers);
        }
        {
          lblLayers = new JLabel4j_std();
          lblLayers.setText(lang.get("lbl_Pallet_Layers"));
          lblLayers.setHorizontalTextPosition(SwingConstants.RIGHT);
          lblLayers.setHorizontalAlignment(SwingConstants.RIGHT);
          lblLayers.setBounds(7, 308, 133, 21);
          jDesktopPane1.add(lblLayers);
        }
        {
          jTextFieldEAN = new JTextField4j();
          jDesktopPane1.add(jTextFieldEAN);
          jTextFieldEAN.setBounds(147, 335, 111, 21);
          jTextFieldEAN.setFocusCycleRoot(true);
          jTextFieldEAN.setEnabled(false);
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Material_UOM_Variant"));
          jLabel7.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel7.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel7.setBounds(266, 335, 74, 21);
        }
        {
          jTextFieldVariant = new JTextField4j();
          jDesktopPane1.add(jTextFieldVariant);
          jTextFieldVariant.setBounds(352, 335, 32, 21);
          jTextFieldVariant.setFocusCycleRoot(true);
          jTextFieldVariant.setEnabled(false);
        }
        {
          jLabelQuantity = new JLabel4j_std();
          jDesktopPane1.add(jLabelQuantity);
          jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
          jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity.setBounds(7, 253, 133, 21);
        }
        {
          jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
          jDesktopPane1.add(jFormattedTextFieldQuantity);
          jFormattedTextFieldQuantity.setFont(Common.font_std);
          jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldQuantity.setBounds(147, 253, 91, 21);
          jFormattedTextFieldQuantity.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_QUANTITY"));
          jFormattedTextFieldQuantity.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              jButtonSave.setEnabled(true);
              jButtonUndo.setEnabled(true);
            }
          });

        }
        {
          jLabelDespatchNo = new JLabel4j_std();
          jDesktopPane1.add(jLabelDespatchNo);
          jLabelDespatchNo.setText(lang.get("lbl_Despatch_No"));
          jLabelDespatchNo.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelDespatchNo.setBounds(7, 444, 133, 25);
        }
        {
          jLabelProductionDate = new JLabel4j_std();
          jDesktopPane1.add(jLabelProductionDate);
          jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
          jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProductionDate.setBounds(7, 416, 133, 25);
        }
        {
          productionDate = new JDateControl();
          jDesktopPane1.add(productionDate);
          productionDate.setBounds(147, 416, 125, 25);
          productionDate.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_PROD_DATE"));

        }

        productionDate.getEditor().addKeyListener(new KeyAdapter() {
          public void keyPressed(KeyEvent e) {
            jButtonSave.setEnabled(true);
            jButtonUndo.setEnabled(true);
          }
        });

        productionDate.addChangeListener(new ChangeListener() {
          public void stateChanged(final ChangeEvent e)

          {
            jButtonSave.setEnabled(true);
            jButtonUndo.setEnabled(true);
          }
        });

        {
          jTextFieldProcessOrderDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrderDescription);
          jTextFieldProcessOrderDescription.setBounds(147, 60, 287, 21);
          jTextFieldProcessOrderDescription.setEnabled(false);
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText(lang.get("lbl_Description"));
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(7, 60, 133, 21);
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText(lang.get("lbl_Description"));
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(7, 114, 133, 21);
        }
        {
          jTextFieldMaterialDescription = new JTextField4j();
          jTextFieldMaterialDescription.setEditable(false);
          jDesktopPane1.add(jTextFieldMaterialDescription);
          jTextFieldMaterialDescription.setBounds(147, 114, 287, 21);
          jTextFieldMaterialDescription.setEnabled(false);
          jTextFieldMaterialDescription.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              jButtonSave.setEnabled(true);
              jButtonUndo.setEnabled(true);
            }
          });
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Material_Batch_Status"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(7, 168, 133, 21);
        }
        {
          jTextFieldBatchStatus = new JTextField4j();
          jDesktopPane1.add(jTextFieldBatchStatus);
          jTextFieldBatchStatus.setBounds(147, 168, 119, 21);
          jTextFieldBatchStatus.setEnabled(false);
          jTextFieldBatchStatus.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              jButtonSave.setEnabled(true);
              jButtonUndo.setEnabled(true);
            }
          });
        }
        {
          expiryDate = new JDateControl();
          expiryDate.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
              jButtonSave.setEnabled(true);
              jButtonUndo.setEnabled(true);
            }
          });

          jDesktopPane1.add(expiryDate);
          expiryDate.setEnabled(false);
          expiryDate.setBounds(147, 195, 125, 25);
          expiryDate.getEditor().setPreferredSize(new java.awt.Dimension(87, 19));
          expiryDate.getEditor().setSize(87, 21);
        }
        {
          jLabelBatchExpiry = new JLabel4j_std();
          jDesktopPane1.add(jLabelBatchExpiry);
          jLabelBatchExpiry.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
          jLabelBatchExpiry.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelBatchExpiry.setBounds(7, 199, 133, 21);
        }
        {
          jStatusText = new JLabel4j_std();
          jDesktopPane1.add(jStatusText);
          jStatusText.setForeground(new java.awt.Color(255, 0, 0));
          jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
          jStatusText.setBounds(0, 540, 455, 21);
        }
        {
          jButton1 = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButton1);
          jButton1.setBounds(266, 168, 21, 21);
          jButton1.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_BATCH_EDIT"));
          jButton1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_BATCH_EDIT", jTextFieldMaterial.getText(), jTextFieldBatch.getText());
            }
          });
        }
        {
          jButtonEditBatch = new JButton4j(Common.icon_edit);
          jDesktopPane1.add(jButtonEditBatch);
          jButtonEditBatch.setBounds(278, 195, 21, 25);
          jButtonEditBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_BATCH_EDIT"));
          jButtonEditBatch.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_BATCH_EDIT", jTextFieldMaterial.getText(), jTextFieldBatch.getText());
            }
          });
        }

        {
          jButtonUndo = new JButton4j(Common.icon_undo);
          jButtonUndo.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              refresh();
            }
          });
          jButtonUndo.setMnemonic(KeyEvent.VK_U);
          jButtonUndo.setText(lang.get("btn_Undo"));
          jButtonUndo.setBounds(116, 502, 111, 32);
          jDesktopPane1.add(jButtonUndo);
        }

        {
          jLabelProductionDate_1 = new JLabel4j_std();
          jLabelProductionDate_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProductionDate_1.setText(lang.get("lbl_Confirmed"));
          jLabelProductionDate_1.setBounds(7, 470, 133, 24);
          jDesktopPane1.add(jLabelProductionDate_1);
        }

        {

          checkBoxConfirmed.setBackground(Color.WHITE);
          checkBoxConfirmed.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent e) {
              jButtonSave.setEnabled(true);
              jButtonUndo.setEnabled(true);
            }
          });
          checkBoxConfirmed.setText("");
          checkBoxConfirmed.setBounds(143, 470, 32, 24);
          jDesktopPane1.add(checkBoxConfirmed);
        }
        {
          calendarButtonproductionDate = new JCalendarButton(productionDate);
          calendarButtonproductionDate.setBounds(275, 418, 21, 21);
          jDesktopPane1.add(calendarButtonproductionDate);
        }
        {
          calendarButtonexpiryDate = new JCalendarButton(expiryDate);
          calendarButtonexpiryDate.setBounds(275, 197, 21, 21);
          calendarButtonexpiryDate.setVisible(false);
          jDesktopPane1.add(calendarButtonexpiryDate);
        }
        {
          JLabel4j_std label = new JLabel4j_std();
          label.setText(lang.get("lbl_Customer_ID"));
          label.setHorizontalAlignment(SwingConstants.TRAILING);
          label.setBounds(12, 362, 128, 21);
          jDesktopPane1.add(label);

          textFieldCustomer = new JTextField4j();
          textFieldCustomer.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent e) {
              customerIDChanged();
            }
          });
View Full Code Here

          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(0, 10, 149, 21);
        }
        {
          jTextFieldUOM = new JTextField4j();
          jDesktopPane1.add(jTextFieldUOM);
          jTextFieldUOM.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldUOM.setEditable(false);
          jTextFieldUOM.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldUOM.setBounds(155, 10, 51, 21);
          jTextFieldUOM.setEnabled(false);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_UOM_ISO"));
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel2.setBounds(0, 43, 149, 21);
        }
        {
          jTextFieldISO_UOM = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldISO_UOM.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBUom.field_uom));
          jDesktopPane1.add(jTextFieldISO_UOM);
          jTextFieldISO_UOM.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldISO_UOM.setFocusCycleRoot(true);
          jTextFieldISO_UOM.setBounds(155, 43, 53, 21);
          jTextFieldISO_UOM.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jButtonUpdate = new JButton4j(Common.icon_update);
          jDesktopPane1.add(jButtonUpdate);
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.setText(lang.get("btn_Save"));
          jButtonUpdate.setMnemonic(lang.getMnemonicChar());
          jButtonUpdate.setHorizontalTextPosition(SwingConstants.RIGHT);
          jButtonUpdate.setBounds(45, 142, 110, 32);
          jButtonUpdate.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              uom.setIsoUom(jTextFieldISO_UOM.getText().toUpperCase());
              uom.setDescription(jTextFieldDescription.getText().toUpperCase());
              uom.setLocalUom(jTextFieldLocal_UOM.getText().toUpperCase());
              uom.update();
              jButtonUpdate.setEnabled(false);
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
          jButtonHelp.setBounds(157, 142, 110, 32);
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.setBounds(269, 142, 110, 32);
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3.setBounds(0, 109, 149, 21);
        }
        {
          jTextFieldLocal_UOM = new JTextField4j();
          jTextFieldLocal_UOM.addKeyListener(new KeyAdapter() {
            @Override
            public void keyTyped(KeyEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
          jTextFieldLocal_UOM.setPreferredSize(new Dimension(40, 20));
          jTextFieldLocal_UOM.setFocusCycleRoot(true);
          jTextFieldLocal_UOM.setCaretPosition(0);
          jTextFieldLocal_UOM.setBounds(155, 76, 53, 21);
          jDesktopPane1.add(jTextFieldLocal_UOM);
        }
        {
          lblLocalUom = new JLabel4j_std();
          lblLocalUom.setText(lang.get("lbl_UOM_Local"));
          lblLocalUom.setHorizontalTextPosition(SwingConstants.RIGHT);
          lblLocalUom.setHorizontalAlignment(SwingConstants.RIGHT);
          lblLocalUom.setBounds(0, 76, 149, 21);
          jDesktopPane1.add(lblLocalUom);
        }

        {
          jTextFieldDescription = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBUom.field_description));
          jDesktopPane1.add(jTextFieldDescription);
          jTextFieldDescription.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldDescription.setFocusCycleRoot(true);
View Full Code Here

            }
          });
        }
        {
          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 jComboBox2Model = new DefaultComboBoxModel(uomList);
          jComboBoxUOM = new JComboBox4j();
          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, 28);
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(866, 176, 129, 28);
          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, 28);
          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, 28);
          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 jComboBoxSortByModel = new DefaultComboBoxModel(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();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(330, 143, 299, 23);
        }
        {
          ComboBoxModel jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel(Common.palletStatusIncBlank);
          jComboBoxPalletStatus = new JComboBox4j();
          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 JCheckBox();
          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 JCheckBox();
          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 JCheckBox();
          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.setText("New JCheckBox");
          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();
          comboBoxTransactionType.setModel(new DefaultComboBoxModel(Common.transactionTypes));
          comboBoxTransactionType.setBounds(593, 11, 124, 23);
          jDesktopPane1.add(comboBoxTransactionType);
        }

        {
          comboBoxTransactionSubtype = new JComboBox4j();
          comboBoxTransactionSubtype.setModel(new DefaultComboBoxModel(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, 28);
          jDesktopPane1.add(exportXlsButton);
        }

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

        {
View Full Code Here

    JLabel4j_std lblTestID = new JLabel4j_std(lang.get("lbl_Test_ID"));
    lblTestID.setBounds(188, 105, 98, 16);
    desktopPane.add(lblTestID);
    lblTestID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.setEnabled(false);
    textFieldInspectionID.setBounds(108, 22, 153, 28);
    desktopPane.add(textFieldInspectionID);
    textFieldInspectionID.setColumns(10);
   
    JLabel4j_std label4j_std = new JLabel4j_std(lang.get("lbl_Sequence_ID"));
    label4j_std.setBounds(8, 105, 87, 16);
    desktopPane.add(label4j_std);
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
   
    comboBoxTestID = new JComboBox4j();
    comboBoxTestID.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        enableSave();
      }
    });
    comboBoxTestID.setBounds(298, 102, 542, 27);
    desktopPane.add(comboBoxTestID);
   
    spinnerSequence = new JSpinner();
    spinnerSequence.setBounds(108, 102, 68, 28);
    ne = new JSpinner.NumberEditor(spinnerSequence);
    ne.getTextField().setFont(Common.font_std);
    spinnerSequence.setEditor(ne);
    spinnerSequence.setValue(100);
    spinnerSequence.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent arg0) {
        enableSave();
      }
    });
    desktopPane.add(spinnerSequence);
   
    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(319, 154, 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(440, 154, 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.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.setEnabled(false);
    textFieldActivityDescription.setColumns(10);
    textFieldActivityDescription.setBounds(377, 63, 463, 28);
    desktopPane.add(textFieldActivityDescription);
   
View Full Code Here

    JLabel4j_std lblShiftID = new JLabel4j_std(lang.get("lbl_Shift_ID"));
    lblShiftID.setBounds(6, 6, 126, 28);
    desktopPane.add(lblShiftID);
    lblShiftID.setHorizontalAlignment(SwingConstants.TRAILING);

    textFieldShiftID = new JTextField4j();
    textFieldShiftID.setEnabled(false);
    textFieldShiftID.setBounds(145, 6, 110, 28);
    desktopPane.add(textFieldShiftID);
    textFieldShiftID.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_update);
    btnSave.setBounds(116, 106, 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(247, 106, 117, 29);
    desktopPane.add(btnClose);

    JLabel4j_std label4j_std_Description = new JLabel4j_std(lang.get("lbl_Description"));
    label4j_std_Description.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_Description.setBounds(6, 66, 126, 28);
    desktopPane.add(label4j_std_Description);

    textFieldDescription = new JTextField4j();
    textFieldDescription.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0)
      {
        enableSave();
View Full Code Here

    JLabel4j_std lblInspectionID = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lblInspectionID.setBounds(8, 27, 87, 16);
    desktopPane.add(lblInspectionID);
    lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldInspectionID.setEnabled(false);
    textFieldInspectionID.setBounds(108, 22, 153, 28);
    desktopPane.add(textFieldInspectionID);
    textFieldInspectionID.setColumns(10);
   
   
    textFieldInspectionDescription = new JTextField4j();
    textFieldInspectionDescription.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
View Full Code Here

          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1.setBounds(49, 13, 70, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setText(lmaterial);
          jTextFieldMaterial.setBounds(126, 13, 126, 21);
          jTextFieldMaterial.setEnabled(false);
          jTextFieldMaterial.setEditable(false);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Material_Batch"));
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(49, 41, 70, 21);
        }
        {
          jTextFieldBatch = new JTextField4j();
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setText(lbatch);
          jTextFieldBatch.setBounds(126, 41, 126, 21);
          jTextFieldBatch.setEnabled(false);
          jTextFieldBatch.setEditable(false);
View Full Code Here

          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(0, 7, 98, 21);
        }
        {
          jTextFieldReason = new JTextField4j();
          jDesktopPane1.add(jTextFieldReason, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldReason.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldReason.setEditable(false);
          jTextFieldReason.setEnabled(false);
          jTextFieldReason.setBounds(105, 7, 100, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3.setBounds(0, 40, 98, 21);
        }
        {
          jTextFieldDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldDescription, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldDescription.setBounds(105, 40, 238, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
View Full Code Here

TOP

Related Classes of com.commander4j.gui.JTextField4j

Copyright © 2018 www.massapicom. 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.