Package com.commander4j.gui

Examples of com.commander4j.gui.JTextField4j


  public JDialogChangePassword(Frame parent, String DefaultUserName, String DefaultPassword)
  {
    super(parent, "Change Password", true);
    setTitle("Change Password (" + Common.hostList.getHost(Common.selectedHostID).getSiteDescription() + ")");

    fld_userName = new JTextField4j(20);
    fld_userName.setEnabled(false);
    fld_userName.setSize(128, 22);
    fld_userName.setLocation(137, 12);
    fld_userName.setDisabledTextColor(Common.color_textdisabled);
    fld_password = new JPasswordField(10);
View Full Code Here


            jButtonHelp.setText(lang.get("btn_Help"));
            jButtonHelp.setBounds(734, 78, 120, 30);
            jButtonHelp.setMnemonic(lang.getMnemonicChar());
          }
          {
            textFieldText = new JTextField4j();
            textFieldText.setBounds(141, 45, 414, 20);
            jDesktopPane1.add(textFieldText);
            textFieldText.setColumns(10);

            textFieldResourceKey = new JTextField4j();
            textFieldResourceKey.setBounds(685, 12, 280, 20);
            jDesktopPane1.add(textFieldResourceKey);
            textFieldResourceKey.setColumns(10);

            textFieldMnemonic = new JTextField4j();
            textFieldMnemonic.setBounds(685, 45, 35, 20);
            jDesktopPane1.add(textFieldMnemonic);
            textFieldMnemonic.setColumns(10);
          }
          {
View Full Code Here

    label.setText(lang.get("lbl_Process_Order_Required_Resource"));
    label.setHorizontalAlignment(SwingConstants.TRAILING);
    label.setBounds(10, 110, 131, 21);
    jDesktopPane1.add(label);

    jTextFieldRequiredResource = new JTextField4j();
    jTextFieldRequiredResource.setBounds(148, 110, 117, 21);
    jDesktopPane1.add(jTextFieldRequiredResource);
   
    calendarButtondueDateFrom = new JCalendarButton(dueDateFrom);
    calendarButtondueDateFrom.setEnabled(false);
    calendarButtondueDateFrom.setBounds(300, 79, 21, 21);
    jDesktopPane1.add(calendarButtondueDateFrom);
   
    calendarButtondueDateTo = new JCalendarButton(dueDateTo);
    calendarButtondueDateTo.setEnabled(false);
    calendarButtondueDateTo.setBounds(510, 79, 21, 21);
    jDesktopPane1.add(calendarButtondueDateTo);
   
    jTextFieldInspectionID = new JTextField4j();
    jTextFieldInspectionID.setBounds(383, 110, 117, 21);
    jDesktopPane1.add(jTextFieldInspectionID);
   
    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    Rectangle window = getBounds();
View Full Code Here

          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldDescription = new JTextField4j();
          jTextFieldDescription.setBounds(629, 11, 354, 22);
          jDesktopPane1.add(jTextFieldDescription);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jTextFieldMaterial.setBounds(383, 45, 98, 22);
          jDesktopPane1.add(jTextFieldMaterial);
        }
        {
          jTextFieldCustomer = new JTextField4j();
          jTextFieldCustomer.setBounds(383, 11, 98, 22);
          jDesktopPane1.add(jTextFieldCustomer);
       
        {
          JLabel4j_std label4j_std = new JLabel4j_std();
          label4j_std.setText(lang.get("lbl_Inspection_ID"));
          label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
          label4j_std.setBounds(275, 110, 98, 21);
          jDesktopPane1.add(label4j_std);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setBounds(758, 45, 89, 22);
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Location_ID"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          jTextFieldProcessOrder.setBounds(148, 11, 105, 22);
          jDesktopPane1.add(jTextFieldProcessOrder);
        }
        {
          jLabel4 = new JLabel4j_std();
          jLabel4.setBounds(7, 11, 132, 22);
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Process_Order"));
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel5 = new JLabel4j_std();
          jLabel5.setBounds(7, 45, 132, 22);
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Process_Order_Status"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldLocation = new JTextField4j();
          jTextFieldLocation.setBounds(857, 45, 105, 22);
          jDesktopPane1.add(jTextFieldLocation);
        }
        {
          jTextFieldRecipe = new JTextField4j();
          jTextFieldRecipe.setBounds(629, 45, 125, 22);
          jDesktopPane1.add(jTextFieldRecipe);
        }
        {
          jLabel6 = new JLabel4j_std();
View Full Code Here

              }
            }
          });
        }
        {
          jTextFieldDescription = new JTextField4j();
          desktopPane.add(jTextFieldDescription);
          jTextFieldDescription.setFocusCycleRoot(true);
          jTextFieldDescription.setBounds(425, 40, 325, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldURL = new JTextField4j();
          desktopPane.add(jTextFieldURL);
          jTextFieldURL.setFocusCycleRoot(true);
          jTextFieldURL.setBounds(425, 65, 325, 21);
          jTextFieldURL.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jLabelDatabaseType = new JLabel4j_std();
          desktopPane.add(jLabelDatabaseType);
          jLabelDatabaseType.setText("Database Type");
          jLabelDatabaseType.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDatabaseType.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelDatabaseType.setBounds(291, 91, 127, 21);

        }
        {

          ComboBoxModel jComboBoxjdbcDriverModel = new DefaultComboBoxModel(new String[]
          { "", "mySQL", "Oracle", "SQL Server", "Web URL" });
          jComboBoxjdbcDriver = new JComboBox4j();
          desktopPane.add(jComboBoxjdbcDriver);
          jComboBoxjdbcDriver.setModel(jComboBoxjdbcDriverModel);
          jComboBoxjdbcDriver.setBounds(425, 90, 164, 21);
          jComboBoxjdbcDriver.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jComboBoxjdbcDriver.getSelectedItem().toString().equals("Oracle"))
              {
                jTextFieldDriver.setText("oracle.jdbc.driver.OracleDriver");
                jTextFieldConnect.setText("jdbc:oracle:thin:@jdbcServer:jdbcPort:jdbcSID");
                jTextFieldDateTime.setText("sysdate");
                jTextFieldSelectLimit.setText("rownum");
                jTextFieldServer.setText("localhost");
                jTextFieldPort.setText("1521");
              }
              if (jComboBoxjdbcDriver.getSelectedItem().toString().equals("mySQL"))
              {
                jTextFieldDriver.setText("com.mysql.jdbc.Driver");
                jTextFieldConnect.setText("jdbc:mysql://jdbcServer/jdbcDatabase");
                jTextFieldDateTime.setText("sysdate");
                jTextFieldSelectLimit.setText("limit");
                jTextFieldServer.setText("localhost");
                jTextFieldPort.setText("3306");
              }
              if (jComboBoxjdbcDriver.getSelectedItem().toString().equals("SQL Server"))
              {
                jTextFieldDriver.setText("com.microsoft.sqlserver.jdbc.SQLServerDriver");
                jTextFieldConnect.setText("jdbc:sqlserver://jdbcServer\\jdbcSID");
                jTextFieldDateTime.setText("sysdate");
                jTextFieldSelectLimit.setText("top");
                jTextFieldServer.setText("localhost");
                jTextFieldPort.setText("1433");
              }
              if (jComboBoxjdbcDriver.getSelectedItem().toString().equals("Web URL"))
              {
                jTextFieldDriver.setText("http");
                jTextFieldConnect.setText("");
                jTextFieldDateTime.setText("");
                jTextFieldSelectLimit.setText("");
                jTextFieldServer.setText("");
                jTextFieldPort.setText("");
              }
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldConnect = new JTextField4j();
          desktopPane.add(jTextFieldConnect);
          jTextFieldConnect.setFocusCycleRoot(true);
          jTextFieldConnect.setBounds(425, 145, 325, 21);
          jTextFieldConnect.setEditable(false);
          jTextFieldConnect.setEnabled(false);
          jTextFieldConnect.setDisabledTextColor(Common.color_textdisabled);
          jTextFieldConnect.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jLabelDriver = new JLabel4j_std();
          desktopPane.add(jLabelDriver);
          jLabelDriver.setText("Driver");
          jLabelDriver.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDriver.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelDriver.setBounds(291, 116, 127, 21);

        }
        {
          jLabelDatabase = new JLabel4j_std();
          desktopPane.add(jLabelDatabase);
          jLabelDatabase.setText("Database");
          jLabelDatabase.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDatabase.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelDatabase.setBounds(320, 196, 98, 21);

        }
        {
          jLabelDBDateTime = new JLabel4j_std();
          desktopPane.add(jLabelDBDateTime);
          jLabelDBDateTime.setText("DB Date Time");
          jLabelDBDateTime.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDBDateTime.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelDBDateTime.setBounds(291, 321, 127, 21);

        }
        {
          jLabelPassword = new JLabel4j_std();
          desktopPane.add(jLabelPassword);
          jLabelPassword.setText("Password");
          jLabelPassword.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelPassword.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelPassword.setBounds(291, 296, 127, 21);

        }
        {
          jLabelDescription = new JLabel4j_std();
          desktopPane.add(jLabelDescription);
          jLabelDescription.setText("Description");
          jLabelDescription.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDescription.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelDescription.setBounds(291, 41, 127, 21);
        }
        {
          jLabelSiteNo = new JLabel4j_std();
          desktopPane.add(jLabelSiteNo);
          jLabelSiteNo.setText("Site No");
          jLabelSiteNo.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelSiteNo.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelSiteNo.setBounds(291, 15, 127, 21);

        }
        {
          jLabelUsername = new JLabel4j_std();
          desktopPane.add(jLabelUsername);
          jLabelUsername.setText("Username");
          jLabelUsername.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelUsername.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelUsername.setBounds(291, 271, 127, 21);

        }
        {
          jLabelPort = new JLabel4j_std();
          desktopPane.add(jLabelPort);
          jLabelPort.setText("Port");
          jLabelPort.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelPort.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelPort.setBounds(320, 221, 98, 21);

        }
        {
          jTextFieldDateTime = new JTextField4j();
          desktopPane.add(jTextFieldDateTime);
          jTextFieldDateTime.setFocusCycleRoot(true);
          jTextFieldDateTime.setBounds(425, 320, 325, 21);
          jTextFieldDateTime.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldUsername = new JTextField4j();
          desktopPane.add(jTextFieldUsername);
          jTextFieldUsername.setFocusCycleRoot(true);
          jTextFieldUsername.setBounds(425, 270, 325, 21);
          jTextFieldUsername.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldPassword = new JPasswordField(10);
          desktopPane.add(jTextFieldPassword);
          jTextFieldPassword.setFocusCycleRoot(true);
          jTextFieldPassword.setBounds(425, 295, 325, 21);
          jTextFieldPassword.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldPort = new JTextField4j();
          desktopPane.add(jTextFieldPort);
          jTextFieldPort.setFocusCycleRoot(true);
          jTextFieldPort.setBounds(425, 220, 325, 21);
          jTextFieldPort.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldSID = new JTextField4j();
          desktopPane.add(jTextFieldSID);
          jTextFieldSID.setFocusCycleRoot(true);
          jTextFieldSID.setBounds(425, 245, 325, 21);
          jTextFieldSID.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldSiteNo = new JTextField4j();
          desktopPane.add(jTextFieldSiteNo);
          jTextFieldSiteNo.setFocusCycleRoot(true);
          jTextFieldSiteNo.setBounds(425, 14, 28, 21);
          jTextFieldSiteNo.setHorizontalAlignment(SwingConstants.CENTER);
          jTextFieldSiteNo.setEnabled(false);
          jTextFieldSiteNo.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jTextFieldDriver = new JTextField4j();
          desktopPane.add(jTextFieldDriver);
          jTextFieldDriver.setFocusCycleRoot(true);
          jTextFieldDriver.setBounds(425, 117, 325, 21);
          jTextFieldDriver.setEditable(false);
          jTextFieldDriver.setEnabled(false);
          jTextFieldDriver.setDisabledTextColor(Common.color_textdisabled);
          jTextFieldDriver.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jCheckBoxEnabled = new JCheckBox();
          jCheckBoxEnabled.setFont(Common.font_std);
          desktopPane.add(jCheckBoxEnabled);
          jCheckBoxEnabled.setText("Enabled");
          jCheckBoxEnabled.setBounds(467, 14, 91, 21);
          jCheckBoxEnabled.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxEnabled.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jCheckBoxSplash = new JCheckBox();
          jCheckBoxSplash.setSelected(true);
          jCheckBoxSplash.setFont(Common.font_std);
          desktopPane.add(jCheckBoxSplash);
          jCheckBoxSplash.setText("Enable Splash Screen");
          jCheckBoxSplash.setBounds(687, 445, 150, 21);
          jCheckBoxSplash.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxSplash.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jLabelSID = new JLabel4j_std();
          desktopPane.add(jLabelSID);
          jLabelSID.setText("SID");
          jLabelSID.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelSID.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelSID.setBounds(320, 246, 98, 21);
        }
        {
          jButtonCancel = new JButton4j(Common.icon_cancel);
          desktopPane.add(jButtonCancel);
          jButtonCancel.setText("Cancel");
          jButtonCancel.setBounds(762, 345, 160, 36);
          jButtonCancel.setEnabled(false);
          jButtonCancel.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              getHostData();
            }
          });
        }
        {
          jTextFieldServer = new JTextField4j();
          desktopPane.add(jTextFieldServer);
          jTextFieldServer.setFocusCycleRoot(true);
          jTextFieldServer.setBounds(425, 170, 325, 21);
          jTextFieldServer.setEnabled(false);
          jTextFieldServer.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jLabelConnectionString = new JLabel4j_std();
          desktopPane.add(jLabelConnectionString);
          jLabelConnectionString.setText("Connect String");
          jLabelConnectionString.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelConnectionString.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelConnectionString.setBounds(291, 141, 127, 21);
        }
        {
          jTextFieldDatabase = new JTextField4j();
          desktopPane.add(jTextFieldDatabase);
          jTextFieldDatabase.setEnabled(false);
          jTextFieldDatabase.setFocusCycleRoot(true);
          jTextFieldDatabase.setBounds(425, 195, 325, 21);
          jTextFieldDatabase.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
        }
        {
          jLabelServer = new JLabel4j_std();
          desktopPane.add(jLabelServer);
          jLabelServer.setText("Server");
          jLabelServer.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelServer.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelServer.setBounds(320, 171, 98, 21);
        }
        {
          jButtonTest = new JButton4j(Common.icon_connect);
          desktopPane.add(jButtonTest);
          jButtonTest.setText("Connect to DB");
          jButtonTest.setBounds(762, 86, 160, 36);
          jButtonTest.setToolTipText("Connect to selected Host Database");
          jButtonTest.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {

              writeBackHosts(hostList);

              int j = jListHosts.getSelectedIndex();
              JHost hst = (JHost) jListHosts.getModel().getElementAt(j);
              Common.selectedHostID = hst.getSiteNumber();
              if (Common.hostList.getHost(Common.selectedHostID).connect(Common.sessionID, Common.selectedHostID))
              {
                btnSchema.setEnabled(true);
                jButtonUpdate.setEnabled(true);
                Common.hostList.getHost(Common.selectedHostID).disconnect(Common.sessionID);
              } else
              {
                jButtonUpdate.setEnabled(false);
                btnSchema.setEnabled(false);
              }
            }
          });
        }
        {
          jButtonUpdate = new JButton4j(Common.icon_update);
          desktopPane.add(jButtonUpdate);
          jButtonUpdate.setText("Create/Update Tables");
          jButtonUpdate.setBounds(762, 123, 160, 36);
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.setToolTipText("Create or Upgrade Application Database Schema");
          jButtonUpdate.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {

              writeBackHosts(hostList);

              int j = jListHosts.getSelectedIndex();
              JHost hst = (JHost) jListHosts.getModel().getElementAt(j);
              Common.selectedHostID = hst.getSiteNumber();

              if (Common.hostList.getHost(Common.selectedHostID).connect(Common.sessionID, Common.selectedHostID))
              {
                JDBSchema schema = new JDBSchema(Common.sessionID, Common.hostList.getHost(Common.selectedHostID));
                JDBUpdateRequest updrst = new JDBUpdateRequest();
                updrst = schema.validate(false);

                if (updrst.schema_updateRequired)
                {
                  int continueUpdate = JOptionPane.showConfirmDialog(me, "Current Schema Version is " + String.valueOf(updrst.schema_currentVersion) + ", required version is " + String.valueOf(updrst.schema_requiredVersion)
                      + ". Upgrade ?", "Connection to (" + hst.getSiteDescription() + ")", JOptionPane.YES_NO_OPTION);

                  if (continueUpdate == 0)
                  {

                    LinkedList<JDBDDL> cmds = new LinkedList<JDBDDL>();
                    cmds.clear();
                    cmds = JXMLSchema.loadDDLStatements(jTextFieldDriver.getText(), "xml/schema/" + Common.hostList.getHost(Common.selectedHostID).getDatabaseParameters().getjdbcDriver() + "/");
                    boolean updateCtrl = false;
                    if (cmds.size() > 0)
                    {
                      if (schema.executeDDL(cmds, progressBar, labelCommand) == true)
                      {
                        updateCtrl = true;

                      } else
                      {
                        JUtility.errorBeep();
                        JDialogDMLErrors dmlerrs = new JDialogDMLErrors(me, cmds);
                        dmlerrs.setModal(true);
                        int ignoreDDLErrors = JOptionPane.showConfirmDialog(me, "Ignore Errors and set SCHEMA version to " + String.valueOf(updrst.schema_requiredVersion) + " ?", "Connection to (" + hst.getSiteDescription()
                            + ")", JOptionPane.YES_NO_OPTION);

                        if (ignoreDDLErrors == 0)
                        {
                          updateCtrl = true;
                        }
                      }
                    } else
                    {
                      JOptionPane.showMessageDialog(me, "No DDL Commands found", "Connection to (" + hst.getSiteDescription() + ")", JOptionPane.WARNING_MESSAGE);

                    }

                    if (updateCtrl)
                    {
                      JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID);
                      if (ctrl.getProperties("SCHEMA VERSION"))
                      {
                        ctrl.setKeyValue(String.valueOf(updrst.schema_requiredVersion));
                        ctrl.update();
                      } else
                      {
                        ctrl.create("SCHEMA VERSION", String.valueOf(updrst.schema_requiredVersion), "Schema Version");
                      }
                      JOptionPane.showMessageDialog(me, "Schema Version now set to " + String.valueOf(JVersion.getSchemaVersion()), "Control Table", JOptionPane.INFORMATION_MESSAGE);

                    }

                  }
                } else
                {
                  JOptionPane.showMessageDialog(me, "No Schema update Required", "Connection to (" + hst.getSiteDescription() + ")", JOptionPane.INFORMATION_MESSAGE);
                }

                if (updrst.program_updateRequired)
                {
                  JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID);

                  if (ctrl.getProperties("PROGRAM VERSION"))
                  {
                    ctrl.setKeyValue(JVersion.getProgramVersion());
                    ctrl.update();
                  } else
                  {
                    ctrl.create("PROGRAM VERSION", JVersion.getProgramVersion(), "Program Version");
                  }
                  JOptionPane.showMessageDialog(me, "Program Version now set to " + JVersion.getProgramVersion(), "Control Table", JOptionPane.INFORMATION_MESSAGE);

                }
                Common.hostList.getHost(Common.selectedHostID).disconnect(Common.sessionID);
              }
            }
          });
        }
        {
          jTextFieldSelectLimit = new JTextField4j();
          desktopPane.add(jTextFieldSelectLimit);
          jTextFieldSelectLimit.setBounds(425, 345, 325, 21);
          jTextFieldSelectLimit.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
          jTextFieldSelectLimit.setFocusCycleRoot(true);
          jTextFieldSelectLimit.setEnabled(false);
        }
        {
          jLabelSelectTime = new JLabel4j_std();
          desktopPane.add(jLabelSelectTime);
          jLabelSelectTime.setText("DB Select Limit");
          jLabelSelectTime.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelSelectTime.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelSelectTime.setBounds(291, 346, 127, 21);

        }
        {
          jLabelSchema = new JLabel4j_std();
          desktopPane.add(jLabelSchema);
          jLabelSchema.setText("DB Schema");
          jLabelSchema.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelSchema.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelSchema.setBounds(291, 370, 127, 21);
        }
        {
          jTextFieldSchema = new JTextField4j();
          desktopPane.add(jTextFieldSchema);
          jTextFieldSchema.setEnabled(false);
          jTextFieldSchema.setBounds(425, 370, 325, 21);
          jTextFieldSchema.addKeyListener(new KeyAdapter()
          {
            public void keyTyped(KeyEvent evt)
            {
              jTextFieldKeyTyped();
            }
          });
          jTextFieldSchema.setFocusCycleRoot(true);
        }

        {
          jLabelMenuURL = new JLabel4j_std();
          jLabelMenuURL.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelMenuURL.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelMenuURL.setText("URL");
          jLabelMenuURL.setBounds(291, 66, 127, 21);
          desktopPane.add(jLabelMenuURL);
        }

        {
          jTextFieldUniqueID = new JTextField4j();
          jTextFieldUniqueID.addKeyListener(new KeyAdapter()
          {
            @Override
            public void keyTyped(KeyEvent e)
            {
              jTextFieldKeyTyped();
            }
          });
          jTextFieldUniqueID.setEditable(true);
          jTextFieldUniqueID.setBounds(425, 395, 325, 21);
          desktopPane.add(jTextFieldUniqueID);
        }

        {
          jLabelUniqueID = new JLabel4j_std();
          jLabelUniqueID.setText("Unique ID");
          jLabelUniqueID.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelUniqueID.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelUniqueID.setBounds(291, 396, 127, 21);
          desktopPane.add(jLabelUniqueID);
        }
        {
          btnSchema = new JButton4j(Common.icon_report);
          btnSchema.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent e)
            {

              writeBackHosts(hostList);

              int j = jListHosts.getSelectedIndex();
              JHost hst = (JHost) jListHosts.getModel().getElementAt(j);
              Common.selectedHostID = hst.getSiteNumber();
              if (Common.hostList.getHost(Common.selectedHostID).connect(Common.sessionID, Common.selectedHostID))
              {
                btnSchema.setEnabled(true);
                jButtonUpdate.setEnabled(true);
                JDBStructure struct = new JDBStructure(Common.selectedHostID, Common.sessionID);
                struct.exportSchema();
                struct.saveAs("SCHEMA " + Common.hostList.getHost(Common.selectedHostID).getSiteDescription() + ".txt", Common.mainForm);
                Common.hostList.getHost(Common.selectedHostID).disconnect(Common.sessionID);

              } else
              {
                jButtonUpdate.setEnabled(false);
                btnSchema.setEnabled(false);
              }
            }
          });
          btnSchema.setText("DB Schema Report");
          btnSchema.setEnabled(false);
          btnSchema.setBounds(762, 308, 160, 36);
          desktopPane.add(btnSchema);
        }
      }

      progressBar.setBounds(10, 521, 912, 28);
      progressBar.setBackground(Color.WHITE);
      progressBar.setForeground(Color.BLUE);
      desktopPane.add(progressBar);

      labelCommand.setBounds(10, 548, 912, 23);
      labelCommand.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
      desktopPane.add(labelCommand);

      JButton4j btnService = new JButton4j(Common.icon_interface);
      btnService.addActionListener(new ActionListener()
      {
        public void actionPerformed(ActionEvent e)
        {
         
          if (jListHosts.getSelectedIndex() > -1)
          {
            int j = jListHosts.getSelectedIndex();
            String desc = hostList.get(j).getSiteDescription();
           
            for (int x = 0; x < hostList.size(); x++)
            {
              if (x==j)
              {
                hostList.get(x).setUniqueID("service");
              }
              else
              {
                hostList.get(x).setUniqueID("");
              }

            }
           
            populateList(desc);


            getHostData();
            setSaveButtonState(true);
          }

        }
      });
      btnService.setToolTipText("Connect to selected Host Database");
      btnService.setText("Assign to Service");
      btnService.setBounds(762, 234, 160, 36);
      desktopPane.add(btnService);

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

      JLabel4j_std JLabelUpdateHostURL = new JLabel4j_std();
      JLabelUpdateHostURL.setText("URL for Update");
      JLabelUpdateHostURL.setHorizontalTextPosition(SwingConstants.RIGHT);
      JLabelUpdateHostURL.setHorizontalAlignment(SwingConstants.RIGHT);
      JLabelUpdateHostURL.setBounds(291, 470, 127, 21);
      desktopPane.add(JLabelUpdateHostURL);

      JTextFieldUpdateURL = new JTextField4j();
      JTextFieldUpdateURL.addKeyListener(new KeyAdapter()
      {
        @Override
        public void keyTyped(KeyEvent arg0)
        {
View Full Code Here

        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(361, 104));

        jDesktopPane1.setLayout(null);
        {
          jTextFieldGroupId = new JTextField4j();
          jDesktopPane1.add(jTextFieldGroupId, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldGroupId.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldGroupId.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldGroupId.setBounds(101, 10, 91, 21);
          jTextFieldGroupId.setEditable(false);
          jTextFieldGroupId.setEnabled(false);
          jTextFieldGroupId.setDisabledTextColor(Common.color_textdisabled);

        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel1.setText(lang.get("lbl_Group_ID"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(5, 10, 83, 21);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel2.setText(lang.get("lbl_Description"));
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel2.setBounds(5, 37, 86, 21);
        }
        {

          jButtonUpdate = new JButton4j(Common.icon_update);
          jDesktopPane1.add(jButtonUpdate, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jButtonUpdate.setText(lang.get("btn_Save"));
          jButtonUpdate.setHorizontalTextPosition(SwingConstants.RIGHT);
          jButtonUpdate.setMnemonic(lang.getMnemonicChar());
          jButtonUpdate.setBounds(5, 70, 110, 30);
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              group.setDescription(jTextFieldDescription.getText());
              group.update();
              jButtonUpdate.setEnabled(false);
            }
          });
        }
        {

          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.setBounds(239, 70, 110, 30);
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          jTextFieldDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldDescription, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBGroup.field_description));
          jTextFieldDescription.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldDescription.setBounds(101, 37, 237, 21);
View Full Code Here

              populateList();
            }
          });
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jTextFieldMaterial.setBounds(345, 11, 98, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldMaterial.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterial.field_material));
        }
        {
          jTextFieldLocation = new JTextField4j();
          jTextFieldLocation.setBounds(571, 11, 98, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldLocation.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_location_id));
        }
        {
          jTextFieldCustomer = new JTextField4j();
          jTextFieldCustomer.setBounds(346, 105, 98, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldCustomer.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBCustomer.field_customer_id));
        }
        {
          jLabel1 = new JLabel4j_std();
          jLabel1.setBounds(251, 11, 88, 21);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel3 = new JLabel4j_std();
          jLabel3.setBounds(490, 11, 74, 21);
          jLabel3.setText(lang.get("lbl_Location_ID"));
        }
        {
          jLabel23 = new JLabel4j_std();
          jLabel23.setBounds(265, 105, 74, 21);
          jLabel23.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel23.setText(lang.get("lbl_Customer_ID"));
        }
        {
          ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(uomList);
          jComboBoxUOM = new JComboBox4j();
          jComboBoxUOM.setBounds(571, 75, 119, 23);
          jComboBoxUOM.setModel(jComboBox2Model);
          jComboBoxUOM.setMaximumRowCount(12);
        }
        {
          jLabel4 = new JLabel4j_std();
          jLabel4.setBounds(487, 75, 77, 21);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setText(lang.get("lbl_Material_UOM"));
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jButtonClose.setBounds(366, 138, 120, 28);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JDBQuery.closeStatement(listStatement);
              dispose();
            }
          });
        }
        {
          jLabel10 = new JLabel4j_std();
          jLabel10.setBounds(744, 136, 126, 21);
          jLabel10.setText(lang.get("lbl_Limit"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "DATE_OF_MANUFACTURE", "SSCC", "MATERIAL", "PROCESS_ORDER", "BATCH_NUMBER", "DATE_OF_MANUFACTURE",
              "STATUS", "LOCATION_ID" });
          jComboBoxSortBy = new JComboBox4j();
          jComboBoxSortBy.setBounds(571, 138, 195, 23);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
        }
        {
          ComboBoxModel jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel(Common.palletStatusIncBlank);
          jComboBoxPalletStatus = new JComboBox4j();
          jComboBoxPalletStatus.setBounds(803, 44, 155, 23);
          jComboBoxPalletStatus.setModel(jComboBoxDefaultPalletStatusModel);
        }
        {
          jLabel15 = new JLabel4j_std();
          jLabel15.setBounds(702, 44, 97, 21);
          jLabel15.setText(lang.get("lbl_Pallet_Status"));
          jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jToggleButtonSequence.setBounds(778, 138, 21, 21);
          jToggleButtonSequence.setSelected(true);
          jToggleButtonSequence.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }
        {
          jLabelQuantity = new JLabel4j_std();
          jLabelQuantity.setBounds(476, 105, 88, 21);
          jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
          jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {

          jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
          jFormattedTextFieldQuantity.setBounds(599, 105, 91, 21);
          jFormattedTextFieldQuantity.setFont(Common.font_std);
          jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldQuantity.setVerifyInputWhenFocusTarget(false);
          jFormattedTextFieldQuantity.setEnabled(false);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setBounds(710, 11, 89, 21);
          jLabel2.setText(lang.get("lbl_Material_Batch"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldBatch = new JTextField4j();
          jTextFieldBatch.setBounds(803, 11, 119, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
        }
        {
          jLabelProcessOrder = new JLabel4j_std();
          jLabelProcessOrder.setBounds(475, 44, 89, 21);
          jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
          jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldProcessOrder = new JTextField4j();
          jTextFieldProcessOrder.setBounds(571, 44, 98, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
        }
        {
          jLabelProductionDate = new JLabel4j_std();
          jLabelProductionDate.setBounds(2, 42, 119, 25);
          jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
          jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldEAN = new JTextField4j();
          jTextFieldEAN.setBounds(803, 105, 119, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldEAN.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_ean));
          jTextFieldEAN.setFocusCycleRoot(true);
        }
        {
          jLabel5 = new JLabel4j_std();
          jLabel5.setBounds(702, 105, 97, 21);
          jLabel5.setText(lang.get("lbl_Material_UOM_EAN"));
          jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel5.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel6 = new JLabel4j_std();
          jLabel6.setBounds(922, 105, 15, 21);
          jLabel6.setText("/");
          jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jTextFieldVariant = new JTextField4j();
          jTextFieldVariant.setBounds(937, 105, 21, 21);
          jTextFieldVariant.setHorizontalAlignment(SwingConstants.CENTER);
          AbstractDocument doc = (AbstractDocument) jTextFieldVariant.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_variant));
          jTextFieldVariant.setFocusCycleRoot(true);
        }
        {
          jCheckBoxQuantity = new JCheckBox();
          jCheckBoxQuantity.setBounds(571, 105, 21, 21);
          jCheckBoxQuantity.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxQuantity.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxQuantity.isSelected())
              {
                jFormattedTextFieldQuantity.setValue(0);
                jFormattedTextFieldQuantity.setEnabled(true);
              }
              else
              {
                jFormattedTextFieldQuantity.setValue(0);
                jFormattedTextFieldQuantity.setEnabled(false);
              }
            }
          });
        }
        {
          domDateFrom = new JDateControl();
          domDateFrom.setBounds(148, 40, 120, 25);
          domDateFrom.setEnabled(false);

        }
        {
          jCheckBoxDOMTo = new JCheckBox();
          jCheckBoxDOMTo.setBounds(319, 40, 21, 25);
          jCheckBoxDOMTo.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxDOMTo.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxDOMTo.isSelected())
              {
                button_CalendardomDateTo.setEnabled(true);
                domDateTo.setEnabled(true);
              }
              else
              {
                domDateTo.setEnabled(false);
                button_CalendardomDateTo.setEnabled(false);
              }
            }
          });
        }
        {
          domDateTo = new JDateControl();
          domDateTo.setBounds(345, 40, 120, 25);
          domDateTo.setEnabled(false);
        }
        {
          jLabel7 = new JLabel4j_std();
          jLabel7.setBounds(466, 138, 98, 21);
          jLabel7.setText(lang.get("lbl_Sort_By"));
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel();
          jSpinnerIntModel.setMinimum(1);
          jSpinnerIntModel.setMaximum(5000);
          jSpinnerIntModel.setStepSize(1);
          jSpinnerLimit = new JSpinner();
          JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerLimit);
          ne.getTextField().setFont(Common.font_std);
          jSpinnerLimit.setEditor(ne);
          jSpinnerLimit.setBounds(902, 136, 71, 21);
          jSpinnerLimit.setFont(Common.font_std);
          jSpinnerLimit.setModel(jSpinnerIntModel);
          jSpinnerLimit.setValue(1000);
          jSpinnerLimit.getEditor().setSize(45, 21);
        }
        {
          jCheckBoxLimit = new JCheckBox();
          jCheckBoxLimit.setBounds(877, 136, 21, 21);
          jCheckBoxLimit.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxLimit.setSelected(true);
          jCheckBoxLimit.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxLimit.isSelected())
              {
                jSpinnerLimit.setEnabled(true);
              }
              else
              {
                jSpinnerLimit.setEnabled(false);
              }
            }
          });
        }
        {
          jButtonLookupProcessOrder = new JButton4j(Common.icon_lookup);
          jButtonLookupProcessOrder.setBounds(669, 44, 21, 21);
          jButtonLookupProcessOrder.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgCriteriaDefault = "Ready";
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.processOrders())
              {
                jTextFieldProcessOrder.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupBatch = new JButton4j(Common.icon_lookup);
          jButtonLookupBatch.setBounds(901, 11, 21, 21);
          jButtonLookupBatch.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.materialBatches())
              {
                jTextFieldBatch.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
          jButtonLookupMaterial.setBounds(444, 11, 21, 21);
          jButtonLookupMaterial.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgAutoExec = false;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.materials())
              {
                jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupLocation = new JButton4j(Common.icon_lookup);
          jButtonLookupLocation.setBounds(669, 11, 21, 21);
          jButtonLookupLocation.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "Y";
              if (JLaunchLookup.locations())
              {
                jTextFieldLocation.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jButtonLookupCustomer = new JButton4j(Common.icon_lookup);
          jButtonLookupCustomer.setBounds(444, 105, 21, 21);
          jButtonLookupCustomer.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              JLaunchLookup.dlgAutoExec = true;
              JLaunchLookup.dlgCriteriaDefault = "";
              if (JLaunchLookup.customers())
              {
                jTextFieldCustomer.setText(JLaunchLookup.dlgResult);
              }
            }
          });
        }
        {
          jCheckBoxDOMFrom = new JCheckBox();
          jCheckBoxDOMFrom.setBounds(126, 40, 21, 25);
          jCheckBoxDOMFrom.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxDOMFrom.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxDOMFrom.isSelected())
              {
                domDateFrom.setEnabled(true);
                button_CalendardomDateFrom.setEnabled(true);
              }
              else
              {
                domDateFrom.setEnabled(false);
                button_CalendardomDateFrom.setEnabled(false);
              }
            }
          });
        }
        {
          jTextFieldSSCC = new JTextField4j();
          jTextFieldSSCC.setBounds(135, 105, 133, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
        }
        {
          jLabelSCC = new JLabel4j_std();
          jLabelSCC.setBounds(2, 105, 119, 21);
          jLabelSCC.setText(lang.get("lbl_Pallet_SSCC"));
          jLabelSCC.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          expiryDateFrom = new JDateControl();
          expiryDateFrom.setBounds(148, 71, 120, 25);
          expiryDateFrom.setEnabled(false);
        }
        {
          expiryDateTo = new JDateControl();
          expiryDateTo.setBounds(345, 71, 120, 25);
          expiryDateTo.setEnabled(false);
        }
        {
          jLabel8 = new JLabel4j_std();
          jLabel8.setBounds(2, 71, 119, 25);
          jLabel8.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jCheckBoxExpiryFrom = new JCheckBox();
          jCheckBoxExpiryFrom.setBounds(126, 72, 21, 25);
          jCheckBoxExpiryFrom.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxExpiryFrom.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxExpiryFrom.isSelected())
              {
                expiryDateFrom.setEnabled(true);
                calendarButtonexpiryDateFrom.setEnabled(true);
              }
              else
              {
                expiryDateFrom.setEnabled(false);
                calendarButtonexpiryDateFrom.setEnabled(false);
              }
            }
          });
        }
        {
          jCheckBoxExpiryTo = new JCheckBox();
          jCheckBoxExpiryTo.setBounds(319, 71, 21, 25);
          jCheckBoxExpiryTo.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxExpiryTo.addActionListener(new ActionListener()
          {
            public void actionPerformed(ActionEvent evt)
            {
              if (jCheckBoxExpiryTo.isSelected())
              {
                expiryDateTo.setEnabled(true);
                calendarButtonexpiryDateTo.setEnabled(true);
              }
              else
              {
                expiryDateTo.setEnabled(false);
                calendarButtonexpiryDateTo.setEnabled(false);
              }
            }
          });
        }

        {
          jLabel8_1 = new JLabel4j_std();
          jLabel8_1.setBounds(702, 75, 97, 21);
          jLabel8_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8_1.setText(lang.get("lbl_Despatch_No"));
        }

        {
          jTextFieldDespatch_No = new JTextField4j();
          jTextFieldDespatch_No.setBounds(803, 75, 119, 21);
          AbstractDocument doc = (AbstractDocument) jTextFieldDespatch_No.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBDespatch.field_despatch_no));
          jTextFieldDespatch_No.setFocusCycleRoot(true);
        }

        {
          jStatusText = new JLabel4j_std();
          jStatusText.setBounds(2, 527, 971, 21);
          jStatusText.setBackground(Color.GRAY);
          jStatusText.setForeground(new Color(255, 0, 0));
        }

        {
          jButtonClear = new JButton4j(Common.icon_clear);
          jButtonClear.setBounds(124, 138, 120, 28);
          jButtonClear.addActionListener(new ActionListener()
          {
            public void actionPerformed(final ActionEvent e)
            {
              clearFilter();

            }
          });
          jButtonClear.setText(lang.get("btn_Clear_Filter"));
        }

        button_CalendardomDateFrom = new JCalendarButton(domDateFrom);
        button_CalendardomDateFrom.setBounds(273, 42, 21, 21);
        button_CalendardomDateFrom.setEnabled(false);

        button_CalendardomDateTo = new JCalendarButton(domDateTo);
        button_CalendardomDateTo.setBounds(470, 42, 21, 21);
        button_CalendardomDateTo.setEnabled(false);

        calendarButtonexpiryDateFrom = new JCalendarButton(expiryDateFrom);
        calendarButtonexpiryDateFrom.setBounds(273, 74, 21, 21);
        calendarButtonexpiryDateFrom.setEnabled(false);

        calendarButtonexpiryDateTo = new JCalendarButton(expiryDateTo);
        calendarButtonexpiryDateTo.setBounds(470, 74, 21, 21);
        calendarButtonexpiryDateTo.setEnabled(false);

        jTextFieldMHN = new JTextField4j();
        jTextFieldMHN.setForeground(Color.RED);
        jTextFieldMHN.setBounds(148, 11, 120, 21);
        jTextFieldMHN.setEditable(false);
        jDesktopPane1.setLayout(null);
