Package com.commander4j.gui

Examples of com.commander4j.gui.JLabel4j_std


    });

    jListFields.setSelectedIndex(-1);
    scrollPaneFields.setViewportView(jListFields);

    JLabel4j_std lblCriteria = new JLabel4j_std(lang.get("lbl_Fields"));
    lblCriteria.setBounds(289, 12, 126, 15);
    desktopPane.add(lblCriteria);

    JLabel4j_std lblReport = new JLabel4j_std(lang.get("lbl_Database_Tables"));
    lblReport.setBounds(12, 12, 126, 15);
    desktopPane.add(lblReport);
   
    JButton4j button4jClose = new JButton4j(Common.icon_close);
    button4jClose.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
View Full Code Here


    initGUI();

    final JHelp help = new JHelp();
    help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_ADMIN_MATERIAL_EDIT"));
    {
      lblEquipment = new JLabel4j_std();
      lblEquipment.setText(lang.get("lbl_Material_Equipment_Type"));
      lblEquipment.setHorizontalAlignment(SwingConstants.TRAILING);
      lblEquipment.setBounds(6, 361, 159, 21);
      jDesktopPane1.add(lblEquipment);
    }
    {
      lblInspectionID = new JLabel4j_std();
      lblInspectionID.setText(lang.get("lbl_Inspection_ID"));
      lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
      lblInspectionID.setBounds(6, 390, 159, 21);
      jDesktopPane1.add(lblInspectionID);
    }   
