Package com.commander4j.gui

Examples of com.commander4j.gui.JLabel4j_std


    });

    jListShifts.setSelectedIndex(-1);
    scrollPaneShifts.setViewportView(jListShifts);

    JLabel4j_std lblCriteria = new JLabel4j_std("Criteria - Quick Set");
    lblCriteria.setText(lang.get("mod_FRM_ADMIN_SHIFT"));
    lblCriteria.setBounds(12, 295, 126, 15);
    desktopPane.add(lblCriteria);

    JLabel4j_std lblReport = new JLabel4j_std(lang.get("mod_FRM_ADMIN_USER_REPORT"));
    lblReport.setBounds(12, 12, 126, 15);
    desktopPane.add(lblReport);

    label4j_statusBar.setForeground(Color.RED);
    label4j_statusBar.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    label4j_statusBar.setBounds(0, 514, 817, 25);
    desktopPane.add(label4j_statusBar);
    panelDateParams.setBackground(Color.WHITE);

    panelDateParams.setBounds(604, 312, 165, 161);
    panelDateParams.setBorder(BorderFactory.createLineBorder(Color.GRAY));
    desktopPane.add(panelDateParams);
    panelDateParams.setLayout(null);

    JLabel4j_std lblStart = new JLabel4j_std(lang.get("web_From"));
    lblStart.setBounds(11, 12, 145, 15);
    panelDateParams.add(lblStart);

    domDateFrom = new JDateControl();
    domDateFrom.setBounds(6, 27, 128, 25);
    panelDateParams.add(domDateFrom);
    domDateFrom.setFont(Common.font_std);

    button_CalendardomDateFrom = new JCalendarButton(domDateFrom);
    button_CalendardomDateFrom.setSize(21, 21);
    button_CalendardomDateFrom.setLocation(510, 314);
    button_CalendardomDateFrom.setBounds(135, 31, 21, 21);
    panelDateParams.add(button_CalendardomDateFrom);

    JLabel4j_std label4jEnd = new JLabel4j_std(lang.get("web_To"));
    label4jEnd.setBounds(11, 67, 149, 15);
    panelDateParams.add(label4jEnd);

    domDateTo = new JDateControl();
    domDateTo.setBounds(6, 82, 128, 25);
    panelDateParams.add(domDateTo);
