Package com.commander4j.gui

Examples of com.commander4j.gui.JTextField4j


          btnExcel.setMnemonic(lang.getMnemonicChar());
          btnExcel.setBounds(516, 155, 101, 28);
          jDesktopPane1.add(btnExcel);
        }
        {
          jTextFieldRecorder = new JTextField4j();
          jTextFieldRecorder.setEditable(false);
          jDesktopPane1.add(jTextFieldRecorder);
          jTextFieldRecorder.setBounds(452, 7, 121, 21);
        }
        {
          jLabelComment = new JLabel4j_std();
          jDesktopPane1.add(jLabelComment);
          jLabelComment.setText(lang.get("lbl_Comment"));
          jLabelComment.setBounds(13, 123, 79, 21);
          jLabelComment.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldComment = new JTextField4j();
          jDesktopPane1.add(jTextFieldComment);
          jTextFieldComment.setBounds(101, 123, 610, 21);
        }
        {
          jScrollPane1 = new JScrollPane();
          jDesktopPane1.add(jScrollPane1);
          jScrollPane1.setBounds(0, 190, 985, 334);
          {
            TableModel jTable1Model = new DefaultTableModel(new String[][] { { "One", "Two" }, { "Three", "Four" } }, new String[] { "Column 1", "Column 2" });
            jTable1 = new JTable();
            jTable1.setToolTipText("Update decision by selecting one or more rows and then use the mouse right click popup menu options. ");
            jTable1.setDefaultRenderer(Object.class, new TableCellRenderer_MHNPallet());
            jScrollPane1.setViewportView(jTable1);

            jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            jTable1.getTableHeader().setFont(Common.font_table_header);
            jTable1.addMouseListener(new MouseAdapter()
            {
              public void mouseClicked(MouseEvent evt)
              {
                if (evt.getClickCount() == 2)
                {
                  if (Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_EDIT"))
                  {
                    editRecord();
                  }
                }
              }
            });
            jTable1.setModel(jTable1Model);

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

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

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

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_delete);
                newItemMenuItem.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_DELETE"));
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    deleteRecord();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Delete"));
                popupMenu.add(newItemMenuItem);
              }
              {
                menu = new JMenu4j(lang.get("btn_Decision_Assign"));
                popupMenu.add(menu);
                {
                  for (int x = 0; x < decisionList.size(); x++)
                  {
                    final int xx = x;
                    menuItem = new JMenuItem4j(decisionList.get(x).getDecision());
                    menuItem.addActionListener(new ActionListener()
                    {
                      public void actionPerformed(ActionEvent e)
                      {

                        int rowCount = jTable1.getSelectedRowCount();

                        if (rowCount >= 0)
                        {
                          int[] rows = jTable1.getSelectedRows();

                          JDBPallet temp = new JDBPallet(Common.selectedHostID, Common.sessionID);

                          int n = JOptionPane.showConfirmDialog(Common.mainForm, "Update Decision  of " + String.valueOf(rowCount) + " SSCC(s) from Master Hold Notice "
                              + jTextFieldMHN.getText() + " to " + decisionList.get(xx).getDescription() + " ?", "Confirm", JOptionPane.YES_NO_OPTION);
                          if (n == 0)
                          {
                            save();
                            for (int l = 0; l < rows.length; l++)
                            {
                              String sscc = jTable1.getValueAt(rows[l], JDBMHNPalletTableModelProperties.SSCC_Col).toString();
                              temp.getPalletProperties(sscc);
                              temp.updateMHNDecision(decisionList.get(xx).getDecision());
                              if (decisionList.get(xx).getStatus().equals("")==false)
                              {
                                temp.updateStatus(decisionList.get(xx).getStatus());

                                jStatusText.setText("SSCC "+sscc+" updated to  "+decisionList.get(xx).getStatus());
                                Rectangle progressRect = jStatusText.getBounds()
                                progressRect.x = 0
                                progressRect.y = 0
                                jStatusText.paintImmediately( progressRect );
                              }
                            }
                            buildSQL();
                            populateList();

                          }
                        }
                      }
                    });
                    menu.add(menuItem);
                  }
                }

              }

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

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

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

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

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

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

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

              }

            }
          }
        }
        {
          jLabelInitiator = new JLabel4j_std();
          jDesktopPane1.add(jLabelInitiator);
          jLabelInitiator.setText(lang.get("lbl_Initiator"));
          jLabelInitiator.setBounds(575, 7, 79, 21);
          jLabelInitiator.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldInitiator = new JTextField4j();
          jTextFieldInitiator.setEditable(false);
          jDesktopPane1.add(jTextFieldInitiator);
          jTextFieldInitiator.setBounds(661, 7, 94, 21);
        }
        {
          jTextFieldMHN = new JTextField4j();
          jTextFieldMHN.setForeground(Color.RED);
          jTextFieldMHN.setEditable(false);
          jDesktopPane1.add(jTextFieldMHN);
          jTextFieldMHN.setBounds(101, 7, 87, 21);
        }
        {
          jLabelMHN = new JLabel4j_std();
          jDesktopPane1.add(jLabelMHN);
          jLabelMHN.setText(lang.get("lbl_MHN_Number"));
          jLabelMHN.setBounds(5, 5, 87, 21);
          jLabelMHN.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabelResource = new JLabel4j_std();
          jDesktopPane1.add(jLabelResource);
          jLabelResource.setText(lang.get("lbl_Process_Order_Required_Resource"));
          jLabelResource.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelResource.setBounds(372, 37, 173, 21);
        }
        {
          jTextFieldResource = new JTextField4j();
          jDesktopPane1.add(jTextFieldResource);
          jTextFieldResource.setBounds(562, 37, 121, 21);
        }
        {
          jLabelReason = new JLabel4j_std();
View Full Code Here


        jDesktopPane1 = new JDesktopPane();
        jDesktopPane1.setBackground(Common.color_edit_properties);
        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(462, 497));
        {
          jTextFieldSampleID = new JTextField4j();
          jTextFieldSampleID.addKeyListener(new KeyAdapter()
          {
            public void keyReleased(final KeyEvent e)
            {
              refresh();
            }
          });
          jDesktopPane1.setLayout(null);
          jDesktopPane1.add(jTextFieldSampleID);
          jTextFieldSampleID.setEditable(true);
          jTextFieldSampleID.setEnabled(true);
          jTextFieldSampleID.setBounds(147, 12, 77, 21);
        }
        {
          jButtonSave = new JButton4j(Common.image_update);
          jDesktopPane1.add(jButtonSave);
          jButtonSave.setEnabled(true);
          jButtonSave.setText(lang.get("btn_Save"));
          jButtonSave.setMnemonic(lang.getMnemonicChar());
          jButtonSave.setBounds(111, 333, 100, 32);
          jButtonSave.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {

              updateRecord();
            }
          });
        }
        {
          jButtonCancel = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonCancel);
          jButtonCancel.setText(lang.get("btn_Close"));
          jButtonCancel.setMnemonic(lang.getMnemonicChar());
          jButtonCancel.setBounds(315, 333, 100, 32);
          jButtonCancel.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              dispose();
            }
          });
        }

        {
          lblSampleID = new JLabel4j_std();
          jDesktopPane1.add(lblSampleID);
          lblSampleID.setText(lang.get("lbl_SampleID"));
          lblSampleID.setBounds(7, 14, 133, 21);
          lblSampleID.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          lblUserData2 = new JLabel4j_std();
          jDesktopPane1.add(lblUserData2);
          lblUserData2.setBounds(7, 250, 133, 21);
          lblUserData2.setHorizontalAlignment(SwingConstants.TRAILING);
          lblUserData2.setText(lang.get("lbl_User_Data2"));
        }

        {
          lblMaterial = new JLabel4j_std();
          jDesktopPane1.add(lblMaterial);
          lblMaterial.setText(lang.get("lbl_Material"));
          lblMaterial.setHorizontalAlignment(SwingConstants.TRAILING);
          lblMaterial.setBounds(7, 118, 133, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(147, 116, 119, 21);
          jTextFieldMaterial.setEnabled(false);
        }
        {
          lblActivityID = new JLabel4j_std();
          jDesktopPane1.add(lblActivityID);
          lblActivityID.setText(lang.get("lbl_Activity_ID"));
          lblActivityID.setHorizontalAlignment(SwingConstants.TRAILING);
          lblActivityID.setBounds(7, 196, 133, 21);
        }
        {
          jTextFieldActivityID = new JTextField4j();
          jDesktopPane1.add(jTextFieldActivityID);
          jTextFieldActivityID.setBounds(147, 194, 119, 21);
          jTextFieldActivityID.setEnabled(false);
        }

        {
          lblProcessOrder = new JLabel4j_std();
          jDesktopPane1.add(lblProcessOrder);
          lblProcessOrder.setText(lang.get("lbl_Process_Order"));
          lblProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
          lblProcessOrder.setBounds(7, 66, 133, 21);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setBounds(147, 64, 119, 21);
          jTextFieldProcessOrder.setEnabled(false);

        }
        {
          jTextFieldUserData2 = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserData2);
          jTextFieldUserData2.setBounds(147, 246, 119, 21);
          jTextFieldUserData2.setFocusCycleRoot(true);
        }
        {
          lblUserData1 = new JLabel4j_std();
          jDesktopPane1.add(lblUserData1);
          lblUserData1.setText(lang.get("lbl_User_Data1"));
          lblUserData1.setHorizontalAlignment(SwingConstants.TRAILING);
          lblUserData1.setBounds(7, 224, 133, 21);
        }

        {
          jTextFieldProcessOrderDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrderDescription);
          jTextFieldProcessOrderDescription.setBounds(147, 90, 287, 21);
          jTextFieldProcessOrderDescription.setEnabled(false);
        }
        {
          lblProcessOrderDescription = new JLabel4j_std();
          jDesktopPane1.add(lblProcessOrderDescription);
          lblProcessOrderDescription.setText(lang.get("lbl_Description"));
          lblProcessOrderDescription.setHorizontalAlignment(SwingConstants.TRAILING);
          lblProcessOrderDescription.setBounds(7, 92, 133, 21);
        }
        {
          lblMaterialDescription = new JLabel4j_std();
          jDesktopPane1.add(lblMaterialDescription);
          lblMaterialDescription.setText(lang.get("lbl_Description"));
          lblMaterialDescription.setHorizontalAlignment(SwingConstants.TRAILING);
          lblMaterialDescription.setBounds(7, 144, 133, 21);
        }
        {
          jTextFieldMaterialDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterialDescription);
          jTextFieldMaterialDescription.setBounds(147, 142, 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, 373, 510, 21);
        }

        {
          jTextFieldUserData1 = new JTextField4j();
          jTextFieldUserData1.setFocusCycleRoot(true);
          jTextFieldUserData1.setBounds(147, 220, 119, 21);
          jDesktopPane1.add(jTextFieldUserData1);
        }

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

        {
          jTextFieldInspectionID = new JTextField4j();
          jTextFieldInspectionID.setBounds(147, 168, 119, 21);
          jTextFieldInspectionID.setEnabled(false);
          jDesktopPane1.add(jTextFieldInspectionID);
        }
       
