Package com.commander4j.gui

Examples of com.commander4j.gui.JTextField4j


          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


      jLabelAuthorisor.setHorizontalAlignment(SwingConstants.TRAILING);
      jLabelAuthorisor.setBounds(726, 8, 103, 21);
      jDesktopPane1.add(jLabelAuthorisor);
    }
    {
      jTextFieldAuthorisor = new JTextField4j();
      jTextFieldAuthorisor.setBounds(833, 8, 99, 21);
      jDesktopPane1.add(jTextFieldAuthorisor);
    }
   
    JLabel4j_std labelCreated = new JLabel4j_std();
View Full Code Here

          btnExcel.setMnemonic(lang.getMnemonicChar());
          btnExcel.setBounds(642, 118, 106, 28);
          jDesktopPane1.add(btnExcel);
        }
        {
          jTextFieldRecorder = new JTextField4j();
          jDesktopPane1.add(jTextFieldRecorder);
          jTextFieldRecorder.setBounds(350, 8, 99, 21);
        }
        {
          jLabelComment = new JLabel4j_std();
          jDesktopPane1.add(jLabelComment);
          jLabelComment.setText(lang.get("lbl_Comment"));
          jLabelComment.setBounds(2, 63, 102, 21);
          jLabelComment.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldComment = new JTextField4j();
          jDesktopPane1.add(jTextFieldComment);
          jTextFieldComment.setBounds(109, 63, 360, 21);
        }
        {
          jScrollPane1 = new JScrollPane();
          jScrollPane1.getViewport().setBackground(Common.color_tablebackground);
          jScrollPane1.setToolTipText("");
          jDesktopPane1.add(jScrollPane1);
          jScrollPane1.setBounds(0, 152, 969, 343);
          {
            TableModel jTable1Model = new DefaultTableModel(new String[][] { { "One", "Two" }, { "Three", "Four" } }, new String[] { "Column 1", "Column 2" });
            jTable1 = new JTable();
            jTable1.setToolTipText("Update selected MHN by using the Edit option.");
            jTable1.setDefaultRenderer(Object.class, Common.renderer_table);
            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_find);
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    search();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Search"));
                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)
                  {
                    create();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Add"));
                popupMenu.add(newItemMenuItem);
              }

              {
                final JMenuItem4j newItemMenuItem = new JMenuItem4j(Common.icon_edit);
                newItemMenuItem.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MHN_EDIT"));
                newItemMenuItem.addActionListener(new ActionListener()
                {
                  public void actionPerformed(final ActionEvent e)
                  {
                    editRecord();
                  }
                });
                newItemMenuItem.setText(lang.get("btn_Edit"));
                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);
              }

              {
                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);
                }


              }

              {
                final JMenu4j filterByMenu = new JMenu4j();
                filterByMenu.setText("Filter by");
                popupMenu.add(filterByMenu);

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

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

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

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


                {
                  filterByMenu.addSeparator();
                }

                {
                  final JMenuItem4j newItemMenuItem = new JMenuItem4j();
                  newItemMenuItem.addActionListener(new ActionListener()
                  {
                    public void actionPerformed(final ActionEvent e)
                    {
                      clearFilter();
                    }
                  });
                  newItemMenuItem.setText(lang.get("btn_Clear_Filter"));
                  filterByMenu.add(newItemMenuItem);
                }
              }
            }
          }
        }
        {
          jLabelInitiator = new JLabel4j_std();
          jDesktopPane1.add(jLabelInitiator);
          jLabelInitiator.setText(lang.get("lbl_Initiator"));
          jLabelInitiator.setBounds(480, 8, 103, 21);
          jLabelInitiator.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldInitiator = new JTextField4j();
          jDesktopPane1.add(jTextFieldInitiator);
          jTextFieldInitiator.setBounds(592, 8, 99, 21);
        }
        {
          jTextFieldMHN = new JTextField4j();
          jDesktopPane1.add(jTextFieldMHN);
          jTextFieldMHN.setBounds(109, 8, 126, 21);
        }
        {
          jLabelMHN = new JLabel4j_std();
          jDesktopPane1.add(jLabelMHN);
          jLabelMHN.setText(lang.get("lbl_MHN_Number"));
          jLabelMHN.setBounds(2, 8, 102, 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(2, 90, 102, 21);
        }
        {
          jTextFieldResource = new JTextField4j();
          jDesktopPane1.add(jTextFieldResource);
          jTextFieldResource.setBounds(109, 90, 126, 21);
        }
        {
          jLabelReason = new JLabel4j_std();
          jDesktopPane1.add(jLabelReason);
          jLabelReason.setText(lang.get("lbl_Reason"));
          jLabelReason.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelReason.setBounds(2, 35, 102, 21);
        }
        {
          jTextFieldReason = new JTextField4j();
          jDesktopPane1.add(jTextFieldReason);
          jTextFieldReason.setBounds(109, 35, 105, 21);
        }
        {
          jLabelStatus = new JLabel4j_std();
View Full Code Here

          jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel6.setBounds(11, 34, 147, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldMaterial.setEditable(false);
          jTextFieldMaterial.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldMaterial.setBounds(165, 9, 113, 21);
          jTextFieldMaterial.setEnabled(false);
        }
        {
          jTextFieldUOM = new JTextField4j();
          jDesktopPane1.add(jTextFieldUOM);
          jTextFieldUOM.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldUOM.setEditable(false);
          jTextFieldUOM.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldUOM.setBounds(165, 34, 60, 21);
          jTextFieldUOM.setEnabled(false);
        }
        {
          jTextFieldEAN = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldEAN.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_ean));
          jDesktopPane1.add(jTextFieldEAN);
          jTextFieldEAN.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldEAN.setFocusCycleRoot(true);
          jTextFieldEAN.setBounds(165, 59, 175, 21);
          jTextFieldEAN.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {

              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jTextFieldVariant = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldVariant.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_variant));
          jDesktopPane1.add(jTextFieldVariant);
          jTextFieldVariant.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldVariant.setFocusCycleRoot(true);