View Full Code Here

        jDesktopPane1.setBackground(Color.WHITE);
        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(462, 497));
        jDesktopPane1.setLayout(null);
        {
          jTextFieldProcessOrder = new JTextField4j();
          jDesktopPane1.add(jTextFieldProcessOrder);
          jTextFieldProcessOrder.setEditable(false);
          jTextFieldProcessOrder.setEnabled(false);
          jTextFieldProcessOrder.setBounds(155, 10, 147, 21);
        }
View Full Code Here

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

        jDesktopPane1 = new JDesktopPane();
        jDesktopPane1.setBackground(Color.WHITE);
        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(462, 497));
        {
          jTextFieldSSCC = new JTextField4j();
          jTextFieldSSCC.addKeyListener(new KeyAdapter() {
            public void keyReleased(final KeyEvent e) {
              lsscc = jTextFieldSSCC.getText();
              lsscc = JUtility.replaceNullStringwithBlank(lsscc);
              if (lsscc.length() == 18)
              {
                refresh();
              }
              else
              {
                blankfields();
              }
            }
          });
          AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
          jDesktopPane1.setLayout(null);
          jDesktopPane1.add(jTextFieldSSCC);
          jTextFieldSSCC.setEditable(true);
          jTextFieldSSCC.setEnabled(true);
          jTextFieldSSCC.setBounds(147, 14, 147, 21);
        }
        {
          jButtonSave = new JButton4j(Common.icon_scanner);
          jDesktopPane1.add(jButtonSave);
          jButtonSave.setEnabled(true);
          jButtonSave.setText(lang.get("btn_Confirm"));
          jButtonSave.setMnemonic(lang.getMnemonicChar());
          jButtonSave.setBounds(63, 450, 100, 28);
          jButtonSave.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              boolean result = true;

              if (pallet.isConfirmed() == false)
              {
                pallet.setDateOfManufacture(JUtility.getSQLDateTime());
                pallet.setTransactionRef(0);
                result = pallet.confirm();
                if (result == true)
                {
                  checkBoxConfirmed.setSelected(true);
                  jStatusText.setText("SSCC " + pallet.getSSCC() + " confirmed.");
                }
                else
                {
                  jStatusText.setText(pallet.getErrorMessage());
                }
              }
              else
              {
                jStatusText.setText("SSCC " + pallet.getSSCC() + " already confirmed.");
                // already confirmed
              }

              if (result == false)
              {
                JOptionPane.showMessageDialog(Common.mainForm, pallet.getErrorMessage(), "Error", JOptionPane.ERROR_MESSAGE);
              }
              else
              {
                jFormattedTextFieldBaseQuantity.setText(pallet.getBaseQuantity().toString());
                jButtonSave.setEnabled(false);
              }
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
          jButtonHelp.setBounds(169, 450, 100, 28);
        }
        {
          jButtonCancel = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonCancel);
          jButtonCancel.setText(lang.get("btn_Close"));
          jButtonCancel.setMnemonic(lang.getMnemonicChar());
          jButtonCancel.setBounds(275, 450, 100, 28);
          jButtonCancel.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }

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

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

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

        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText(lang.get("lbl_Material_UOM_EAN"));
          jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel6.setBounds(7, 356, 133, 21);
        }
        {
          jTextFieldEAN = new JTextField4j();
          jDesktopPane1.add(jTextFieldEAN);
          jTextFieldEAN.setBounds(147, 356, 119, 21);
          jTextFieldEAN.setFocusCycleRoot(true);
          jTextFieldEAN.setEnabled(false);
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Material_UOM_Variant"));
          jLabel7.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel7.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel7.setBounds(7, 384, 133, 21);
        }
        {
          jTextFieldVariant = new JTextField4j();
          jDesktopPane1.add(jTextFieldVariant);
          jTextFieldVariant.setBounds(147, 384, 21, 21);
          jTextFieldVariant.setFocusCycleRoot(true);
          jTextFieldVariant.setEnabled(false);
        }
        {
          jLabelQuantity = new JLabel4j_std();
          jDesktopPane1.add(jLabelQuantity);
          jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
          jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabelQuantity.setBounds(7, 245, 133, 21);
        }
        {
          jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
          jDesktopPane1.add(jFormattedTextFieldQuantity);
          jFormattedTextFieldQuantity.setFont(Common.font_std);
          jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
          jFormattedTextFieldQuantity.setBounds(147, 245, 91, 21);
          jFormattedTextFieldQuantity.setEnabled(false);

        }

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

        }
        {
          jStatusText = new JLabel4j_std();
          jDesktopPane1.add(jStatusText);
          jStatusText.setForeground(new java.awt.Color(255, 0, 0));
          jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
          jStatusText.setBounds(0, 490, 445, 21);
        }

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

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

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

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

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

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

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

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

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

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

        {
          jTextFieldUom = new JTextField4j();
          jTextFieldUom.setBounds(147, 275, 119, 21);
          jTextFieldUom.setEnabled(false);
          jDesktopPane1.add(jTextFieldUom);
        }
      }
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.