View Full Code Here

          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(22, 22, 175, 21);
        }
        {
          jTextFieldID = new JTextField4j();
          jDesktopPane1.add(jTextFieldID, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldID.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldID.setEditable(false);
          jTextFieldID.setEnabled(false);
          jTextFieldID.setBounds(204, 22, 141, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel3.setText(lang.get("lbl_Customer_Name"));
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3.setBounds(22, 55, 175, 21);
        }

        {
          jTextFieldName = new JTextField4j();
          jDesktopPane1.add(jTextFieldName, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldName.setBounds(204, 55, 244, 21);
          jTextFieldName.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
View Full Code Here

      jPanelProcessOrder.setBounds(7, 7, 748, 112);
      jPanelProcessOrder.setBorder(BorderFactory.createTitledBorder(lang.get("lbl_Process_Order")));
      jPanelProcessOrder.setLayout(null);

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

        AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
        doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
        jTextFieldProcessOrder.setBounds(161, 21, 119, 21);
        jTextFieldProcessOrder.addKeyListener(new KeyAdapter() {
          public void keyReleased(KeyEvent evt)
          {
            processOrderChanged(jTextFieldProcessOrder.getText());
          }
        });
      }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        checkBoxIncHeaderText = new JCheckBox4j();
        checkBoxIncHeaderText.setSelected(true);
        checkBoxIncHeaderText.setBackground(Color.WHITE);
        checkBoxIncHeaderText.setBounds(139, 44, 21, 21);
        panel.add(checkBoxIncHeaderText);

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

        calendarButtonjSpinnerExpiryDate = new JCalendarButton(jSpinnerExpiryDate);
View Full Code Here

    JLabel4j_std lblActivityID = new JLabel4j_std(lang.get("lbl_Activity_ID"));
    lblActivityID.setBounds(6, 67, 89, 16);
    desktopPane.add(lblActivityID);
    lblActivityID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.setEnabled(false);
    textFieldInspectionID.setBounds(108, 22, 153, 28);
    desktopPane.add(textFieldInspectionID);
    textFieldInspectionID.setColumns(10);
   
   
    textFieldInspectionDescription = new JTextField4j();
    textFieldInspectionDescription.setEnabled(false);
    textFieldInspectionDescription.setBounds(377, 22, 463, 28);
    desktopPane.add(textFieldInspectionDescription);
    textFieldInspectionDescription.setColumns(10);
   

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

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

          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(6, 17, 175, 21);
        }
        {
          jTextFieldType = new JTextField4j();
          desktopPane.add(jTextFieldType, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldType.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldType.setEditable(false);
          jTextFieldType.setEnabled(false);
          jTextFieldType.setBounds(185, 17, 104, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          desktopPane.add(jLabel3, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3.setBounds(6, 49, 175, 21);
        }
        {
          jTextFieldDescription = new JTextField4j();
          desktopPane.add(jTextFieldDescription, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldDescription.setBounds(185, 49, 238, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt)
            {
View Full Code Here

    JLabel4j_std lblIMaterial = new JLabel4j_std(lang.get("lbl_Material"));
    lblIMaterial.setBounds(8, 27, 114, 28);
    desktopPane.add(lblIMaterial);
    lblIMaterial.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldMaterialID = new JTextField4j();
    textFieldMaterialID.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldMaterialID.setEnabled(false);
    textFieldMaterialID.setBounds(134, 27, 153, 28);
    desktopPane.add(textFieldMaterialID);
    textFieldMaterialID.setText(material);
   
   
    textFieldData = new JTextField4j();
    textFieldData.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldData.setBounds(299, 106, 537, 28);
    desktopPane.add(textFieldData);
   
    btnSave = new JButton4j(lang.get("btn_Save"));
    btnSave.setEnabled(false);
    btnSave.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        save();
      }
    });
    btnSave.setIcon(Common.icon_update);
    btnSave.setBounds(296, 150, 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(417, 150, 117, 29);
    desktopPane.add(btnClose);
   
    JLabel4j_std label4j_std_1 = new JLabel4j_std(lang.get("lbl_Data_ID"));
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(8, 106, 114, 28);
    desktopPane.add(label4j_std_1);
   
    material = JUtility.replaceNullStringwithBlank(material);
   
    textFieldMaterialID.setText(material);
 
    textFieldCustomerID.setEnabled(false);
    textFieldCustomerID.setBounds(134, 67, 153, 28);
    textFieldCustomerID.setText(customer);
    desktopPane.add(textFieldCustomerID);
   
    JLabel4j_std label4j_std = new JLabel4j_std(lang.get("lbl_Customer_ID"));
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std.setBounds(8, 67, 114, 28);
    desktopPane.add(label4j_std);
   

    textFieldMaterialDescription.setEnabled(false);
    textFieldMaterialDescription.setBounds(299, 27, 537, 28);
    desktopPane.add(textFieldMaterialDescription);
   
    textFieldCustomerDescription.setEnabled(false);
    textFieldCustomerDescription.setBounds(299, 67, 537, 28);
    desktopPane.add(textFieldCustomerDescription);
   
    JTextField4j textFieldDataID = new JTextField4j();
    textFieldDataID.setEnabled(false);
    textFieldDataID.setBounds(134, 106, 153, 28);
    textFieldDataID.setText(dataid);
    desktopPane.add(textFieldDataID);

    matcustdata.getMaterialCustomerDataProperties(lmaterial,lcustomer,ldataid);
    textFieldData.setText(matcustdata.getData());
    mat.getMaterialProperties(material);
View Full Code Here

    try
    {

      {

        jTextFieldSSCC = new JTextField4j();
        jTextFieldSSCC.setHorizontalAlignment(SwingConstants.CENTER);
        jDesktopPane1.add(jTextFieldSSCC);
        jTextFieldSSCC.setEditable(false);
        jTextFieldSSCC.setEnabled(false);
        jTextFieldSSCC.setBounds(155, 10, 137, 21);
View Full Code Here

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

TOP

Related Classes of com.commander4j.gui.JTextField4j

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.