View Full Code Here

    ComboBoxModel<String> jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel<String>(Common.palletStatusIncBlank);
    comboBoxPalletStatus.setModel(jComboBoxDefaultPalletStatusModel);
    comboBoxPalletStatus.setSelectedIndex(0);
    desktopPane.add(comboBoxPalletStatus);

    textFieldSSCC = new JTextField4j();
    textFieldSSCC.setBounds(672, 50, 143, 21);
    desktopPane.add(textFieldSSCC);

    final JLabel4j_std palletStatusLabel = new JLabel4j_std();
    palletStatusLabel.setText(lang.get("lbl_Pallet_Status"));
    palletStatusLabel.setBounds(672, 115, 128, 20);
    desktopPane.add(palletStatusLabel);

    final JLabel4j_std ssccLabel = new JLabel4j_std();
    ssccLabel.setText(lang.get("lbl_Pallet_SSCC"));
    ssccLabel.setBounds(672, 35, 128, 16);
    desktopPane.add(ssccLabel);

    textFieldMaterial = new JTextField4j();
    textFieldMaterial.setBounds(672, 90, 124, 21);
    desktopPane.add(textFieldMaterial);

    final JLabel4j_std materialLabel = new JLabel4j_std();
    materialLabel.setText(lang.get("lbl_Material"));
    materialLabel.setBounds(672, 75, 128, 16);
    desktopPane.add(materialLabel);

    textFieldBatch = new JTextField4j();
    textFieldBatch.setBounds(672, 175, 124, 21);
    desktopPane.add(textFieldBatch);

    final JLabel4j_std batchLabel = new JLabel4j_std();
    batchLabel.setText(lang.get("lbl_Batch"));
    batchLabel.setBounds(672, 160, 128, 16);
    desktopPane.add(batchLabel);
    buttonAssign.setEnabled(false);

    buttonAssign.setBounds(470, 150, 25, 25);
    buttonAssign.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (textFieldDespatchLocationTo.getText().equals(""))
        {
          jStatusText.setText("Please define Destination Location");
        }
        else
        {
          jStatusText.setText("");
          if (list_unassigned.getSelectedIndex() > -1)
          {
            String item = "";
            JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();

            for (int j = list_unassigned.getMaxSelectionIndex(); j >= list_unassigned.getMinSelectionIndex(); j--)
            {
              if (list_unassigned.isSelectedIndex(j))
              {
                item = (String) list_unassigned.getModel().getElementAt(j);

                if (d.assignSSCC(item))
                {
                  addtoList(assignedList, item);
                  removefromList(unassignedList, item);
                  jStatusText.setText("");
                }
                else
                {
                  jStatusText.setText(d.getErrorMessage());
                }
              }
            }

            list_assigned.setModel(addListtoModel(assignedList));
            list_unassigned.setModel(addListtoModel(unassignedList));
            textFieldNoOfPallets.setText(String.valueOf(assignedList.size()));

            d.setTotalPallets(assignedList.size());
            updateDespatch(d);
          }
        }
      }
    });
    desktopPane.add(buttonAssign);
    buttonUnAssign.setEnabled(false);

    buttonUnAssign.setBounds(470, 185, 25, 25);
    buttonUnAssign.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (list_assigned.getSelectedIndex() > -1)
        {
          String item = "";
          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();

          for (int j = list_assigned.getMaxSelectionIndex(); j >= list_assigned.getMinSelectionIndex(); j--)
          {
            if (list_assigned.isSelectedIndex(j))
            {
              item = (String) list_assigned.getModel().getElementAt(j);

              if (d.unassignSSCC(item))
              {
                removefromList(assignedList, item);
                addtoList(unassignedList, item);
              }
            }
          }

          list_assigned.setModel(addListtoModel(assignedList));
          list_unassigned.setModel(addListtoModel(unassignedList));
          textFieldNoOfPallets.setText(String.valueOf(assignedList.size()));

          d.setTotalPallets(assignedList.size());
          updateDespatch(d);
        }
      }
    });
    desktopPane.add(buttonUnAssign);

    newButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Despatch_Create"), lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);

        if (question == 0)
        {
          JDBDespatch d = new JDBDespatch(Common.selectedHostID, Common.sessionID);
          String number = "";
          number = d.generateNewDespatchNo();

          if (number.equals("") == false)
          {

            if (d.create())
            {
              d.updateUserID(number, Common.userList.getUser(Common.sessionID).getUserId());
              populateDespatchList(number);
              setConfirmButtonStatus();
            }
            else
            {
              JUtility.errorBeep();
              JOptionPane.showMessageDialog(Common.mainForm, d.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
            }
          }
          else
          {
            JUtility.errorBeep();
            JOptionPane.showMessageDialog(Common.mainForm, d.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE);
          }
        }
      }
    });
    newButton.setText(lang.get("btn_New"));
    newButton.setBounds(2, 388, 116, 30);
    desktopPane.add(newButton);

    deleteButton.setText(lang.get("btn_Delete"));
    deleteButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (list_despatch.getModel().getSize() > 0)
        {
          if (list_despatch.getSelectedIndex() >= 0)
          {
            JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();

            int question = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Despatch_Delete") + " " + d.getDespatchNo() + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);

            if (question == 0)
            {
              d.delete();
              populateDespatchList("");
              setConfirmButtonStatus();
            }
          }
        }
      }
    });
    deleteButton.setBounds(238, 388, 116, 30);
    desktopPane.add(deleteButton);

    findButton.setText(lang.get("btn_Find"));
    findButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        buildUnassignedSQL();
        populateUnassignedList(listStatement, "");
      }
    });
    findButton.setBounds(672, 298, 143, 30);
    desktopPane.add(findButton);

    final JButton4j printButton = new JButton4j(Common.icon_report);
    printButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (list_despatch.getModel().getSize() > 0)
        {
          if (list_despatch.getSelectedIndex() >= 0)
          {
            JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
            HashMap<String, Object> parameters = new HashMap<String, Object>();
            parameters.put("p_despatch_no", d.getDespatchNo());
            JLaunchReport.runReport("RPT_DESPATCH", parameters, "", null, "");
          }
        }
      }
    });
    printButton.setText(lang.get("btn_Print"));
    printButton.setBounds(474, 388, 116, 30);
    desktopPane.add(printButton);

    jLabel10 = new JLabel4j_std();
    jLabel10.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
    jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
    jLabel10.setText(lang.get("lbl_Limit"));
    jLabel10.setBounds(672, 244, 128, 21);
    desktopPane.add(jLabel10);

    jCheckBoxLimit = new JCheckBox4j();
    jCheckBoxLimit.setSelected(true);
    jCheckBoxLimit.setBackground(new Color(255, 255, 255));
    jCheckBoxLimit.setBounds(672, 264, 21, 21);
    desktopPane.add(jCheckBoxLimit);

    spinnerUnassignedLimit = new JSpinner();
    JSpinner.NumberEditor ne1 = new JSpinner.NumberEditor(spinnerUnassignedLimit);
    ne1.getTextField().setFont(Common.font_std);
    spinnerUnassignedLimit.setEditor(ne1);
    spinnerUnassignedLimit.setBounds(701, 264, 114, 20);
    spinnerUnassignedLimit.setValue(1000);
    desktopPane.add(spinnerUnassignedLimit);

    final JButton4j closeButton = new JButton4j(Common.icon_close);

    closeButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        dispose();
      }
    });
    closeButton.setText(lang.get("btn_Close"));
    closeButton.setMnemonic(lang.getMnemonicChar());
    closeButton.setBounds(710, 388, 116, 30);
    desktopPane.add(closeButton);

    jButtonHelp.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
      }
    });
    jButtonHelp.setText(lang.get("btn_Help"));
    jButtonHelp.setBounds(592, 388, 116, 30);
    desktopPane.add(jButtonHelp);

    //
    final JHelp help = new JHelp();
    help.enableHelpOnButton(jButtonHelp, JUtility.getHelpSetIDforModule("FRM_ADMIN_DESPATCH"));

    confirmButton.setText(lang.get("btn_Confirm"));
    confirmButton.setEnabled(false);
    confirmButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (list_despatch.getModel().getSize() > 0)
        {
          if (list_despatch.getSelectedIndex() >= 0)
          {
            JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();

            int n = JOptionPane.showConfirmDialog(Common.mainForm, lang.get("dlg_Despatch_Confirm") + " " + d.getDespatchNo() + " ?", lang.get("dlg_Confirm"), JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);

            if (n == 0)
            {
              d.getDespatchProperties();
              if (d.confirm())
              {
                populateDespatchList("");
                setConfirmButtonStatus();
              }
              else
              {
                JUtility.errorBeep();
                JOptionPane.showMessageDialog(Common.mainForm, d.getErrorMessage(), lang.get("dlg_Error"), JOptionPane.ERROR_MESSAGE,Common.icon_confirm);
                populateDespatchList("");
              }
            }
          }
        }
      }
    });

    confirmButton.setBounds(356, 388, 116, 30);
    desktopPane.add(confirmButton);

    final JLabel4j_title despatchesLabel = new JLabel4j_title();
    despatchesLabel.setText(lang.get("lbl_Despatches"));
    despatchesLabel.setBounds(10, 10, 75, 16);
    desktopPane.add(despatchesLabel);

    final JLabel4j_title unassignedLabel = new JLabel4j_title();
    unassignedLabel.setText(lang.get("lbl_Unassigned"));
    unassignedLabel.setBounds(510, 10, 150, 16);
    desktopPane.add(unassignedLabel);

    final JLabel4j_title assignedLabel = new JLabel4j_title();
    assignedLabel.setText(lang.get("lbl_Assigned"));
    assignedLabel.setBounds(310, 10, 150, 16);
    desktopPane.add(assignedLabel);

    final JLabel4j_title palletFilterCriteriaLabel = new JLabel4j_title();
    palletFilterCriteriaLabel.setText(lang.get("lbl_Unassigned_Filter"));
    palletFilterCriteriaLabel.setBounds(672, 15, 125, 16);
    desktopPane.add(palletFilterCriteriaLabel);

    final JButton4j refreshButton = new JButton4j(Common.icon_refresh);
    refreshButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        refresh();
      }
    });
    refreshButton.setText(lang.get("btn_Refresh"));
    refreshButton.setBounds(120, 388, 116, 30);
    desktopPane.add(refreshButton);

    SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel();
    jSpinnerIntModel.setMinimum(1);
    jSpinnerIntModel.setMaximum(50000);
    jSpinnerIntModel.setStepSize(1);
    JSpinner.NumberEditor ne2 = new JSpinner.NumberEditor(spinnerDespatchLimit);
    ne2.getTextField().setFont(Common.font_std);
    spinnerDespatchLimit.setEditor(ne2);
    spinnerDespatchLimit.setModel(jSpinnerIntModel);
    spinnerDespatchLimit.setBounds(100, 303, 60, 20);
    spinnerDespatchLimit.setValue(50);
    desktopPane.add(spinnerDespatchLimit);

    jLabel10_1 = new JLabel4j_std();
    jLabel10_1.setHorizontalAlignment(SwingConstants.TRAILING);
    jLabel10_1.setText(lang.get("lbl_Limit"));
    jLabel10_1.setBounds(15, 302, 70, 21);
    desktopPane.add(jLabel10_1);

    textFieldDespatchLocationFrom = new JTextField4j();
    textFieldDespatchLocationFrom.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (JUtility.isNullORBlank(textFieldDespatchLocationFrom.getText()) == true)
        {
          findButton.setEnabled(false);
        }
        else
        {
          findButton.setEnabled(true);
        }
      }
    });
    textFieldDespatchLocationFrom.setEditable(false);
    textFieldDespatchLocationFrom.setBounds(172, 51, 105, 20);
    desktopPane.add(textFieldDespatchLocationFrom);

    final JLabel4j_std locationLabel_1 = new JLabel4j_std();
    locationLabel_1.setText(lang.get("lbl_From_Location"));
    locationLabel_1.setBounds(172, 32, 100, 16);
    desktopPane.add(locationLabel_1);

    final JLabel4j_std palletStatusLabel_1 = new JLabel4j_std();
    palletStatusLabel_1.setText(lang.get("lbl_Despatch_Status"));
    palletStatusLabel_1.setBounds(170, 240, 105, 20);
    desktopPane.add(palletStatusLabel_1);

    textFieldDespatchStatus = new JTextField4j();
    textFieldDespatchStatus.setEditable(false);
    textFieldDespatchStatus.setBounds(170, 261, 128, 20);
    desktopPane.add(textFieldDespatchStatus);

    textFieldDespatchLocationTo = new JTextField4j();
    textFieldDespatchLocationTo.setEditable(false);
    textFieldDespatchLocationTo.setBounds(172, 91, 105, 20);
    desktopPane.add(textFieldDespatchLocationTo);

    final JLabel4j_std locationLabel_1_1 = new JLabel4j_std();
    locationLabel_1_1.setText(lang.get("lbl_To_Location"));
    locationLabel_1_1.setBounds(172, 75, 100, 16);
    desktopPane.add(locationLabel_1_1);

    final JLabel4j_std palletStatusLabel_1_1 = new JLabel4j_std();
    palletStatusLabel_1_1.setText(lang.get("lbl_Despatch_Date"));
    palletStatusLabel_1_1.setBounds(172, 285, 90, 20);
    desktopPane.add(palletStatusLabel_1_1);

    final JLabel4j_std palletStatusLabel_1_1_1 = new JLabel4j_std();
    palletStatusLabel_1_1_1.setText(lang.get("lbl_No_Of_Pallets"));
    palletStatusLabel_1_1_1.setBounds(172, 332, 120, 20);
    desktopPane.add(palletStatusLabel_1_1_1);

    textFieldNoOfPallets = new JTextField4j();
    textFieldNoOfPallets.setEditable(false);
    textFieldNoOfPallets.setBounds(172, 352, 60, 20);
    desktopPane.add(textFieldNoOfPallets);

    jTextFieldDespatchDate = new JTextField4j();
    jTextFieldDespatchDate.setEditable(false);
    jTextFieldDespatchDate.setBounds(172, 303, 125, 20);
    desktopPane.add(jTextFieldDespatchDate);

    jButtonLookupLocationFrom = new JButton4j(Common.icon_lookup);
    jButtonLookupLocationFrom.setEnabled(false);
    jButtonLookupLocationFrom.setBounds(277, 50, 21, 21);
    jButtonLookupLocationFrom.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        JLaunchLookup.dlgAutoExec = true;
        JLaunchLookup.dlgCriteriaDefault = "Y";

        if (JLaunchLookup.locations())
        {
          textFieldDespatchLocationFrom.setText(JLaunchLookup.dlgResult);

          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
          d.setLocationIDFrom(JLaunchLookup.dlgResult);
          updateDespatch(d);
        }
      }
    });
    desktopPane.add(jButtonLookupLocationFrom);

    jButtonLookupLocationTo = new JButton4j(Common.icon_lookup);
    jButtonLookupLocationTo.setEnabled(false);
    jButtonLookupLocationTo.setBounds(277, 90, 21, 21);
    jButtonLookupLocationTo.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        JLaunchLookup.dlgAutoExec = true;
        JLaunchLookup.dlgCriteriaDefault = "Y";

        if (JLaunchLookup.locations())
        {
          textFieldDespatchLocationTo.setText(JLaunchLookup.dlgResult);

          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
          d.setLocationIDTo(JLaunchLookup.dlgResult);
          updateDespatch(d);
        }
      }
    });
    desktopPane.add(jButtonLookupLocationTo);

    jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
    jButtonLookupMaterial.setBounds(795, 90, 21, 21);
    jButtonLookupMaterial.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        JLaunchLookup.dlgAutoExec = false;
        JLaunchLookup.dlgCriteriaDefault = "";

        if (JLaunchLookup.materials())
        {
          textFieldMaterial.setText(JLaunchLookup.dlgResult);
        }
      }
    });
    desktopPane.add(jButtonLookupMaterial);

    jButtonLookupBatch = new JButton4j(Common.icon_lookup);
    jButtonLookupBatch.setBounds(795, 175, 21, 21);
    jButtonLookupBatch.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        JLaunchLookup.dlgCriteriaDefault = textFieldMaterial.getText();
        JLaunchLookup.dlgAutoExec = true;

        if (JLaunchLookup.materialBatches())
        {
          textFieldBatch.setText(JLaunchLookup.dlgResult);
        }
      }
    });
    desktopPane.add(jButtonLookupBatch);

    confirmedRadioButton.setBackground(Color.WHITE);
    confirmedRadioButton.setText(lang.get("lbl_Confirmed"));
    confirmedRadioButton.setBounds(10, 327, 129, 24);
    confirmedRadioButton.setFont(Common.font_std);
    confirmedRadioButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        com.commander4j.util.JWait.milliSec(100);
        populateDespatchList("");
        refresh();
      }
    });

    desktopPane.add(confirmedRadioButton);

    unconfirmedRadioButton.setBackground(Color.WHITE);
    unconfirmedRadioButton.setText(lang.get("lbl_Unconfirmed"));
    unconfirmedRadioButton.setBounds(10, 352, 129, 24);
    unconfirmedRadioButton.setSelected(true);
    unconfirmedRadioButton.setFont(Common.font_std);
    unconfirmedRadioButton.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        com.commander4j.util.JWait.milliSec(100);
        populateDespatchList("");
        refresh();
        newButton.setEnabled(true);
      }
    });
    desktopPane.add(unconfirmedRadioButton);

    buttonGroup_1.add(unconfirmedRadioButton);
    buttonGroup_1.add(confirmedRadioButton);

    final JLabel4j_std palletStatusLabel_1_2 = new JLabel4j_std();
    palletStatusLabel_1_2.setText(lang.get("lbl_Trailer"));
    palletStatusLabel_1_2.setBounds(172, 115, 105, 20);
    desktopPane.add(palletStatusLabel_1_2);

    textFieldTrailer = new JTextField4j();
    textFieldTrailer.setEditable(false);
    textFieldTrailer.setBounds(172, 136, 105, 20);

    desktopPane.add(textFieldTrailer);

    final JLabel4j_std palletStatusLabel_1_2_1 = new JLabel4j_std();
    palletStatusLabel_1_2_1.setText(lang.get("lbl_Haulier"));
    palletStatusLabel_1_2_1.setBounds(172, 158, 105, 20);
    desktopPane.add(palletStatusLabel_1_2_1);

    textFieldHaulier = new JTextField4j();
    textFieldHaulier.setEditable(false);
    textFieldHaulier.setBounds(172, 176, 105, 20);
    desktopPane.add(textFieldHaulier);

    jButtonLookupTrailer = new JButton4j();
    jButtonLookupTrailer.setEnabled(false);
    jButtonLookupTrailer.setText("...");
    jButtonLookupTrailer.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        String trailer;
        trailer = JOptionPane.showInputDialog(Common.mainForm, "Enter Trailer Reference");

        if (trailer != null)
        {
          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
          d.setTrailer(trailer.toUpperCase());
          textFieldTrailer.setText(trailer.toUpperCase());
          updateDespatch(d);
        }
      }
    });
    jButtonLookupTrailer.setBounds(277, 135, 21, 21);
    desktopPane.add(jButtonLookupTrailer);

    jButtonLookupHaulier = new JButton4j();
    jButtonLookupHaulier.setEnabled(false);
    jButtonLookupHaulier.setText("...");
    jButtonLookupHaulier.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        String haulier;
        haulier = JOptionPane.showInputDialog(Common.mainForm, "Enter Haulier Reference");

        if (haulier != null)
        {
          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
          d.setHaulier(haulier.toUpperCase());
          textFieldHaulier.setText(haulier.toUpperCase());
          updateDespatch(d);
        }
      }
    });
    jButtonLookupHaulier.setBounds(277, 175, 21, 21);
    desktopPane.add(jButtonLookupHaulier);

    jStatusText = new JLabel4j_std("");
    jStatusText.setBounds(0, 428, 830, 21);
    jStatusText.setForeground(new java.awt.Color(255, 0, 0));
    jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    desktopPane.add(jStatusText);

    JLabel4j_std lblLoadNo = new JLabel4j_std();
    lblLoadNo.setText(lang.get("lbl_Load_No"));
    lblLoadNo.setBounds(172, 196, 105, 20);
    desktopPane.add(lblLoadNo);

    textFieldLoadNo = new JTextField4j();
    textFieldLoadNo.setText("");
    textFieldLoadNo.setEditable(false);
    textFieldLoadNo.setBounds(172, 216, 105, 20);
    desktopPane.add(textFieldLoadNo);

    jButtonLookupLoadNo = new JButton4j();
    jButtonLookupLoadNo.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent arg0)
      {
        String load;
        load = JOptionPane.showInputDialog(Common.mainForm, "Enter Load Number");

        if (load != null)
        {
          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
          d.setLoadNo(load.toUpperCase());
          textFieldLoadNo.setText(load.toUpperCase());
          updateDespatch(d);

        }

      }
    });
    jButtonLookupLoadNo.setText("...");
    jButtonLookupLoadNo.setEnabled(false);
    jButtonLookupLoadNo.setBounds(277, 215, 21, 21);
    desktopPane.add(jButtonLookupLoadNo);

    JLabel4j_std label = new JLabel4j_std();
    label.setText(lang.get("lbl_User_ID"));
    label.setBounds(672, 338, 128, 16);
    desktopPane.add(label);

    textFieldUserID = new JTextField4j();
    textFieldUserID.setText("");
    textFieldUserID.setEditable(false);
    textFieldUserID.setBounds(672, 356, 122, 20);
    desktopPane.add(textFieldUserID);

    buttonSetUserID = new JButton4j((Icon) null);
    buttonSetUserID.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        JLaunchLookup.dlgAutoExec = true;
        JLaunchLookup.dlgCriteriaDefault = "";

        if (JLaunchLookup.users())
        {
          textFieldUserID.setText(JLaunchLookup.dlgResult);

          JDBDespatch d = (JDBDespatch) list_despatch.getSelectedValue();
          d.updateUserID(d.getDespatchNo(), JLaunchLookup.dlgResult);

        }
      }
    });
    buttonSetUserID.setEnabled(false);
    buttonSetUserID.setBounds(795, 355, 21, 21);
    desktopPane.add(buttonSetUserID);

    textFieldDespatchNo = new JTextField4j();
    textFieldDespatchNo.setBounds(672, 215, 143, 21);
    desktopPane.add(textFieldDespatchNo);

    JLabel4j_std despatchNolabel = new JLabel4j_std();
    despatchNolabel.setText(lang.get("lbl_Despatch_No"));