View Full Code Here


          jTextFieldResourceKey.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldResourceKey.setEditable(false);
          jTextFieldResourceKey.setEnabled(false);
        }
        {
          jLabel1 = new JLabel4j_std();
          jLabel1.setBounds(8, 43, 115, 21);
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Resource_Key"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel1 = new JLabel4j_std();
          jLabel1.setBounds(8, 10, 115, 21);
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Language_ID"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setBounds(8, 76, 115, 21);
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Text"));
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setBounds(8, 109, 115, 21);
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Mnemonic"));
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
View Full Code Here

    {
      preInitGUI();

      jDesktopPane1 = new JDesktopPane();
      jDesktopPane1.setBackground(Common.color_app_window);
      jLabel2 = new JLabel4j_std();
      jLabel3 = new JLabel4j_std();
      jLabel1 = new JLabel4j_std();
      jLabel4 = new JLabel4j_std();
      jTextFieldUserID = new JTextField4j();
      jTextFieldComment = new JTextField4j();
      jPasswordField1 = new JPasswordField();
      jPasswordField2 = new JPasswordField();
      jComboBoxLanguage = new JComboBox4j<String>();
      jComboBoxLanguage.setModel(new DefaultComboBoxModel<String>(Common.languages));
      jTextFieldLastLogon = new JTextField4j();
      jTextFieldLastPasswordChange = new JTextField4j();
      jLabel5 = new JLabel4j_std();
      jLabel6 = new JLabel4j_std();
      jLabel7 = new JLabel4j_std();
      jLabel8 = new JLabel4j_std();
      jLabel9 = new JLabel4j_std();
      jLabel10 = new JLabel4j_std();
      jTextFieldBadPasswords = new JTextField4j();
      jLabel11 = new JLabel4j_std();
      jCheckBoxAccountLocked = new JCheckBox4j();
      jCheckBoxPasswordExpires = new JCheckBox4j();
      jCheckBoxPasswordChangeAllowed = new JCheckBox4j();

      jButtonSave = new JButton4j(Common.icon_update);
      jButtonCancel = new JButton4j(Common.icon_close);

      BorderLayout thisLayout = new BorderLayout();
      this.getContentPane().setLayout(thisLayout);
      thisLayout.setHgap(0);
      thisLayout.setVgap(0);

      this.setClosable(true);
      this.setVisible(true);
      this.setPreferredSize(new java.awt.Dimension(417, 432));
      this.setBounds(0, 0, 430, 488);
      this.setIconifiable(true);

      jDesktopPane1.setPreferredSize(new java.awt.Dimension(364, 329));
      jDesktopPane1.setOpaque(true);
      this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
      jDesktopPane1.setLayout(null);

      jLabel2.setText(lang.get("lbl_Description"));
      jDesktopPane1.add(jLabel2);
      jLabel2.setBounds(0, 35, 158, 20);
      jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel3.setText(lang.get("lbl_User_Account_Password"));
      jDesktopPane1.add(jLabel3);
      jLabel3.setBounds(0, 62, 158, 20);
      jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel1.setText(lang.get("lbl_User_ID"));

      jDesktopPane1.add(jLabel1);
      jLabel1.setFocusTraversalKeysEnabled(false);
      jLabel1.setBounds(0, 7, 158, 20);
      jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel4.setText(lang.get("lbl_User_Account_Password_Verify"));
      jDesktopPane1.add(jLabel4);
      jLabel4.setBounds(0, 89, 158, 20);
      jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);

      jTextFieldUserID.setEditable(false);
      jTextFieldUserID.setEnabled(false);
      jTextFieldUserID.setPreferredSize(new java.awt.Dimension(100, 20));
      jTextFieldUserID.setDisabledTextColor(Common.color_textdisabled);
      jDesktopPane1.add(jTextFieldUserID);
      jTextFieldUserID.setBounds(172, 7, 100, 20);

      AbstractDocument doc = (AbstractDocument) jTextFieldComment.getDocument();
      doc.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_comment));
      jDesktopPane1.add(jTextFieldComment);
      jTextFieldComment.setBounds(172, 34, 217, 21);
      jTextFieldComment.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent evt) {
          jTextFieldCommentKeyTyped(evt);
        }
      });

      jPasswordField1.setPreferredSize(new java.awt.Dimension(100, 20));
      AbstractDocument doc1 = (AbstractDocument) jPasswordField1.getDocument();
      doc1.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_password));
      jDesktopPane1.add(jPasswordField1);
      jPasswordField1.setBounds(172, 62, 100, 20);
      jPasswordField1.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent evt) {
          jPasswordField1KeyTyped(evt);
        }
      });

      jPasswordField2.setPreferredSize(new java.awt.Dimension(100, 20));
      AbstractDocument doc2 = (AbstractDocument) jPasswordField2.getDocument();
      doc2.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_password));
      jDesktopPane1.add(jPasswordField2);
      jPasswordField2.setBounds(172, 89, 100, 20);
      jPasswordField2.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent evt) {
          jPasswordField2KeyTyped(evt);
        }
      });

      jComboBoxLanguage.setEnabled(true);
      jComboBoxLanguage.setEditable(false);
      jComboBoxLanguage.setLightWeightPopupEnabled(true);
      jComboBoxLanguage.setPreferredSize(new java.awt.Dimension(45, 21));
      jComboBoxLanguage.setIgnoreRepaint(false);
      jDesktopPane1.add(jComboBoxLanguage);
      jComboBoxLanguage.setBounds(172, 116, 69, 21);
      jComboBoxLanguage.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jComboBoxLanguageActionPerformed(evt);
        }
      });

      jTextFieldLastLogon.setEditable(false);
      jTextFieldLastLogon.setPreferredSize(new java.awt.Dimension(150, 20));
      jDesktopPane1.add(jTextFieldLastLogon);
      jTextFieldLastLogon.setBounds(172, 144, 150, 20);
      jTextFieldLastLogon.setEnabled(false);
      jTextFieldLastLogon.setDisabledTextColor(Common.color_textdisabled);

      jTextFieldLastPasswordChange.setEditable(false);
      jTextFieldLastPasswordChange.setPreferredSize(new java.awt.Dimension(150, 20));
      jDesktopPane1.add(jTextFieldLastPasswordChange);
      jTextFieldLastPasswordChange.setBounds(172, 171, 150, 20);
      jTextFieldLastPasswordChange.setEnabled(false);
      jTextFieldLastPasswordChange.setDisabledTextColor(Common.color_textdisabled);

      jLabel5.setText(lang.get("lbl_Language"));
      jDesktopPane1.add(jLabel5);
      jLabel5.setBounds(0, 117, 158, 20);
      jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel6.setText(lang.get("lbl_User_Account_Last_Logon"));
      jDesktopPane1.add(jLabel6);
      jLabel6.setBounds(0, 144, 158, 20);
      jLabel6.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel7.setText(lang.get("lbl_User_Account_Last_Password_Change"));
      jDesktopPane1.add(jLabel7);
      jLabel7.setBounds(0, 171, 158, 20);
      jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel8.setText(lang.get("lbl_User_Account_Locked"));
      jDesktopPane1.add(jLabel8);
      jLabel8.setBounds(0, 199, 158, 20);
      jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel9.setText(lang.get("lbl_User_Account_Password_Expires"));
      jDesktopPane1.add(jLabel9);
      jLabel9.setBounds(0, 227, 158, 20);
      jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel10.setText(lang.get("lbl_User_Account_Bad_Passwords"));
      jDesktopPane1.add(jLabel10);
      jLabel10.setFocusTraversalKeysEnabled(false);
      jLabel10.setBounds(0, 282, 158, 20);
      jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);

      jTextFieldBadPasswords.setEditable(false);
      jTextFieldBadPasswords.setPreferredSize(new java.awt.Dimension(20, 20));
      jDesktopPane1.add(jTextFieldBadPasswords);
      jTextFieldBadPasswords.setBounds(172, 282, 20, 20);
      jTextFieldBadPasswords.setEnabled(false);
      jTextFieldBadPasswords.setDisabledTextColor(Common.color_textdisabled);

      jLabel11.setText(lang.get("lbl_User_Account_Password_Change_Allowed"));
      jDesktopPane1.add(jLabel11);
      jLabel11.setBounds(0, 255, 158, 20);
      jLabel11.setHorizontalAlignment(SwingConstants.TRAILING);

      jDesktopPane1.add(jCheckBoxAccountLocked);
      jCheckBoxAccountLocked.setBounds(170, 198, 21, 21);
      jCheckBoxAccountLocked.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxAccountLocked.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jCheckBoxAccountLockedActionPerformed(evt);
        }
      });

      jDesktopPane1.add(jCheckBoxPasswordExpires);
      jCheckBoxPasswordExpires.setBounds(169, 226, 21, 21);
      jCheckBoxPasswordExpires.setFont(Common.font_std);
      jCheckBoxPasswordExpires.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxPasswordExpires.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jCheckBoxPasswordExpiresActionPerformed(evt);
        }
      });

      jDesktopPane1.add(jCheckBoxPasswordChangeAllowed);
      jCheckBoxPasswordChangeAllowed.setBounds(169, 254, 21, 21);
      jCheckBoxPasswordChangeAllowed.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxPasswordChangeAllowed.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jCheckBoxPasswordChangeAllowedActionPerformed(evt);
        }
      });

      jButtonSave.setEnabled(false);
      jButtonSave.setText(lang.get("btn_Save"));
      jButtonSave.setMnemonic(lang.getMnemonicChar());
      jDesktopPane1.add(jButtonSave);
      jButtonSave.setBounds(17, 394, 112, 32);
      jButtonSave.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jButtonUpdateActionPerformed(evt);
        }
      });

      jButtonCancel.setText(lang.get("btn_Close"));
      jButtonCancel.setMnemonic(lang.getMnemonicChar());
      jDesktopPane1.add(jButtonCancel);
      jButtonCancel.setBounds(275, 394, 112, 32);
      {
        jButtonHelp = new JButton4j(Common.icon_help);
        jDesktopPane1.add(jButtonHelp);
        jButtonHelp.setText(lang.get("btn_Help"));
        jButtonHelp.setBounds(146, 394, 112, 32);
        jButtonHelp.setMnemonic(lang.getMnemonicChar());
      }
      {
        jCheckBoxAccountExpires = new JCheckBox4j();
        jDesktopPane1.add(jCheckBoxAccountExpires);
        jCheckBoxAccountExpires.setBounds(169, 309, 22, 21);
        jCheckBoxAccountExpires.setBackground(new java.awt.Color(255, 255, 255));
        jCheckBoxAccountExpires.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            jCheckBoxAccountExpiresActionPerformed(evt);
          }
        });
      }
      {
        jLabelAccountExpires = new JLabel4j_std();
        jDesktopPane1.add(jLabelAccountExpires);
        jLabelAccountExpires.setText(lang.get("lbl_User_Account_Expires"));
        jLabelAccountExpires.setBounds(0, 310, 158, 20);
        jLabelAccountExpires.setHorizontalAlignment(SwingConstants.TRAILING);
      }
      {
        jLabelAccountExpiryDate = new JLabel4j_std();
        jDesktopPane1.add(jLabelAccountExpiryDate);
        jLabelAccountExpiryDate.setText(lang.get("lbl_User_Account_Expiry_Date"));
        jLabelAccountExpiryDate.setBounds(0, 339, 158, 20);
        jLabelAccountExpiryDate.setHorizontalAlignment(SwingConstants.TRAILING);
      }
      jButtonCancel.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jButtonCancelActionPerformed(evt);
        }
      });

      accountExpiryDate.getEditor().addKeyListener(new KeyAdapter() {
        public void keyPressed(KeyEvent e) {
          userUpdated = true;
          jButtonSave.setEnabled(true);
        }
      });
      accountExpiryDate.addChangeListener(new ChangeListener() {
        public void stateChanged(final ChangeEvent e)

        {
          userUpdated = true;
          jButtonSave.setEnabled(true);
        }
      });

      accountExpiryDate.setBounds(172, 334, 125, 25);
      jDesktopPane1.add(accountExpiryDate);

      jTextFieldEmailAddress = new JTextField4j();
      jTextFieldEmailAddress.addKeyListener(new KeyAdapter() {
        public void keyTyped(final KeyEvent e) {
          userUpdated = true;
          jButtonSave.setEnabled(true);
        }
      });
      jTextFieldEmailAddress.setBounds(172, 366, 217, 21);
      jDesktopPane1.add(jTextFieldEmailAddress);

      jLabel2_1 = new JLabel4j_std();
      jLabel2_1.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabel2_1.setText(lang.get("lbl_User_Account_Email"));
      jLabel2_1.setBounds(0, 367, 158, 20);
      jDesktopPane1.add(jLabel2_1);
     
