Examples of JFixedSizeFilter


Examples of com.commander4j.util.JFixedSizeFilter

          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) {
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

          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);
          jTextFieldDescription.setBounds(155, 109, 237, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

          jLabel3.setBounds(60, 63, 91, 21);
        }
        {
          jTextFieldWarehouse = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldWarehouse.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_warehouse));
          jDesktopPane1.add(jTextFieldWarehouse);
          jTextFieldWarehouse.setBounds(158, 63, 105, 21);
          jTextFieldWarehouse.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jTextFieldGLN = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldGLN.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_gln));
          jDesktopPane1.add(jTextFieldGLN);
          jTextFieldGLN.setBounds(158, 91, 140, 21);
          jTextFieldGLN.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Description"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(60, 119, 91, 21);
        }
        {
          jTextFieldPlant = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldPlant.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_plant));
          jDesktopPane1.add(jTextFieldPlant);
          jTextFieldPlant.setBounds(158, 35, 105, 21);
          jTextFieldPlant.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Storage_Plant"));
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setBounds(60, 35, 91, 21);
        }
        {
          jTextFieldDescription = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_description));
          jDesktopPane1.add(jTextFieldDescription);
          jTextFieldDescription.setBounds(158, 119, 308, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Storage_GLN"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(60, 91, 91, 21);
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText(lang.get("lbl_Storage_Location"));
          jLabel6.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel6.setBounds(53, 147, 98, 21);
        }
        {
          jTextFieldStorageLocation = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldStorageLocation.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_storage_location));
          jDesktopPane1.add(jTextFieldStorageLocation);
          jTextFieldStorageLocation.setBounds(158, 147, 105, 21);
          jTextFieldStorageLocation.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Storage_Type"));
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel7.setBounds(60, 175, 91, 21);
        }
        {
          jTextFieldStorageType = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldStorageType.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_storage_type));
          jDesktopPane1.add(jTextFieldStorageType);
          jTextFieldStorageType.setBounds(158, 175, 105, 21);
          jTextFieldStorageType.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText(lang.get("lbl_Storage_Section"));
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(60, 203, 91, 21);
        }
        {
          jTextFieldStorageSection = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldStorageSection.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_storage_section));
          jDesktopPane1.add(jTextFieldStorageSection);
          jTextFieldStorageSection.setBounds(158, 203, 105, 21);
          jTextFieldStorageSection.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText(lang.get("lbl_Storage_Bin"));
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(60, 231, 91, 21);
        }
        {
          jTextFieldStorageBin = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldStorageBin.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_storage_bin));
          jDesktopPane1.add(jTextFieldStorageBin);
          jTextFieldStorageBin.setBounds(158, 231, 105, 21);
          jTextFieldStorageBin.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

      jPanelProcessOrder.setLayout(null);
      jPanelProcessOrder.setBackground(new java.awt.Color(255, 255, 255));
      jTextFieldProcessOrder = new JTextField4j();
      jPanelProcessOrder.add(jTextFieldProcessOrder);
      AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
      doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
      jTextFieldProcessOrder.setBounds(161, 21, 119, 21);
      jTextFieldProcessOrder.addKeyListener(new KeyAdapter() {
        public void keyReleased(KeyEvent evt)
        {
          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);
      jPanelLabel = new JPanel();
      jDesktopPane1.add(jPanelLabel);
      jPanelLabel.setBounds(7, 231, 748, 136);
      jPanelLabel.setBorder(BorderFactory.createTitledBorder(null, lang.get("btn_Label"), TitledBorder.LEADING, TitledBorder.TOP));
      jPanelLabel.setLayout(null);
      jPanelLabel.setFont(Common.font_std);
      jPanelLabel.setBackground(new java.awt.Color(255, 255, 255));
      comboBoxPrintQueue = new JComboBox4j();
      comboBoxPrintQueue.setBounds(115, 436, 621, 23);
      jDesktopPane1.add(comboBoxPrintQueue);
      jSpinnerProductionDate = new JDateControl();
      jPanelLabel.add(jSpinnerProductionDate);
      jSpinnerProductionDate.setFont(new java.awt.Font("Dialog", 0, 12));
      jSpinnerProductionDate.setBounds(176, 21, 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();
      jPanelLabel.add(jLabelProductionDate);
      jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
      jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelProductionDate.setBounds(46, 21, 108, 21);

      jFormattedTextFieldBaseUOMQuantity = new JQuantityInput(new BigDecimal("0"));
      jFormattedTextFieldBaseUOMQuantity.setEditable(false);
      jPanelLabel.add(jFormattedTextFieldBaseUOMQuantity);
      jFormattedTextFieldBaseUOMQuantity.setFont(Common.font_std);
      jFormattedTextFieldBaseUOMQuantity.setBounds(349, 85, 94, 21);
      jFormattedTextFieldBaseUOMQuantity.setValue(0);
      jFormattedTextFieldBaseUOMQuantity.setEnabled(false);
      jFormattedTextFieldBaseUOMQuantity.setHorizontalAlignment(SwingConstants.TRAILING);

      jFormattedTextFieldRequiredUOMQuantity = new JQuantityInput(new BigDecimal("0"));
      jFormattedTextFieldRequiredUOMQuantity.setEditable(false);
      jFormattedTextFieldRequiredUOMQuantity.addPropertyChangeListener(new PropertyChangeListener() {
        public void propertyChange(PropertyChangeEvent arg0)
        {
          Color background = Color.WHITE;

          try
          {
            if (jTextFieldProcessOrder.getText().equals("") == false)
            {
              BigDecimal newval = new BigDecimal(jFormattedTextFieldRequiredUOMQuantity.getValue().toString());
              int res = newval.compareTo(new BigDecimal(0));
              if (res == 0)
              {
                background = Color.YELLOW;
              }
            }
          } catch (Exception e)
          {
            background = Color.YELLOW;
          }
          jFormattedTextFieldRequiredUOMQuantity.setBackground(background);
        }
      });

      jPanelLabel.add(jFormattedTextFieldRequiredUOMQuantity);
      jFormattedTextFieldRequiredUOMQuantity.setFont(Common.font_std);
      jFormattedTextFieldRequiredUOMQuantity.setBounds(349, 52, 94, 21);
      jFormattedTextFieldRequiredUOMQuantity.setValue(0);
      jFormattedTextFieldRequiredUOMQuantity.setEnabled(false);
      jFormattedTextFieldRequiredUOMQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
      jFormattedTextFieldRequiredUOMQuantity.addKeyListener(new KeyAdapter() {
        public void keyReleased(KeyEvent evt)
        {
          pallet.setUom(jTextFieldRequiredUom.getText());
          pallet.setQuantity(JUtility.stringToBigDecimal(jFormattedTextFieldRequiredUOMQuantity.getText().toString()));
        }
      });

      jTextFieldRequiredUom = new JTextField4j();
      jTextFieldRequiredUom.setHorizontalAlignment(SwingConstants.CENTER);
      jPanelLabel.add(jTextFieldRequiredUom);
      jTextFieldRequiredUom.setBounds(462, 85, 56, 21);
      jTextFieldRequiredUom.setEditable(false);
      jTextFieldRequiredUom.setEnabled(false);

      jTextFieldBaseUom = new JTextField4j();
      jTextFieldBaseUom.setHorizontalAlignment(SwingConstants.CENTER);
      jPanelLabel.add(jTextFieldBaseUom);
      jTextFieldBaseUom.setBounds(462, 52, 56, 21);
      jTextFieldBaseUom.setEditable(false);
      jTextFieldBaseUom.setEnabled(false);

      jCheckBoxDOMOverride = new JCheckBox4j();
      jPanelLabel.add(jCheckBoxDOMOverride);
      jCheckBoxDOMOverride.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxDOMOverride.setBounds(153, 21, 21, 21);
      jCheckBoxDOMOverride.setEnabled(false);
      jCheckBoxDOMOverride.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt)
        {
          enableField(jSpinnerProductionDate, jCheckBoxDOMOverride.isSelected());
          enableField(calendarButtonjSpinnerProductionDate, jCheckBoxDOMOverride.isSelected());
        }
      });

      calendarButtonjSpinnerProductionDate = new JCalendarButton(jSpinnerProductionDate);
      calendarButtonjSpinnerProductionDate.setEnabled(false);
      calendarButtonjSpinnerProductionDate.setBounds(308, 21, 21, 21);
      jPanelLabel.add(calendarButtonjSpinnerProductionDate);
      jLabelBatch = new JLabel4j_std();
      jPanelLabel.add(jLabelBatch);
      jLabelBatch.setText(lang.get("lbl_Material_Batch"));
      jLabelBatch.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelBatch.setBounds(46, 85, 108, 21);
      jTextFieldBatchPrefix = new JTextField4j();
      jPanelLabel.add(jTextFieldBatchPrefix);
      AbstractDocument doc2 = (AbstractDocument) jTextFieldBatchPrefix.getDocument();
      doc2.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
      jTextFieldBatchPrefix.setBounds(176, 85, 108, 21);
      jTextFieldBatchPrefix.setEnabled(false);
      jSpinnerExpiryDate = new JDateControl();
      jSpinnerExpiryDate.addFocusListener(new FocusAdapter() {
        @Override
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

          jLabel1.setBounds(12, 75, 144, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldMaterial.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterial.field_material));
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setEnabled(true);
          jTextFieldMaterial.setBounds(163, 75, 126, 21);
          jTextFieldMaterial.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
          jTextFieldMaterial.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              materialChanged();
            }
          });
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(12, 45, 144, 21);
        }
        {
          jTextFieldDescription = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_description));
          jDesktopPane1.add(jTextFieldDescription);
          jTextFieldDescription.setBounds(163, 45, 301, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel12 = new JLabel4j_std();
          jDesktopPane1.add(jLabel12);
          jLabel12.setText(lang.get("lbl_Process_Order_Recipe"));
          jLabel12.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel12.setBounds(12, 136, 144, 21);
        }
        {
          lblInspectionID = new JLabel4j_std();
          lblInspectionID.setText(lang.get("lbl_Inspection_ID"));
          lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
          lblInspectionID.setBounds(12, 419, 144, 21);
          jDesktopPane1.add(lblInspectionID);
        }
        {
          jTextFieldRecipeID = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldRecipeID.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_recipe_id));
          jDesktopPane1.add(jTextFieldRecipeID);
          jTextFieldRecipeID.setBounds(163, 136, 126, 21);
          jTextFieldRecipeID.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jTextFieldRequiredResource = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldRequiredResource.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_required_resource));
          jDesktopPane1.add(jTextFieldRequiredResource);
          jTextFieldRequiredResource.setBounds(163, 353, 301, 21);
          jTextFieldRequiredResource.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jTextFieldInspectionID = new JTextField4j();
          jTextFieldInspectionID.setBounds(163, 417, 126, 21);
          jTextFieldInspectionID.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
          jDesktopPane1.add(jTextFieldInspectionID);
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Process_Order_Due_Date"));
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel7.setBounds(12, 229, 144, 21);
        }
        {
          jSpinnerDueDate = new JDateControl();
          jDesktopPane1.add(jSpinnerDueDate);
          jSpinnerDueDate.setBounds(163, 225, 125, 25);
          jSpinnerDueDate.getEditor().setPreferredSize(new java.awt.Dimension(86, 32));
          jSpinnerDueDate.getEditor().addKeyListener(new KeyAdapter() {
            public void keyPressed(KeyEvent e) {
              jButtonSave.setEnabled(true);
            }
          });
          jSpinnerDueDate.addChangeListener(new ChangeListener() {
            public void stateChanged(final ChangeEvent e)

            {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Location_ID"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(12, 258, 144, 21);
        }
        {
          jTextFieldLocation = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldLocation.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_location_id));
          jDesktopPane1.add(jTextFieldLocation);
          jTextFieldLocation.setBounds(163, 258, 126, 21);
          jTextFieldLocation.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jTextFieldCustomer = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldCustomer.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBCustomer.field_customer_id));
          jDesktopPane1.add(jTextFieldCustomer);
          jTextFieldCustomer.setBounds(163, 386, 126, 21);
          jTextFieldCustomer.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

        }
        {
          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));
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBGroup.field_description));
          jTextFieldDescription.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldDescription.setBounds(101, 37, 237, 21);
          jTextFieldDescription.setFocusCycleRoot(true);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

      {
        jTextFieldProcessOrder = new JTextField4j();
        jPanelProcessOrder.add(jTextFieldProcessOrder);

        AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
        doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
        jTextFieldProcessOrder.setBounds(161, 21, 119, 21);
        jTextFieldProcessOrder.addKeyListener(new KeyAdapter() {
          public void keyReleased(KeyEvent evt)
          {
            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(Common.color_app_window);
      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(Common.color_app_window);
      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<String>();
      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 JCheckBox4j();
      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 JCheckBox4j();
      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(Common.color_app_window);
      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() {
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

          jTextFieldMaterial.setBounds(172, 9, 146, 21);
        }
        {
          jTextFieldDescription = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(80));
          jDesktopPane1.add(jTextFieldDescription);
          jTextFieldDescription.setBounds(172, 38, 288, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jButtonSave = new JButton4j(Common.icon_save);
          jDesktopPane1.add(jButtonSave);
          jButtonSave.setEnabled(false);
          jButtonSave.setText(lang.get("btn_Save"));
          jButtonSave.setMnemonic(lang.getMnemonicChar());
          jButtonSave.setBounds(54, 495, 112, 28);
          jButtonSave.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              boolean result = true;

              material.setDescription(jTextFieldDescription.getText());
              material.setMaterialType(((JDBMaterialType) jComboBoxMaterialType.getSelectedItem()).getType());
              material.setBaseUom(((JDBUom) jComboBoxBaseUOM.getSelectedItem()).getInternalUom());

              material.setShelfLife((Integer) jSpinnerShelfLife.getValue());
              material.setShelfLifeUom(((JShelfLifeUom) jComboBoxShelfLifeUOM.getSelectedItem()).getUom());
              material.setShelfLifeRule(((JShelfLifeRoundingRule) jComboBoxRoundingRule.getSelectedItem()).getRule());

              material.setDefaultBatchStatus((String) jComboBoxDefaultBatchStatus.getSelectedItem());

              BigDecimal bd = new BigDecimal(0).setScale(3, BigDecimal.ROUND_HALF_UP);
              bd = BigDecimal.valueOf(grossweightnumbermodel.getNumber().doubleValue()).setScale(3, BigDecimal.ROUND_HALF_UP);
              material.setGrossWeight(bd);
              bd = BigDecimal.valueOf(netweightnumbermodel.getNumber().doubleValue()).setScale(3, BigDecimal.ROUND_HALF_UP);
              material.setNetWeight(bd);

              try
              {
                material.setWeightUom(((JDBUom) jComboBoxWeightUOM.getSelectedItem()).getInternalUom());
              }
              catch (Exception e)
              {
                material.setWeightUom("");
              }

              material.setOldMaterial(jTextFieldLegacyCode.getText());

              material.setEquipmentType(jTextFieldEquipmentType.getText());
             
              material.setInspectionID(jTextFieldInspectionID.getText());

              if (checkBoxOverridePackLabel.isSelected())
              {
                if (comboBoxPackModuleID.getSelectedItem().toString().equals(""))
                {
                  material.setOverridePackLabel("N");
                  material.setPackLabelModuleID("");
                }
                else
                {
                  material.setOverridePackLabel("Y");
                  material.setPackLabelModuleID(comboBoxPackModuleID.getSelectedItem().toString());
                }
               
              }
              else
              {
                material.setOverridePackLabel("N");
                material.setPackLabelModuleID("");
              }
             
              if (checkBoxOverridePalletLabel.isSelected())
              {
                if (comboBoxPalletModuleID.getSelectedItem().toString().equals(""))
                {
                  material.setOverridePalletLabel("N");
                  material.setPalletLabelModuleID("");
                }
                else
                {
                  material.setOverridePalletLabel("Y");
                  material.setPalletLabelModuleID(comboBoxPalletModuleID.getSelectedItem().toString());
                }
              }
              else
              {
                material.setOverridePalletLabel("N");
                material.setPalletLabelModuleID("");
             

             
             
             
              if (material.isValidMaterial() == false)
              {
                result = material.create();
                if (result == true)
                {
                  result = material.update();
                }
              }
              else
              {
                result = material.update();
              }
              if (result == false)
              {
                JOptionPane.showMessageDialog(Common.mainForm, material.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE);
              }
              else
              {
                jButtonSave.setEnabled(false);
              }

            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
          jButtonHelp.setBounds(176, 495, 112, 28);
        }
        {
          jButtonCancel = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonCancel);
          jButtonCancel.setText(lang.get("btn_Close"));
          jButtonCancel.setMnemonic(lang.getMnemonicChar());
          jButtonCancel.setBounds(300, 495, 112, 28);
          jButtonCancel.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          ComboBoxModel jComboBoxBaseUOMModel = new DefaultComboBoxModel(uomList);
          jComboBoxBaseUOM = new JComboBox4j();
          jDesktopPane1.add(jComboBoxBaseUOM);
          jComboBoxBaseUOM.setModel(jComboBoxBaseUOMModel);
          jComboBoxBaseUOM.setMaximumRowCount(12);
          jComboBoxBaseUOM.setBounds(172, 97, 248, 23);
          jComboBoxBaseUOM.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });

          jComboBoxBaseUOMModel.setSelectedItem(baseuom);

        }
        {
          ComboBoxModel jComboBoxMaterialTypeModel = new DefaultComboBoxModel(typeList);
          jComboBoxMaterialType = new JComboBox4j();
          jDesktopPane1.add(jComboBoxMaterialType);
          jComboBoxMaterialType.setModel(jComboBoxMaterialTypeModel);
          jComboBoxMaterialType.setBounds(172, 68, 248, 23);
          jComboBoxMaterialType.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });

          jComboBoxMaterialTypeModel.setSelectedItem(materialtype);
        }
        {
          jLabel12 = new JLabel4j_std();
          jDesktopPane1.add(jLabel12);
          jLabel12.setText(lang.get("lbl_Material_Default_Batch_Status"));
          jLabel12.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel12.setBounds(6, 332, 159, 21);
        }
        {
          jLabel13 = new JLabel4j_std();
          jDesktopPane1.add(jLabel13);
          jLabel13.setText(lang.get("lbl_Material_Shelf_Life_UOM"));
          jLabel13.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel13.setBounds(6, 155, 159, 21);
        }
        {
          ComboBoxModel jComboBoxShelfLifeUOMModel = new DefaultComboBoxModel(shelfLifeUomList);
          jComboBoxShelfLifeUOM = new JComboBox4j();
          jDesktopPane1.add(jComboBoxShelfLifeUOM);
          jComboBoxShelfLifeUOM.setModel(jComboBoxShelfLifeUOMModel);
          jComboBoxShelfLifeUOM.setMaximumRowCount(12);
          jComboBoxShelfLifeUOM.setBounds(172, 156, 165, 21);
          jComboBoxShelfLifeUOM.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });

          jComboBoxShelfLifeUOMModel.setSelectedItem(sluom);
        }
        {
          jLabel14 = new JLabel4j_std();
          jDesktopPane1.add(jLabel14);
          jLabel14.setText(lang.get("lbl_Material_Shelf_Life_Rounding_Rule"));
          jLabel14.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel14.setBounds(6, 184, 159, 21);
        }
        {
          ComboBoxModel jComboBoxRoundingRuleModel = new DefaultComboBoxModel(shelfLifeRule);
          jComboBoxRoundingRule = new JComboBox4j();
          jDesktopPane1.add(jComboBoxRoundingRule);
          jComboBoxRoundingRule.setModel(jComboBoxRoundingRuleModel);
          jComboBoxRoundingRule.setBounds(172, 185, 165, 21);
          jComboBoxRoundingRule.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });

          jComboBoxRoundingRuleModel.setSelectedItem(slrr);
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setBounds(6, 8, 159, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setBounds(6, 38, 159, 21);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_Base_UOM"));
          jLabel5.setBounds(6, 96, 159, 21);
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material_Type"));
          jLabel2.setBounds(6, 67, 159, 21);
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Material_Shelf_Life"));
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setBounds(6, 126, 159, 21);
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText(lang.get("lbl_Material_Gross_Weight"));
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(6, 214, 159, 21);
          jLabel8.setFocusTraversalPolicyProvider(true);
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText(lang.get("lbl_Material_Net_Weight"));
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(6, 244, 159, 21);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Material_Weight_UOM"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(6, 273, 159, 21);
        }
        {
          jTextFieldLegacyCode = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldLegacyCode.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(20));
          jDesktopPane1.add(jTextFieldLegacyCode);
          jTextFieldLegacyCode.setBounds(172, 303, 125, 21);
          jTextFieldLegacyCode.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

        }
        {
          jTextFieldKeyValue = new JTextField4j();
          jDesktopPane1.add(jTextFieldKeyValue);
          AbstractDocument doc = (AbstractDocument) jTextFieldKeyValue.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBControl.field_key_value));
          jTextFieldKeyValue.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldKeyValue.setFocusCycleRoot(true);
          jTextFieldKeyValue.setBounds(106, 39, 252, 21);
          jTextFieldKeyValue.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });

        }
        {
          jTextFieldDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldDescription);
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBControl.field_description));
          jTextFieldDescription.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldDescription.setFocusCycleRoot(true);
          jTextFieldDescription.setBounds(106, 65, 337, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
View Full Code Here

Examples of com.commander4j.util.JFixedSizeFilter

        jDesktopPane1.setPreferredSize(new java.awt.Dimension(462, 497));
        jDesktopPane1.setLayout(null);

        jTextFieldSSCC = new JTextField4j();
        AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
        doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
        jTextFieldSSCC.addKeyListener(new KeyAdapter()
        {
          @Override
          public void keyReleased(KeyEvent arg0)
          {
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.