View Full Code Here

          });

          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<JShelfLifeUom> jComboBoxShelfLifeUOMModel = new DefaultComboBoxModel<JShelfLifeUom>(shelfLifeUomList);
          jComboBoxShelfLifeUOM = new JComboBox4j<JShelfLifeUom>();
          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<JShelfLifeRoundingRule> jComboBoxRoundingRuleModel = new DefaultComboBoxModel<JShelfLifeRoundingRule>(shelfLifeRule);
          jComboBoxRoundingRule = new JComboBox4j<JShelfLifeRoundingRule>();
          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);
            }
          });
        }
        {
          ComboBoxModel<JDBUom> jComboBox1Model = new DefaultComboBoxModel<JDBUom>(uomList);
          jComboBoxWeightUOM = new JComboBox4j<JDBUom>();
          jDesktopPane1.add(jComboBoxWeightUOM);
          jComboBoxWeightUOM.setModel(jComboBox1Model);
          jComboBoxWeightUOM.setBounds(172, 274, 248, 23);
          jComboBoxWeightUOM.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
          jComboBox1Model.setSelectedItem(weightuom);
        }
        {
          jSpinnerShelfLife = new JSpinner();
          jDesktopPane1.add(jSpinnerShelfLife);
          jSpinnerShelfLife.setModel(shelflifenumbermodel);
          jSpinnerShelfLife.setBounds(172, 126, 60, 21);
          JSpinner.NumberEditor nec2 = new JSpinner.NumberEditor(jSpinnerShelfLife);
          nec2.getTextField().setFont(Common.font_std);
          jSpinnerShelfLife.setEditor(nec2);
          jSpinnerShelfLife.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jSpinnerGrossWeight = new JSpinner();

          jDesktopPane1.add(jSpinnerGrossWeight);
          jSpinnerGrossWeight.setModel(grossweightnumbermodel);

          jSpinnerGrossWeight.setBounds(172, 214, 95, 21);
          JSpinner.NumberEditor nec2 = new JSpinner.NumberEditor(jSpinnerGrossWeight);
          nec2.getTextField().setFont(Common.font_std);
          jSpinnerGrossWeight.setEditor(nec2);
          jSpinnerGrossWeight.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jSpinnerNetWeight = new JSpinner();
          jDesktopPane1.add(jSpinnerNetWeight);
          jSpinnerNetWeight.setModel(netweightnumbermodel);
          JSpinner.NumberEditor nec2 = new JSpinner.NumberEditor(jSpinnerNetWeight);
          nec2.getTextField().setFont(Common.font_std);
          jSpinnerNetWeight.setEditor(nec2);
          jSpinnerNetWeight.setBounds(172, 244, 95, 21);
          jSpinnerNetWeight.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jButtonUOMs = new JButton4j();
          jDesktopPane1.add(jButtonUOMs);
          jButtonUOMs.setText(lang.get("btn_Material_UOM_Conversions"));
          jButtonUOMs.setIcon(Common.icon_uom);
          jButtonUOMs.setBounds(437, 178, 175, 32);
          jButtonUOMs.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_UOM"));
          jButtonUOMs.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              String base = ((JDBUom) jComboBoxBaseUOM.getSelectedItem()).getInternalUom();
              JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_UOM", lmaterial, base);
            }
          });
        }
        {
          JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID);
          String value = ctrl.getKeyValue("SSCC_LOCATION_VALIDATION");
          Boolean enabled = Boolean.valueOf(value);
          jButtonLocations = new JButton4j();
          jDesktopPane1.add(jButtonLocations);
          jButtonLocations.setText(lang.get("btn_Material_Locations"));
          jButtonLocations.setEnabled(enabled);
          jButtonLocations.setBounds(245, 124, 175, 25);
          if (enabled)
          {
            jButtonLocations.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_LOCATION"));
          }
          jButtonLocations.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

              JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_LOCATION", lmaterial);
            }
          });
         
        }
        {
          jButtonBatches = new JButton4j();
          jDesktopPane1.add(jButtonBatches);
          jButtonBatches.setIcon(Common.icon_batch);
          jButtonBatches.setText(lang.get("btn_Material_Batches"));
          jButtonBatches.setBounds(437, 149, 175, 32);
          jButtonBatches.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_BATCH"));
          jButtonBatches.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_BATCH", lmaterial);
            }
          });
        }
        {
          jLabel11 = new JLabel4j_std();
          jDesktopPane1.add(jLabel11);
          jLabel11.setText(lang.get("lbl_Material_Legacy_Code"));
          jLabel11.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel11.setBounds(6, 302, 159, 21);
        }
        {
          ComboBoxModel<String> jComboBoxDefaultBatchStatusModel = new DefaultComboBoxModel<String>(Common.batchStatusIncBlank);
          jComboBoxDefaultBatchStatus = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxDefaultBatchStatus);
          jComboBoxDefaultBatchStatus.setModel(jComboBoxDefaultBatchStatusModel);
          jComboBoxDefaultBatchStatus.setBounds(173, 332, 164, 23);
          jComboBoxDefaultBatchStatus.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
       
        checkBoxOverridePackLabel.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
            setButtonStates();
          }
        });
       

        checkBoxOverridePackLabel.setBackground(Color.WHITE);
        checkBoxOverridePackLabel.setBounds(166, 420, 21, 24);
        jDesktopPane1.add(checkBoxOverridePackLabel);
        checkBoxOverridePalletLabel.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            setButtonStates();
          }
        });
       

        checkBoxOverridePalletLabel.setBackground(Color.WHITE);
        checkBoxOverridePalletLabel.setBounds(166, 453, 21, 24);
        jDesktopPane1.add(checkBoxOverridePalletLabel);
       
        JLabel4j_std label4j_std = new JLabel4j_std();
        label4j_std.setText(lang.get("lbl_Override_Pack_Label"));
        label4j_std.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4j_std.setHorizontalAlignment(SwingConstants.RIGHT);
        label4j_std.setBounds(6, 420, 159, 21);
        jDesktopPane1.add(label4j_std);
       
        JLabel4j_std label4j_std_1 = new JLabel4j_std();
        label4j_std_1.setText(lang.get("lbl_Override_Pallet_Label"));
        label4j_std_1.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4j_std_1.setHorizontalAlignment(SwingConstants.RIGHT);
        label4j_std_1.setBounds(7, 453, 159, 21);
        jDesktopPane1.add(label4j_std_1);
       
        ComboBoxModel<JDBListData> jComboBox1Model = new DefaultComboBoxModel<JDBListData>(moduleList);
        comboBoxPackModuleID.setModel(jComboBox1Model);
        comboBoxPackModuleID.setEnabled(false);