View Full Code Here

            }
          });
        }

        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Pallet_SSCC"));
          jLabel1.setBounds(7, 14, 133, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setBounds(7, 275, 133, 21);
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setText(lang.get("lbl_Material_UOM"));
        }

        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(7, 98, 133, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldMaterial.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterial.field_material));
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(147, 98, 119, 21);
          jTextFieldMaterial.setEnabled(false);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Material_Batch"));
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(7, 185, 133, 21);
        }
        {
          jTextFieldBatch = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setBounds(147, 185, 119, 21);
          jTextFieldBatch.setEnabled(false);
        }

        {
          jLabelProcessOrder = new JLabel4j_std();
          jDesktopPane1.add(jLabelProcessOrder);
          jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
          jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelProcessOrder.setBounds(7, 42, 133, 21);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setBounds(147, 42, 119, 21);
          jTextFieldProcessOrder.setEnabled(false);

        }
        {
          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, 356, 133, 21);
        }
        {
          jTextFieldEAN = new JTextField4j();
          jDesktopPane1.add(jTextFieldEAN);
          jTextFieldEAN.setBounds(147, 356, 119, 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(7, 384, 133, 21);
        }
        {
          jTextFieldVariant = new JTextField4j();
          jDesktopPane1.add(jTextFieldVariant);
          jTextFieldVariant.setBounds(147, 384, 29, 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, 245, 133, 21);
        }
        {
          jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
          jDesktopPane1.add(jFormattedTextFieldQuantity);
          jFormattedTextFieldQuantity.setFont(Common.font_std);
          jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldQuantity.setBounds(147, 245, 91, 21);
          jFormattedTextFieldQuantity.setEnabled(false);

        }

        {
          jTextFieldProcessOrderDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrderDescription);
          jTextFieldProcessOrderDescription.setBounds(147, 70, 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, 70, 133, 21);
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText(lang.get("lbl_Description"));
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(7, 126, 133, 21);
        }
        {
          jTextFieldMaterialDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterialDescription);
          jTextFieldMaterialDescription.setBounds(147, 126, 287, 21);
          jTextFieldMaterialDescription.setEnabled(false);

        }
        {
          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, 490, 445, 21);
        }

        {
          jLabelQuantity_1 = new JLabel4j_std();
          jLabelQuantity_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity_1.setText(lang.get("lbl_Pallet_Base_Quantity"));
          jLabelQuantity_1.setBounds(7, 302, 133, 21);
          jDesktopPane1.add(jLabelQuantity_1);
        }

        {
          jFormattedTextFieldBaseQuantity = new JQuantityInput(new BigDecimal("0"));
          jFormattedTextFieldBaseQuantity.setFocusable(false);
          jFormattedTextFieldBaseQuantity.setEnabled(false);
          jFormattedTextFieldBaseQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldBaseQuantity.setFont(Common.font_std);
          jFormattedTextFieldBaseQuantity.setBounds(147, 302, 91, 21);
          jDesktopPane1.add(jFormattedTextFieldBaseQuantity);
        }

        {
          jTextFieldBaseUom = new JTextField4j();
          jTextFieldBaseUom.setEnabled(false);
          jTextFieldBaseUom.setFocusCycleRoot(true);
          jTextFieldBaseUom.setBounds(147, 329, 119, 21);
          jDesktopPane1.add(jTextFieldBaseUom);
        }

        {
          jLabelQuantity_2 = new JLabel4j_std();
          jLabelQuantity_2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity_2.setText(lang.get("lbl_Pallet_Base_UOM"));
          jLabelQuantity_2.setBounds(7, 329, 133, 21);
          jDesktopPane1.add(jLabelQuantity_2);
        }

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

        {
          checkBoxConfirmed.setBackground(Color.WHITE);
          checkBoxConfirmed.setText("");
          checkBoxConfirmed.setBounds(144, 410, 32, 24);
          checkBoxConfirmed.setEnabled(false);
          jDesktopPane1.add(checkBoxConfirmed);
        }

        {
          jLabel4 = new JLabel4j_std();
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setText(lang.get("lbl_Location_ID"));
          jLabel4.setBounds(7, 153, 133, 21);
          jDesktopPane1.add(jLabel4);
        }

        {
          jTextFieldLocation = new JTextField4j();
          jTextFieldLocation.setBounds(147, 153, 119, 21);
          jTextFieldLocation.setEnabled(false);
          jDesktopPane1.add(jTextFieldLocation);
        }

        {
          jLabel10 = new JLabel4j_std();
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setText(lang.get("lbl_Material_Batch_Status"));
          jLabel10.setBounds(7, 215, 133, 21);
          jDesktopPane1.add(jLabel10);
        }