View Full Code Here

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

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

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

              dispose();
            }
          });
        }
        {
          jTextFieldPrinterID = new JTextField4j();
          jTextFieldPrinterID.setFocusable(false);
          jDesktopPane1.add(jTextFieldPrinterID);
          jTextFieldPrinterID.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldPrinterID.setEditable(false);
          jTextFieldPrinterID.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldPrinterID.setBounds(178, 13, 252, 21);
          jTextFieldPrinterID.setEnabled(false);
        }
        {
          comboBoxPrinterType = new JComboBox4j<String>();
          comboBoxPrinterType.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
          comboBoxPrinterType.setModel(new DefaultComboBoxModel<String>(Common.printerTypes));
          jDesktopPane1.add(comboBoxPrinterType);
          comboBoxPrinterType.setPreferredSize(new java.awt.Dimension(40, 20));
          comboBoxPrinterType.setFocusCycleRoot(true);
          comboBoxPrinterType.setBounds(178, 79, 167, 21);

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

    ButtonHandler buttonhandler = new ButtonHandler();

    KeyboardHandler keyboardhandler = new KeyboardHandler();
    getContentPane().setLayout(null);
    fld_userName = new JTextField4j(20);
    fld_userName.setBounds(103, 12, 150, 22);
    getContentPane().add(fld_userName);
    AbstractDocument doc1 = (AbstractDocument) fld_userName.getDocument();
    doc1.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_user_id));