View Full Code Here

      jComboBoxPalletStatus.setModel(jComboBoxBatchStatusModel);
      jComboBoxPalletStatus.setBounds(163, 320, 150, 21);
      jDesktopPane1.add(jComboBoxPalletStatus);
    }
    {
      JLabel4j_std lblBatchStatus = new JLabel4j_std();
      lblBatchStatus.setText(lang.get("lbl_Process_Order_Default_Pallet_Status"));
      lblBatchStatus.setHorizontalAlignment(SwingConstants.TRAILING);
      lblBatchStatus.setBounds(12, 320, 144, 21);
      jDesktopPane1.add(lblBatchStatus);
    }

    {
      JLabel4j_std lblReqdResource = new JLabel4j_std();
      lblReqdResource.setText(lang.get("lbl_Process_Order_Required_Resource"));
      lblReqdResource.setHorizontalAlignment(SwingConstants.TRAILING);
      lblReqdResource.setBounds(12, 353, 144, 21);
      jDesktopPane1.add(lblReqdResource);
    }

    {
      JLabel4j_std lblCustomerID = new JLabel4j_std();
      lblCustomerID.setText(lang.get("lbl_Customer_ID"));
      lblCustomerID.setHorizontalAlignment(SwingConstants.TRAILING);
      lblCustomerID.setBounds(12, 386, 144, 21);
      jDesktopPane1.add(lblCustomerID);
    }   
   
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
View Full Code Here

        jDesktopPane1 = new JDesktopPane();
        jDesktopPane1.setBackground(Color.WHITE);
        getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setLayout(null);
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Process_Order"));
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setBounds(12, 12, 144, 21);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setEditable(false);
          jTextFieldProcessOrder.setEnabled(false);
          jTextFieldProcessOrder.setBounds(163, 12, 126, 21);
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
          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);
            }
          });
        }
        {
          jButton3 = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButton3);
          jButton3.setBounds(287, 386, 21, 21);
          jButton3.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.customers())
              {
                jTextFieldCustomer.setText(JLaunchLookup.dlgResult);
                jButtonSave.setEnabled(true);
              }
            }
          });
        }
        {
          jComboBoxRequiredUOM.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
              jButtonSave.setEnabled(true);
            }
          });

          jComboBoxRequiredUOM.setBounds(163, 195, 301, 23);
          jDesktopPane1.add(jComboBoxRequiredUOM);
        }
        {
          jLabel14 = new JLabel4j_std();
          jDesktopPane1.add(jLabel14);
          jLabel14.setText(lang.get("lbl_Process_Order_Status"));
          jLabel14.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel14.setBounds(12, 286, 144, 21);
        }
        {
          ComboBoxModel jComboBoxStatusModel = new DefaultComboBoxModel(Common.processOrderStatus);
          jComboBoxStatus = new JComboBox4j();
          jDesktopPane1.add(jComboBoxStatus);
          jComboBoxStatus.setModel(jComboBoxStatusModel);
          jComboBoxStatus.setBounds(163, 286, 150, 21);
          jComboBoxStatus.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
        }
        {
          jButtonSave = new JButton4j(Common.icon_save);
          jDesktopPane1.add(jButtonSave);
          jButtonSave.setText(lang.get("btn_Save"));
          jButtonSave.setBounds(62, 453, 112, 28);
          jButtonSave.setEnabled(false);
          jButtonSave.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              processorder.setDescription(jTextFieldDescription.getText());
              processorder.setRecipe(jTextFieldRecipeID.getText());
              processorder.setLocation(jTextFieldLocation.getText());
              processorder.setCustomerID(jTextFieldCustomer.getText());
              processorder.setInspectionID(jTextFieldInspectionID.getText());
              processorder.setMaterial(jTextFieldMaterial.getText());
              processorder.setRequiredQuantity(JUtility.stringToBigDecimal(jFormattedTextFieldRequiredQuantity.getText().toString()));
              processorder.setRequiredUom(((JDBUom) jComboBoxRequiredUOM.getSelectedItem()).getInternalUom());
              processorder.setRequiredResource(jTextFieldRequiredResource.getText());
              try
              {
                processorder.setStatus((String) jComboBoxStatus.getSelectedItem());
              }
              catch (Exception e)
              {
                processorder.setStatus("");
              }

              try
              {
                processorder.setDefaultPalletStatus((String) jComboBoxPalletStatus.getSelectedItem());
              }
              catch (Exception e)
              {
                processorder.setDefaultPalletStatus("");
              }

              Date d = jSpinnerDueDate.getDate();
              processorder.setDueDate(JUtility.getTimestampFromDate(d));
              if (processorder.isValidProcessOrder() == false)
              {
                processorder.create();
              }
              if (processorder.update())
              {
                jButtonSave.setEnabled(false);
              }
              else
              {
                JUtility.errorBeep();
                JOptionPane.showMessageDialog(Common.mainForm, processorder.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE);
              }

              jComboBoxPalletStatus.setSelectedItem(processorder.getDefaultPalletStatus());

            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setBounds(181, 453, 112, 28);
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(300, 453, 112, 28);
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          jButton1 = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButton1);
          jButton1.setBounds(287, 75, 20, 20);
          jButton1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = false;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.materials())
              {
                jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
                materialChanged();
                jButtonSave.setEnabled(true);
              }
            }
          });
        }
        {
          jButton3 = new JButton4j(Common.icon_lookup);
          jDesktopPane1.add(jButton3);
          jButton3.setBounds(287, 258, 21, 21);
          jButton3.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "Y";
              if (JLaunchLookup.locations())
              {
                jTextFieldLocation.setText(JLaunchLookup.dlgResult);
                jButtonSave.setEnabled(true);
              }
            }
          });
        }

        {
          jLabel6 = new JLabel4j_std();
          jLabel6.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel6.setText(lang.get("lbl_Process_Order_Required_UOM"));
          jLabel6.setBounds(12, 197, 144, 21);
          jDesktopPane1.add(jLabel6);
        }

        {
          jFormattedTextFieldRequiredQuantity = new JQuantityInput(new BigDecimal("0"));
          jFormattedTextFieldRequiredQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldRequiredQuantity.setFont(Common.font_std);
          jFormattedTextFieldRequiredQuantity.setBounds(163, 165, 91, 21);
          jFormattedTextFieldRequiredQuantity.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonSave.setEnabled(true);
            }
          });
          jDesktopPane1.add(jFormattedTextFieldRequiredQuantity);
        }

        {
          jLabelQuantity = new JLabel4j_std();
          jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity.setText(lang.get("lbl_Process_Order_Required_Quantity"));
          jLabelQuantity.setBounds(12, 165, 144, 21);
          jDesktopPane1.add(jLabelQuantity);
        }

        {
          jLabel3_1 = new JLabel4j_std();
          jLabel3_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3_1.setText(lang.get("lbl_Description"));
          jLabel3_1.setBounds(12, 105, 144, 21);
          jDesktopPane1.add(jLabel3_1);
        }