View Full Code Here

                dispose();
              }
            });
          }
          {
            jLabel2 = new JLabel4j_std();
            jDesktopPane1.add(jLabel2);
            jLabel2.setText("by");
            jLabel2.setBounds(147, 112, 56, 21);
            jLabel2.setFont(new java.awt.Font("Dialog", 0, 12));
            jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
          }
          {
            jLabel3 = new JLabel4j_std();
            jDesktopPane1.add(jLabel3);
            jLabel3.setText("David Garratt");
            jLabel3.setBounds(119, 133, 105, 14);
            jLabel3.setFont(new java.awt.Font("Dialog", 0, 12));
            jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
          }
          {
            jLabel1 = new JLabel4j_std();
            jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
            jDesktopPane1.add(jLabel1);
            jLabel1.setText("http://www.commander4j.com");
            jLabel1.setBounds(48, 175, 241, 14);
            jLabel1.setForeground(new java.awt.Color(0, 0, 255));
            jLabel1.addMouseListener(new MouseAdapter() {
              public void mouseClicked(MouseEvent evt) {
                if (HelpAvailable)
                {
                  try
                  {
                    desktop.browse(helpURI);
                  }
                  catch (Exception ex)
                  {
                    JUtility.errorBeep();
                    JOptionPane.showMessageDialog(Common.mainForm, ex.getMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
                  }
                }
              }

              public void mouseExited(MouseEvent evt) {
                Cursor normalCursor = new Cursor(Cursor.DEFAULT_CURSOR);
                setCursor(normalCursor);
              }

              public void mouseEntered(MouseEvent evt) {
                Cursor hourglassCursor = new Cursor(Cursor.HAND_CURSOR);
                setCursor(hourglassCursor);
              }
            });
          }
          {
            jLabel4 = new JLabel4j_std();
            jLabel4.setHorizontalAlignment(SwingConstants.CENTER);
            jDesktopPane1.add(jLabel4);
            jLabel4.setText("Email : support@commander4j.com");
            jLabel4.setBounds(44, 154, 242, 14);
            jLabel4.setForeground(new java.awt.Color(0, 0, 255));
            jLabel4.addMouseListener(new MouseAdapter() {
              public void mouseClicked(MouseEvent evt) {
                if (HelpAvailable)
                {
                  try
                  {
                    desktop.mail(mailtoURI);
                  }
                  catch (Exception ex)
                  {
                    JUtility.errorBeep();
                    JOptionPane.showMessageDialog(Common.mainForm, ex.getMessage(), lang.get("err_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
                  }
                }
              }

              public void mouseExited(MouseEvent evt) {
                Cursor normalCursor = new Cursor(Cursor.DEFAULT_CURSOR);
                setCursor(normalCursor);
              }

              public void mouseEntered(MouseEvent evt) {
                Cursor hourglassCursor = new Cursor(Cursor.HAND_CURSOR);
                setCursor(hourglassCursor);
              }
            });
          }
          {
            String msg = "4001234567890123456789012345678901234567890";
            i = JEANImage.getAWTImage("xml/barcode/about.xml", msg);
            Graphics gph = i.getGraphics();
            jDesktopPane1.paintComponents(gph.create(0, 0, 200, 50));
          }
          {
            jLabel5 = new JLabel4j_std();
            jDesktopPane1.add(jLabel5);
            jLabel5.setText("Commander4j " + JVersion.getProgramVersion());
            jLabel5.setBounds(14, 7, 322, 35);
            jLabel5.setFont(new java.awt.Font("Serif", 1, 28));
            jLabel5.setForeground(new java.awt.Color(255, 0, 0));
View Full Code Here

    desktopPane.setBounds(0, 0, 1023, 666);
    desktopPane.setBackground(Color.WHITE);
    getContentPane().add(desktopPane);
    desktopPane.setLayout(null);
   
    JLabel4j_std lblProcessOrder = new JLabel4j_std(lang.get("lbl_Process_Order"));
    lblProcessOrder.setBounds(6, 18, 111, 16);
    lblProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
    desktopPane.add(lblProcessOrder);
   
    textFieldProcessOrder = new JTextField4j();
    textFieldProcessOrder.setBounds(125, 15, 138, 22);
    textFieldProcessOrder.addKeyListener(new KeyAdapter()
    {
      public void keyReleased(KeyEvent evt)
      {
        processOrderChanged(textFieldProcessOrder.getText());
      }
    });
    desktopPane.add(textFieldProcessOrder);
    textFieldProcessOrder.setColumns(10);
   
    JLabel4j_std lblNewLabel_3 = new JLabel4j_std(lang.get("lbl_Activity_ID"));
    lblNewLabel_3.setBounds(6, 98, 111, 16);
    lblNewLabel_3.setHorizontalAlignment(SwingConstants.TRAILING);
    desktopPane.add(lblNewLabel_3);
   
    btnClose = new JButton4j(lang.get("btn_Close"));
    btnClose.setBounds(877, 92, 117, 29);
    btnClose.setIcon(Common.icon_close);
    btnClose.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        dispose();
      }
    });
    desktopPane.add(btnClose);
   
    btnEdit = new JButton4j(lang.get("btn_Edit"));
    btnEdit.setBounds(748, 92, 117, 29);
    btnEdit.setIcon(Common.icon_edit);
    btnEdit.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        editRecord();
      }
    });
    desktopPane.add(btnEdit);
   
    JButton4j btnRefresh = new JButton4j(lang.get("btn_Refresh"));
    btnRefresh.setBounds(619, 92, 117, 29);
    btnRefresh.setIcon(Common.icon_refresh);
    btnRefresh.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        populateTable();
      }
    });
    desktopPane.add(btnRefresh);
   
    JButton btnProcessOrderLookup = new JButton();
    btnProcessOrderLookup.setIcon(Common.icon_lookup);
    btnProcessOrderLookup.setBounds(261, 15, 21, 22);
    btnProcessOrderLookup.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {
        JLaunchLookup.dlgCriteriaDefault = "Ready";
        JLaunchLookup.dlgAutoExec = true;
        if (JLaunchLookup.processOrders())
        {
          textFieldProcessOrder.setText(JLaunchLookup.dlgResult);
          processOrderChanged(JLaunchLookup.dlgResult);
        }
      }
    });
    desktopPane.add(btnProcessOrderLookup);
   
    comboboxActivities = new JComboBox4j();
    comboboxActivities.setBounds(125, 93, 470, 28);
    comboboxActivities.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        populateTable();
      }
    });
    desktopPane.add(comboboxActivities);
   
    lblStatusBar = new JLabel4j_std();
    lblStatusBar.setBounds(8, 615, 990, 21);
    lblStatusBar.setForeground(Color.RED);
    lblStatusBar.setBackground(Color.GRAY);
    desktopPane.add(lblStatusBar);
   
    jScrollPane1 = new JScrollPane();
    jScrollPane1.setBounds(8, 139, 995, 470);
    jScrollPane1.getViewport().setBackground(Common.color_tablebackground);
    desktopPane.setLayout(null);
    desktopPane.add(jScrollPane1);

   
    initializeTable("","");
   
    textField4Material = new JTextField4j();
    textField4Material.setEnabled(false);
    textField4Material.setColumns(10);
    textField4Material.setBounds(413, 15, 138, 22);
    desktopPane.add(textField4Material);
   
    textFieldDescription = new JTextField4j();
    textFieldDescription.setEnabled(false);
    textFieldDescription.setColumns(10);
    textFieldDescription.setBounds(563, 15, 431, 22);
    desktopPane.add(textFieldDescription);
   
    JLabel4j_std lbl_material = new JLabel4j_std(lang.get("lbl_Material"));
    lbl_material.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_material.setBounds(294, 18, 111, 16);
    desktopPane.add(lbl_material);
   
    textField4InspectionID = new JTextField4j();
    textField4InspectionID.setEnabled(false);
    textField4InspectionID.setColumns(10);
    textField4InspectionID.setBounds(125, 52, 138, 22);
    desktopPane.add(textField4InspectionID);
   
    lbl_inspection = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lbl_inspection.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_inspection.setBounds(6, 56, 111, 16);
    desktopPane.add(lbl_inspection);
   
    textField4jInspectionDescription = new JTextField4j();