View Full Code Here

      lbl_WorkstationID.setText(lang.get("lbl_Workstation"));
      lbl_WorkstationID.setHorizontalAlignment(SwingConstants.RIGHT);
      lbl_WorkstationID.setBounds(306, 229, 125, 21);
      jDesktopPane1.add(lbl_WorkstationID);

      JTextField4j textField4j_ProcessOrder = new JTextField4j();
      textField4j_ProcessOrder.setEnabled(false);
      textField4j_ProcessOrder.setBounds(154, 10, 139, 21);
      textField4j_ProcessOrder.setText(labdat.getProcessOrder());
      jDesktopPane1.add(textField4j_ProcessOrder);

      JTextField4j textField4j_Material = new JTextField4j();
      textField4j_Material.setEnabled(false);
      textField4j_Material.setBounds(154, 38, 139, 21);
      textField4j_Material.setText(labdat.getMaterial());
      jDesktopPane1.add(textField4j_Material);

      JTextField4j textField4j_BatchNumber = new JTextField4j();
      textField4j_BatchNumber.setEnabled(false);
      textField4j_BatchNumber.setBounds(154, 68, 139, 21);
      textField4j_BatchNumber.setText(labdat.getBatchNumber());
      jDesktopPane1.add(textField4j_BatchNumber);

      JTextField4j textField4j_User_ID = new JTextField4j();
      textField4j_User_ID.setEnabled(false);
      textField4j_User_ID.setBounds(154, 227, 152, 21);
      textField4j_User_ID.setText(labdat.getUserID());
      jDesktopPane1.add(textField4j_User_ID);

      JTextField4j textField4j_WorkstationID = new JTextField4j();
      textField4j_WorkstationID.setEditable(false);
      textField4j_WorkstationID.setEnabled(false);
      textField4j_WorkstationID.setBounds(448, 227, 208, 21);
      textField4j_WorkstationID.setText(labdat.getWorkstationID());
      jDesktopPane1.add(textField4j_WorkstationID);

      JDateControl dateControl_DateofManufacture = new JDateControl();
      dateControl_DateofManufacture.setFont(new Font("Arial", Font.PLAIN, 11));
      dateControl_DateofManufacture.setEnabled(false);
      dateControl_DateofManufacture.setBounds(154, 98, 128, 25);
      dateControl_DateofManufacture.setDate(labdat.getDateofManufacture());
      jDesktopPane1.add(dateControl_DateofManufacture);

      JDateControl dateControl_ExpiryDate = new JDateControl();
      dateControl_ExpiryDate.setFont(new Font("Arial", Font.PLAIN, 11));
      dateControl_ExpiryDate.setEnabled(false);
      dateControl_ExpiryDate.setBounds(448, 98, 128, 25);
      dateControl_ExpiryDate.setDate(labdat.getExpirtDate());
      jDesktopPane1.add(dateControl_ExpiryDate);

      JTextField4j textField4j_Description = new JTextField4j();
      textField4j_Description.setEnabled(false);
      textField4j_Description.setBounds(305, 38, 351, 21);
      if (mat.getMaterialProperties(labdat.getMaterial()))
      {
        textField4j_Description.setText(mat.getDescription());
      }
      jDesktopPane1.add(textField4j_Description);

      JLabel4j_std lbl_ResourceID = new JLabel4j_std();
      lbl_ResourceID.setText(lang.get("lbl_Resource_Key"));
      lbl_ResourceID.setHorizontalAlignment(SwingConstants.RIGHT);
      lbl_ResourceID.setBounds(306, 70, 125, 21);
      jDesktopPane1.add(lbl_ResourceID);

      JTextField4j textField4j_Resource = new JTextField4j();
      textField4j_Resource.setEnabled(false);
      textField4j_Resource.setBounds(448, 68, 208, 21);
      textField4j_Resource.setText(labdat.getRequiredResource());
      jDesktopPane1.add(textField4j_Resource);

      JLabel4j_std lbl_Status = new JLabel4j_std();
      lbl_Status.setText(lang.get("lbl_Process_Order_Status"));
      lbl_Status.setHorizontalAlignment(SwingConstants.RIGHT);
      lbl_Status.setBounds(353, 10, 152, 21);
      jDesktopPane1.add(lbl_Status);

      JQuantityInput jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
      jDesktopPane1.add(jFormattedTextFieldQuantity);
      jFormattedTextFieldQuantity.setFont(Common.font_std);
      jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
      jFormattedTextFieldQuantity.setBounds(154, 198, 74, 21);
      jFormattedTextFieldQuantity.setEnabled(false);

      JTextField4j textField4j_Status = new JTextField4j();
      textField4j_Status.setEnabled(false);
      textField4j_Status.setBounds(517, 10, 139, 21);
      if (po.getProcessOrderProperties(labdat.getProcessOrder()))
      {
        textField4j_Status.setText(po.getStatus());
        jFormattedTextFieldQuantity.setText(po.getFullPalletQuantity());
      }
      jDesktopPane1.add(textField4j_Status);

      JScrollPane scrollPane = new JScrollPane();
      scrollPane.setBounds(154, 262, 429, 113);
      jDesktopPane1.add(scrollPane);

      list = new JList4j<JDBListData>();
      list.addListSelectionListener(new ListSelectionListener()
      {
        public void valueChanged(ListSelectionEvent arg0)
        {
          enableButtons();
        }
      });
      list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
      scrollPane.setViewportView(list);

      JButton4j JButtonRefresh = new JButton4j(Common.icon_refresh);
      JButtonRefresh.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent arg0)
        {
          populateList("Pack");
        }
      });
      JButtonRefresh.setText(lang.get("btn_Refresh"));
      JButtonRefresh.setMnemonic('0');
      JButtonRefresh.setBounds(222, 387, 130, 30);
      jDesktopPane1.add(JButtonRefresh);

      JLabel4j_std label4j_Production_UOM = new JLabel4j_std((String) null);
      label4j_Production_UOM.setHorizontalAlignment(SwingConstants.TRAILING);
      label4j_Production_UOM.setBounds(12, 165, 125, 21);
      label4j_Production_UOM.setText(lang.get("lbl_Production_UOM"));
      jDesktopPane1.add(label4j_Production_UOM);

      JLabel4j_std label4j_std_Base_UOM = new JLabel4j_std((String) null);
      label4j_std_Base_UOM.setHorizontalAlignment(SwingConstants.TRAILING);
      label4j_std_Base_UOM.setBounds(12, 132, 125, 21);
      label4j_std_Base_UOM.setText(lang.get("lbl_Base_UOM"));
      jDesktopPane1.add(label4j_std_Base_UOM);

      JTextField4j textField4j_Prod_EAN = new JTextField4j();
      textField4j_Prod_EAN.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Prod_EAN.setEnabled(false);
      textField4j_Prod_EAN.setText(labdat.getProdEAN());
      textField4j_Prod_EAN.setBounds(315, 165, 139, 21);
      jDesktopPane1.add(textField4j_Prod_EAN);

      JTextField4j textField4j_Base_EAN = new JTextField4j();
      textField4j_Base_EAN.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Base_EAN.setEnabled(false);
      textField4j_Base_EAN.setText(labdat.getBaseEAN());
      textField4j_Base_EAN.setBounds(315, 132, 139, 21);
      jDesktopPane1.add(textField4j_Base_EAN);

      JTextField4j textField4j_Prod_UOM = new JTextField4j();
      textField4j_Prod_UOM.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Prod_UOM.setEnabled(false);
      textField4j_Prod_UOM.setText(labdat.getProdUom());
      textField4j_Prod_UOM.setBounds(258, 165, 51, 21);
      jDesktopPane1.add(textField4j_Prod_UOM);

      JTextField4j textField4j_Prod_Variant = new JTextField4j();
      textField4j_Prod_Variant.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Prod_Variant.setEnabled(false);
      textField4j_Prod_Variant.setText(labdat.getProdVariant());
      textField4j_Prod_Variant.setBounds(472, 165, 51, 21);
      jDesktopPane1.add(textField4j_Prod_Variant);

      JTextField4j textField4j_Base_Variant = new JTextField4j();
      textField4j_Base_Variant.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Base_Variant.setEnabled(false);
      textField4j_Base_Variant.setText(labdat.getBaseVariant());
      textField4j_Base_Variant.setBounds(472, 132, 51, 21);
      jDesktopPane1.add(textField4j_Base_Variant);

      JTextField4j textField4j_Base_UOM = new JTextField4j();
      textField4j_Base_UOM.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Base_UOM.setEnabled(false);
      textField4j_Base_UOM.setText(labdat.getBaseUom());
      textField4j_Base_UOM.setBounds(258, 132, 51, 21);
      jDesktopPane1.add(textField4j_Base_UOM);

      JLabel4j_std label4j_std_Pallet_Quantity = new JLabel4j_std((String) null);
      label4j_std_Pallet_Quantity.setText(lang.get("lbl_Pallet_Quantity"));
      label4j_std_Pallet_Quantity.setHorizontalAlignment(SwingConstants.TRAILING);
      label4j_std_Pallet_Quantity.setBounds(12, 198, 125, 21);
      jDesktopPane1.add(label4j_std_Pallet_Quantity);

      JLabel4j_std label4j_std_1 = new JLabel4j_std((String) null);
      label4j_std_1.setText("x");
      label4j_std_1.setHorizontalAlignment(SwingConstants.CENTER);
      label4j_std_1.setBounds(232, 165, 22, 21);
      jDesktopPane1.add(label4j_std_1);

      JLabel4j_std label4j_std_2 = new JLabel4j_std((String) null);
      label4j_std_2.setText("x");
      label4j_std_2.setHorizontalAlignment(SwingConstants.CENTER);
      label4j_std_2.setBounds(232, 132, 22, 21);
      jDesktopPane1.add(label4j_std_2);

      JLabel4j_std label4j_std_3 = new JLabel4j_std((String) null);
      label4j_std_3.setText("/");
      label4j_std_3.setHorizontalAlignment(SwingConstants.CENTER);
      label4j_std_3.setBounds(453, 165, 22, 21);
      jDesktopPane1.add(label4j_std_3);

      JLabel4j_std label4j_std_4 = new JLabel4j_std((String) null);
      label4j_std_4.setText("/");
      label4j_std_4.setHorizontalAlignment(SwingConstants.CENTER);
      label4j_std_4.setBounds(453, 132, 22, 21);
      jDesktopPane1.add(label4j_std_4);

      JTextField4j textField4j_Prod_Quantity = new JTextField4j();
      textField4j_Prod_Quantity.setEnabled(false);
      textField4j_Prod_Quantity.setHorizontalAlignment(SwingConstants.TRAILING);
      textField4j_Prod_Quantity.setBounds(154, 132, 74, 21);
      textField4j_Prod_Quantity.setText(labdat.getProdQuantity().toString());
      jDesktopPane1.add(textField4j_Prod_Quantity);

      JTextField4j textField4j_Base_Quantity = new JTextField4j();
      textField4j_Base_Quantity.setEnabled(false);
      textField4j_Base_Quantity.setHorizontalAlignment(SwingConstants.TRAILING);
      textField4j_Base_Quantity.setBounds(154, 165, 74, 21);
      textField4j_Base_Quantity.setText(labdat.getBaseQuantity().toString());
      jDesktopPane1.add(textField4j_Base_Quantity);

      JTextField4j textField4j_Pallet_UOM = new JTextField4j();
      textField4j_Pallet_UOM.setEnabled(false);
      textField4j_Pallet_UOM.setHorizontalAlignment(SwingConstants.CENTER);
      textField4j_Pallet_UOM.setBounds(258, 198, 51, 21);
      textField4j_Pallet_UOM.setText(labdat.getProdUom());
      jDesktopPane1.add(textField4j_Pallet_UOM);

      JLabel4j_std label4j_std = new JLabel4j_std((String) null);
      label4j_std.setText("x");
      label4j_std.setHorizontalAlignment(SwingConstants.CENTER);
      label4j_std.setBounds(232, 198, 22, 21);
      jDesktopPane1.add(label4j_std);

      JLabel4j_std lbl_ReportID = new JLabel4j_std((String) null);
      lbl_ReportID.setText(lang.get("lbl_Report_ID"));
      lbl_ReportID.setHorizontalAlignment(SwingConstants.TRAILING);
      lbl_ReportID.setBounds(306, 198, 125, 21);
      jDesktopPane1.add(lbl_ReportID);

      JTextField4j textField4j_Report_ID = new JTextField4j();
      textField4j_Report_ID.setEditable(false);
      textField4j_Report_ID.setText(labdat.getModuleID());
      textField4j_Report_ID.setBounds(448, 196, 208, 21);
      jDesktopPane1.add(textField4j_Report_ID);

    } catch (Exception e)
    {
      e.printStackTrace();
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.