View Full Code Here

      labelCommand.setBounds(13, 503, 577, 23);
      labelCommand.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
      desktopPane.add(labelCommand);

      JLabel4j_std label4j_std = new JLabel4j_std();
      label4j_std.setFont(new Font("Arial", Font.BOLD, 11));
      label4j_std.setText("Source");
      label4j_std.setHorizontalTextPosition(SwingConstants.LEFT);
      label4j_std.setHorizontalAlignment(SwingConstants.LEFT);
      label4j_std.setBounds(14, 15, 127, 21);
      desktopPane.add(label4j_std);

      JLabel4j_std label4j_std_1 = new JLabel4j_std();
      label4j_std_1.setText("Destination");
      label4j_std_1.setHorizontalTextPosition(SwingConstants.LEFT);
      label4j_std_1.setHorizontalAlignment(SwingConstants.LEFT);
      label4j_std_1.setFont(new Font("Arial", Font.BOLD, 11));
      label4j_std_1.setBounds(310, 15, 127, 21);
      desktopPane.add(label4j_std_1);

    } catch (Exception e)
    {
      e.printStackTrace();
View Full Code Here

              dispose();
            }
          });
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          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);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(35, 97, 84, 21);
        }
        {
          ComboBoxModel jComboBoxStatusModel = new DefaultComboBoxModel(Common.batchStatusIncBlank);
          jComboBoxStatus = new JComboBox4j();
          jDesktopPane1.add(jComboBoxStatus);
          jComboBoxStatus.setModel(jComboBoxStatusModel);
          jComboBoxStatus.setBounds(126, 69, 150, 21);
          jComboBoxStatus.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material_Batch_Status"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(42, 69, 77, 21);
        }
View Full Code Here

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

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

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

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

            }
          });

        }
        {
          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 jComboBox1Model = new DefaultComboBoxModel(Common.palletStatus);
          jComboBoxDefaultPalletStatus = new JComboBox4j();
          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, 535, 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, 28);
          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) {
View Full Code Here

        jDesktopPane1 = new JDesktopPane();
        jDesktopPane1.setBackground(Color.WHITE);
        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setLayout(null);
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_UOM_Internal"));
          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, 30);
          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, 30);
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.setBounds(269, 142, 110, 30);
          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);
View Full Code Here

TOP

Related Classes of com.commander4j.gui.JLabel4j_std

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.