View Full Code Here

    getContentPane().add(fld_new_password);
    getContentPane().add(fld_verify_new_password);
    getContentPane().add(btn_change);
    getContentPane().add(btn_cancel);
   
    label = new JLabel4j_std("Username :");
    label.setHorizontalAlignment(SwingConstants.TRAILING);
    label.setBounds(12, 12, 111, 22);
    getContentPane().add(label);
   
    label_1 = new JLabel4j_std("Password :");
    label_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label_1.setBounds(12, 46, 111, 22);
    getContentPane().add(label_1);
   
    lblNewPassword = new JLabel4j_std("New Password :");
    lblNewPassword.setHorizontalAlignment(SwingConstants.TRAILING);
    lblNewPassword.setBounds(12, 80, 111, 22);
    getContentPane().add(lblNewPassword);
   
    lblVerifyPassword = new JLabel4j_std("Verify Password :");
    lblVerifyPassword.setHorizontalAlignment(SwingConstants.TRAILING);
    lblVerifyPassword.setBounds(12, 114, 111, 22);
    getContentPane().add(lblVerifyPassword);
    setVisible(true);
   
View Full Code Here

              dispose();
            }
          });
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setBounds(0, 10, 91, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(99, 10, 141, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Location_ID"));
          jLabel3.setBounds(0, 37, 91, 21);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldLocation = new JTextField4j();
          jDesktopPane1.add(jTextFieldLocation);
          jTextFieldLocation.setBounds(99, 37, 141, 21);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Sort_By"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(0, 92, 91, 21);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "MATERIAL", "LOCATION_ID", "STATUS" });
          jComboBoxSortBy = new JComboBox4j();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(99, 92, 141, 23);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_Location_Status"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(0, 65, 91, 21);
        }
        {
          ComboBoxModel jComboBoxStatusModel = new DefaultComboBoxModel(Common.locationStatusIncBlank);
          jComboBoxStatus = new JComboBox4j();
          jDesktopPane1.add(jComboBoxStatus);
          jComboBoxStatus.setModel(jComboBoxStatusModel);
          jComboBoxStatus.setBounds(99, 65, 141, 23);
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(246, 92, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }

        {
          jButtonLookupMaterial = new JButton4j();
          jButtonLookupMaterial.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent e)
            {
              JLaunchLookup.dlgAutoExec = false;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.materials())
              {
                jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
              }
            }
          });
          jButtonLookupMaterial.setBounds(246, 10, 21, 21);
          jDesktopPane1.add(jButtonLookupMaterial);
        }

        {
          jButtonLookupLocation = new JButton4j();
          jButtonLookupLocation.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent e)
            {
              JLaunchLookup.dlgCriteriaDefault = "Y";
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.locations())
              {
                jTextFieldLocation.setText(JLaunchLookup.dlgResult);
              }

            }
          });
          jButtonLookupLocation.setBounds(246, 37, 21, 21);
          jDesktopPane1.add(jButtonLookupLocation);
        }

        {
          jButtonAdd = new JButton4j(Common.icon_add);
          jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_LOCATION_ADD"));
          jButtonAdd.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              addRecord();
            }
          });
          jButtonAdd.setText(lang.get("btn_Add"));
          jButtonAdd.setMnemonic(lang.getMnemonicChar());
          jButtonAdd.setBounds(138, 125, 126, 28);
          jDesktopPane1.add(jButtonAdd);
        }

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

          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(125, 11, 125, 20);
        }
        {
          JLabel4j_std lblInspectionID = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
          lblInspectionID.setBounds(34, 115, 83, 16);
          jDesktopPane1.add(lblInspectionID);
          lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          textFieldInspectionID = new JTextField4j();
          textFieldInspectionID.setBounds(126, 110, 117, 28);
          jDesktopPane1.add(textFieldInspectionID);
          textFieldInspectionID.setColumns(10);
       
        {
          ComboBoxModel<JDBMaterialType> jComboBox1Model = new DefaultComboBoxModel<JDBMaterialType>(typeList);
          jComboBoxMaterialType = new JComboBox4j<JDBMaterialType>();
          jDesktopPane1.add(jComboBoxMaterialType);
          jComboBoxMaterialType.setModel(jComboBox1Model);
          jComboBoxMaterialType.setBounds(382, 8, 248, 23);
        }
        {
          jTextFieldDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldDescription);
          jTextFieldDescription.setBounds(126, 44, 506, 20);
        }
        {
          jLabel1 = new JLabel4j_std();
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setBounds(12, 11, 105, 20);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material_Type"));
          jLabel2.setBounds(260, 11, 115, 20);
        }
        {
          jLabel3 = new JLabel4j_std();
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setBounds(12, 44, 106, 20);
        }
        {
          ComboBoxModel<JDBUom> jComboBox2Model = new DefaultComboBoxModel<JDBUom>(uomList);
          jComboBoxBaseUOM = new JComboBox4j<JDBUom>();
          jDesktopPane1.add(jComboBoxBaseUOM);
          jComboBoxBaseUOM.setModel(jComboBox2Model);
          jComboBoxBaseUOM.setBounds(126, 77, 154, 23);
          jComboBoxBaseUOM.setMaximumRowCount(12);
        }
        {
          jLabel4 = new JLabel4j_std();
          jLabel4.setHorizontalAlignment(SwingConstants.RIGHT);
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Base_UOM"));
          jLabel4.setBounds(12, 80, 106, 20);
        }
        {
          jButtonAdd = new JButton4j(Common.icon_add);
          jDesktopPane1.add(jButtonAdd);
          jButtonAdd.setText(lang.get("btn_Add"));
          jButtonAdd.setBounds(215, 143, 109, 32);
          jButtonAdd.setMnemonic(lang.getMnemonicChar());
          jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_ADD"));
          jButtonAdd.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              addRecord();
            }
          });
        }
        {
          jButtonEdit = new JButton4j(Common.icon_edit);
          jDesktopPane1.add(jButtonEdit);
          jButtonEdit.setText(lang.get("btn_Edit"));
          jButtonEdit.setBounds(323, 143, 109, 32);
          jButtonEdit.setMnemonic(lang.getMnemonicChar());
          jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_EDIT"));
          jButtonEdit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              editRecord();
            }
          });
        }
        {
          jButtonDelete = new JButton4j(Common.icon_delete);
          jDesktopPane1.add(jButtonDelete);
          jButtonDelete.setText(lang.get("btn_Delete"));
          jButtonDelete.setBounds(431, 143, 109, 32);
          jButtonDelete.setMnemonic(lang.getMnemonicChar());
          jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_DELETE"));
          jButtonDelete.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              deleteRecord();
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setBounds(755, 143, 109, 32);
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Material_Shelf_Life"));
          jLabel7.setBounds(650, 11, 154, 20);
          jLabel7.setHorizontalAlignment(SwingConstants.RIGHT);
        }
        {
          jTextFieldShelfLife = new JTextField4j();
          jDesktopPane1.add(jTextFieldShelfLife);
          jTextFieldShelfLife.setBounds(812, 11, 125, 20);
        }
        {

          JShelfLifeUom slu = new JShelfLifeUom();
          slu.setUom("");
          slu.setDescription("");
          shelfLifeUomList.add(slu);
          shelfLifeUomList.addAll(slu.getShelfLifeUOMs());
          ComboBoxModel<JShelfLifeUom> jComboBox5Model = new DefaultComboBoxModel<JShelfLifeUom>(shelfLifeUomList);
          jComboBoxShelfLifeUOM = new JComboBox4j<JShelfLifeUom>();
          jDesktopPane1.add(jComboBoxShelfLifeUOM);
          jComboBoxShelfLifeUOM.setModel(jComboBox5Model);
          jComboBoxShelfLifeUOM.setBounds(813, 41, 125, 23);
          jComboBoxShelfLifeUOM.setMaximumRowCount(12);
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText(lang.get("lbl_Material_Shelf_Life_UOM"));
          jLabel8.setBounds(650, 44, 153, 20);
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(863, 143, 109, 32);
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              JDBQuery.closeStatement(listStatement);
              dispose();
            }
          });
        }
        {
          jButtonPrint = new JButton4j(Common.icon_report);
          jDesktopPane1.add(jButtonPrint);
          jButtonPrint.setText(lang.get("btn_Print"));
          jButtonPrint.setBounds(539, 143, 109, 32);
          jButtonPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_MATERIALS"));
          jButtonPrint.setMnemonic(lang.getMnemonicChar());
          jButtonPrint.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              print();
            }
          });
        }
        {
          JShelfLifeRoundingRule slrr = new JShelfLifeRoundingRule();
          slrr.setRule("");
          slrr.setDescription("");
          shelfLifeRule.add(slrr);
          shelfLifeRule.addAll(slrr.getShelfLifeRoundingRules());
          ComboBoxModel<JShelfLifeRoundingRule> jComboBoxRoundingRuleModel = new DefaultComboBoxModel<JShelfLifeRoundingRule>(shelfLifeRule);
          jComboBoxRoundingRule = new JComboBox4j<JShelfLifeRoundingRule>();
          jDesktopPane1.add(jComboBoxRoundingRule);
          jComboBoxRoundingRule.setModel(jComboBoxRoundingRuleModel);
          jComboBoxRoundingRule.setBounds(814, 77, 125, 23);
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText(lang.get("lbl_Material_Shelf_Life_Rounding_Rule"));
          jLabel9.setBounds(650, 80, 157, 20);
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Sort_By"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(358, 110, 98, 20);
        }
        {
          ComboBoxModel<String> jComboBoxSortByModel = new DefaultComboBoxModel<String>(new String[] { "MATERIAL", "MATERIAL_TYPE", "DESCRIPTION", "BASE_UOM", "PRODUCTION_UOM", "ISSUE_UOM", "SHELF_LIFE", "SHELF_LIFE_RULE", "DEFAULT_PALLET_STATUS",
              "DEFAULT_BATCH_STATUS" });
          jComboBoxSortBy = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(464, 110, 168, 23);
        }
        {
          jLabel12 = new JLabel4j_std();
          jDesktopPane1.add(jLabel12);
          jLabel12.setText(lang.get("lbl_Material_Default_Batch_Status"));
          jLabel12.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel12.setBounds(383, 80, 112, 20);
        }
        {
          ComboBoxModel<String> jComboBoxDefaultBatchStatusModel = new DefaultComboBoxModel<String>(Common.batchStatusIncBlank);
          jComboBoxDefaultBatchStatus = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxDefaultBatchStatus);
          jComboBoxDefaultBatchStatus.setModel(jComboBoxDefaultBatchStatusModel);
          jComboBoxDefaultBatchStatus.setBounds(505, 77, 126, 23);
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(639, 110, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }

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

    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setBackground(Color.WHITE);
    desktopPane.setBounds(0, 0, 593, 314);
    getContentPane().add(desktopPane);
   
    JLabel4j_std lblInspectionID = new JLabel4j_std(lang.get("lbl_Test_ID"));
    lblInspectionID.setBounds(8, 27, 92, 16);
    desktopPane.add(lblInspectionID);
    lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldITestD = new JTextField4j();
    textFieldITestD.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldITestD.setEnabled(false);
    textFieldITestD.setBounds(112, 22, 231, 28);
    desktopPane.add(textFieldITestD);
    textFieldITestD.setColumns(10);
   
   
    textFieldDescription = new JTextField4j();
    textFieldDescription.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldDescription.setBounds(112, 55, 463, 28);
    desktopPane.add(textFieldDescription);
    textFieldDescription.setColumns(10);
   

   
    btnSave = new JButton4j(lang.get("btn_Save"));
    btnSave.setEnabled(false);
    btnSave.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        save();
      }
    });
    btnSave.setIcon(Common.icon_save);
    btnSave.setBounds(175, 263, 117, 29);
    desktopPane.add(btnSave);
   
    btnClose = new JButton4j(lang.get("btn_Close"));
    btnClose.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        dispose();
      }
    });
    btnClose.setIcon(Common.icon_close);
    btnClose.setBounds(304, 263, 117, 29);
    desktopPane.add(btnClose);
   
    JLabel4j_std lblDescription = new JLabel4j_std(lang.get("lbl_Description"));
    lblDescription.setHorizontalAlignment(SwingConstants.TRAILING);
    lblDescription.setBounds(8, 60, 92, 16);
    desktopPane.add(lblDescription);
   
    JLabel4j_std lblDataType = new JLabel4j_std(lang.get("lbl_DataType"));
    lblDataType.setHorizontalAlignment(SwingConstants.TRAILING);
    lblDataType.setBounds(8, 97, 92, 16);
    desktopPane.add(lblDataType);
   
    ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(Common.dataTypes);
    comboBoxDataType = new JComboBox4j();
    comboBoxDataType.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        enableSave();
      }
    });
    comboBoxDataType.setModel(jComboBox1Model);
    comboBoxDataType.setBounds(111, 94, 153, 27);
    desktopPane.add(comboBoxDataType);
 
    comboBoxSelectList = new JComboBox4j();
    comboBoxSelectList.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        enableSave();
      }
    });
    comboBoxSelectList.addItem("");
    LinkedList<String> items = new LinkedList<String>();
    items = slist.getSelectListSummary();
   
    if (dict.getSelectListID().equals("")==false)
    {
      if (items.contains(dict.getSelectListID())==false)
      {
        items.addFirst(dict.getSelectListID());
      }
    }
   
    for (int x=0;x<items.size();x++)
    {
      comboBoxSelectList.addItem(items.get(x));
    }

    comboBoxSelectList.setBounds(112, 133, 153, 27);
    desktopPane.add(comboBoxSelectList);
   
    JLabel4j_std lblSelectListID = new JLabel4j_std(lang.get("lbl_List_ID"));
    lblSelectListID.setHorizontalAlignment(SwingConstants.TRAILING);
    lblSelectListID.setBounds(8, 138, 92, 16);
    desktopPane.add(lblSelectListID);
   
    chckbxVisible = new JCheckBox("");
    chckbxVisible.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        enableSave();
      }
    });
    chckbxVisible.setSelected(true);
    chckbxVisible.setBounds(112, 172, 28, 23);
    desktopPane.add(chckbxVisible);
   
    JLabel4j_std lblVisible = new JLabel4j_std(lang.get("lbl_Visible"));
    lblVisible.setHorizontalAlignment(SwingConstants.TRAILING);
    lblVisible.setBounds(8, 179, 92, 16);
    desktopPane.add(lblVisible);
   
    JLabel4j_std lblUOM = new JLabel4j_std(lang.get("lbl_Material_UOM"));
    lblUOM.setHorizontalAlignment(SwingConstants.TRAILING);
    lblUOM.setBounds(8, 213, 92, 16);
    desktopPane.add(lblUOM);
   
    textFieldUOM = new JTextField4j();
    textFieldUOM.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0) {
        enableSave();
      }
    });
    textFieldUOM.setText("");
    textFieldUOM.setColumns(10);
    textFieldUOM.setBounds(112, 206, 143, 28);
    desktopPane.add(textFieldUOM);
   
    spinnerWidth = new JSpinner();

    spinnerWidth.setBounds(494, 132, 68, 28);
    JSpinner.NumberEditor ne_spinnerWidth = new JSpinner.NumberEditor(spinnerWidth);
    ne_spinnerWidth.getTextField().addKeyListener(new KeyAdapter() {
      @Override
      public void keyPressed(KeyEvent e) {
        enableSave();
      }
    });

    ne_spinnerWidth.getTextField().setFont(Common.font_std);
    spinnerWidth.setEditor(ne_spinnerWidth);
    spinnerWidth.setValue(50);
    spinnerWidth.addChangeListener(new ChangeListener() {
      public void stateChanged(ChangeEvent e) {
        enableSave();
      }
    });
   
    desktopPane.add(spinnerWidth);

   
    JLabel4j_std label4j_std = new JLabel4j_std("Width");
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std.setBounds(392, 136, 92, 16);
    desktopPane.add(label4j_std);
   
    comboBoxAlignment = new JComboBox4j(fieldAlignment);
    comboBoxAlignment.setBounds(464, 94, 98, 27);
    desktopPane.add(comboBoxAlignment);
   
    // ****************** //
    
    textFieldITestD.setText(testid);

    textFieldDescription.setText(dict.getDescription());
   
    comboBoxDataType.setSelectedItem(dict.getDataType());
    comboBoxSelectList.setSelectedItem(dict.getSelectListID());
   
    if (dict.getVisible().equals("Y"))
      chckbxVisible.setSelected(true);
    else
      chckbxVisible.setSelected(false);
   
    textFieldUOM.setText(dict.getUOM());
   
    spinnerWidth.setValue(dict.getFieldWidth());

    if (testid.equals(""))
    {
      textFieldITestD.setEnabled(true);
     
      SwingUtilities.invokeLater(new Runnable()
      {
        public void run()
        {
          textFieldITestD.requestFocus();
          textFieldITestD.setCaretPosition(textFieldITestD.getText().length());
        }
      });
     

    }
    else
    {
      textFieldITestD.setEnabled(false);
     
      SwingUtilities.invokeLater(new Runnable()
      {
        public void run()
        {
          textFieldDescription.requestFocus();
          textFieldDescription.setCaretPosition(textFieldDescription.getText().length());
        }
      });
     

    }
   
    comboBoxAlignment.setSelectedItem(dict.getFieldAlignment());

    btnSave.setEnabled(false);
   
    JLabel4j_std label4j_std_1 = new JLabel4j_std("Width");
    label4j_std_1.setText("Align");
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(364, 97, 92, 16);
    desktopPane.add(label4j_std_1);
   

  }
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.