Examples of JLabel4j_std


Examples of com.commander4j.gui.JLabel4j_std

          textFieldTranslatedDescripton.setCaretPosition(0);
          textFieldTranslatedDescripton.setBounds(164, 60, 280, 21);
          jDesktopPane1.add(textFieldTranslatedDescripton);
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Module_ID"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(0, 10, 152, 21);
        }
        {
          lblReportType = new JLabel4j_std();
          lblReportType.setText(lang.get("lbl_Module_Report_Type"));
          lblReportType.setHorizontalAlignment(SwingConstants.TRAILING);
          lblReportType.setBounds(0, 206, 152, 21);
          jDesktopPane1.add(lblReportType);
        }
        {
          jTextFieldModuleId = new JTextField4j();
          jDesktopPane1.add(jTextFieldModuleId);
          jTextFieldModuleId.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldModuleId.setEditable(false);
          jTextFieldModuleId.setBounds(164, 10, 280, 21);
          jTextFieldModuleId.setEnabled(false);
        }
        {
          jTextFieldResourceKey = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldResourceKey.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBModule.field_description));
          jDesktopPane1.add(jTextFieldResourceKey);
          jTextFieldResourceKey.setFocusCycleRoot(true);
          jTextFieldResourceKey.setBounds(164, 35, 280, 21);
          jTextFieldResourceKey.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {

          jButtonUpdate = new JButton4j(Common.icon_update);
          jDesktopPane1.add(jButtonUpdate);
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.setText(lang.get("btn_Save"));
          jButtonUpdate.setHorizontalTextPosition(SwingConstants.RIGHT);
          jButtonUpdate.setMnemonic(lang.getMnemonicChar());
          jButtonUpdate.setBounds(136, 345, 112, 28);
          jButtonUpdate.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

              module.setResourceKey(jTextFieldResourceKey.getText());

              module.setIconFilename(jTextFieldIconFilename.getText());
              module.setHelpSetID(jTextFieldHelpsetid.getText());

              module.setType((String) jComboBoxType.getSelectedItem());
              module.setReportType((String) comboBox.getSelectedItem());

              if (jCheckBoxDesktop.isSelected())
                module.setDKActive("Y");
              else
                module.setDKActive("N");

              if (jCheckBoxScanner.isSelected())
                module.setRFActive("Y");
              else
                module.setRFActive("N");

              if (jCheckBoxPrintPreview.isSelected())
                module.setPrintPreview("Y");
              else
                module.setPrintPreview("N");

              if (jCheckBoxPrintDialog.isSelected())
                module.setPrintDialog("Y");
              else
                module.setPrintDialog("N");

              module.setPrintCopies(Integer.valueOf(jSpinnerPrintCopies.getValue().toString()));

              module.setReportFilename(jTextFieldReportFilename.getText());
              module.setExecFilename(jTextFieldExecFilename.getText());
              module.setExecDir(jTextFieldExecDir.getText());

              if (module.update() == false)
              {
                JUtility.errorBeep();
                JOptionPane.showMessageDialog(null, module.getErrorMessage(), "Error", JOptionPane.ERROR_MESSAGE);
              }

              jButtonUpdate.setEnabled(false);
            }
          });
        }
        {

          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.setBounds(364, 345, 112, 28);
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Module_Type"));
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3.setBounds(0, 93, 152, 21);
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText(lang.get("lbl_Module_Desktop"));
          jLabel4.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel4.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel4.setBounds(0, 122, 152, 21);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Description"));
          jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel5.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel5.setBounds(0, 60, 152, 21);
        }
        {
          comboBox = new JComboBox4j();
          comboBox.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
              jButtonUpdate.setEnabled(true);
            }
          });
          comboBox.setBounds(164, 206, 180, 23);
          comboBox.addItem("");
          comboBox.addItem("Standard");
          comboBox.addItem("Label");
          jDesktopPane1.add(comboBox);
        }
        {
          jComboBoxType = new JComboBox4j();
          jDesktopPane1.add(jComboBoxType);
          jComboBoxType.setEnabled(true);
          jComboBoxType.setEditable(false);
          jComboBoxType.setLightWeightPopupEnabled(true);
          jComboBoxType.setIgnoreRepaint(false);
          jComboBoxType.setBounds(164, 93, 180, 23);
          jComboBoxType.addItem("EXEC");
          jComboBoxType.addItem("FORM");
          jComboBoxType.addItem("FUNCTION");
          jComboBoxType.addItem("MENU");
          jComboBoxType.addItem("REPORT");
          jComboBoxType.addItem("USER");
          jComboBoxType.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              new_type = jComboBoxType.getSelectedItem();
              if (new_type != null)
              {
                if (new_type.equals(current_type) != true)
                {
                  // module_updated = true;
                  jButtonUpdate.setEnabled(true);
                  jButtonIconPreview.setIcon(JDBModule.getModuleIcon(jTextFieldIconFilename.getText(), (String) jComboBoxType.getSelectedItem()));
                }

                if (new_type.equals("REPORT") || new_type.equals("USER"))
                {
                  jTextFieldReportFilename.setEnabled(true);
                  jButtonReportFileChooser.setEnabled(true);
                  jCheckBoxPrintPreview.setEnabled(true);
                  jCheckBoxPrintDialog.setEnabled(true);
                  jSpinnerPrintCopies.setEnabled(true);
                  comboBox.setEnabled(true);
                }
                else
                {
                  jTextFieldReportFilename.setEnabled(false);
                  jButtonReportFileChooser.setEnabled(false);
                  jCheckBoxPrintPreview.setEnabled(false);
                  jCheckBoxPrintDialog.setEnabled(false);
                  jSpinnerPrintCopies.setEnabled(false);
                  comboBox.setEnabled(false);
                }

                if (new_type.equals("EXEC"))
                {
                  jTextFieldExecFilename.setEnabled(true);
                  jButtonExecFileChooser.setEnabled(true);
                  jTextFieldExecDir.setEnabled(true);
                  jButtonExecDirChooser.setEnabled(true);
                }
                else
                {
                  jTextFieldExecFilename.setEnabled(false);
                  jButtonExecFileChooser.setEnabled(false);
                  jTextFieldExecDir.setEnabled(false);
                  jButtonExecDirChooser.setEnabled(false);
                }
              }
            }
          });
        }
        {
          jCheckBoxScanner = new JCheckBox();
          jDesktopPane1.add(jCheckBoxScanner);
          jCheckBoxScanner.setSelected(true);
          jCheckBoxScanner.setBounds(164, 146, 21, 21);
          jCheckBoxScanner.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxScanner.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              // module_updated = true;
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jCheckBoxDesktop = new JCheckBox();
          jDesktopPane1.add(jCheckBoxDesktop);
          jCheckBoxDesktop.setSelected(true);
          jCheckBoxDesktop.setBounds(164, 122, 21, 21);
          jCheckBoxDesktop.setBackground(new java.awt.Color(255, 255, 255));
          jCheckBoxDesktop.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              // module_updated = true;
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText(lang.get("lbl_Module_Scanner"));
          jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel6.setBounds(0, 146, 152, 21);
        }

        {
          jLabelMnemonic = new JLabel4j_std();
          jDesktopPane1.add(jLabelMnemonic);
          jLabelMnemonic.setText(lang.get("lbl_Language_Mnemonic"));
          jLabelMnemonic.setBounds(449, 60, 112, 21);
          jLabelMnemonic.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelMnemonic.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jTextFieldMnemonic = new JTextField4j();
          jTextFieldMnemonic.setEditable(false);
          AbstractDocument doc = (AbstractDocument) jTextFieldMnemonic.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBModule.field_mneumonic));

          jDesktopPane1.add(jTextFieldMnemonic);
          jTextFieldMnemonic.setText("");

          jTextFieldMnemonic.setBounds(566, 60, 42, 21);
          jTextFieldMnemonic.setToolTipText("Character to underline");
          jTextFieldMnemonic.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Module_Executable_Directory"));
          jLabel2.setBounds(0, 290, 152, 21);
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldIconFilename = new JTextField4j();
          jDesktopPane1.add(jTextFieldIconFilename);
          jTextFieldIconFilename.setBounds(164, 177, 163, 22);
          jTextFieldIconFilename.addKeyListener(new KeyAdapter() {
            public void keyReleased(KeyEvent evt) {
              jButtonIconPreview.setIcon(JDBModule.getModuleIcon(jTextFieldIconFilename.getText(), (String) jComboBoxType.getSelectedItem()));
            }

            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jButtonIconFileChooser = new JButton4j();
          jDesktopPane1.add(jButtonIconFileChooser);
          jButtonIconFileChooser.setText("..");
          jButtonIconFileChooser.setBounds(327, 177, 17, 21);
          jButtonIconFileChooser.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

              JFileChooser loadIco = new JFileChooser();

              try
              {
                File f = new File(new File("./images").getCanonicalPath());
                loadIco.setCurrentDirectory(f);
                loadIco.addChoosableFileFilter(new JFileFilterImages());
                loadIco.setSelectedFile(new File(jTextFieldIconFilename.getText()));
              }
              catch (Exception e)
              {
              }

              if (loadIco.showOpenDialog(jButtonIconFileChooser) == JFileChooser.APPROVE_OPTION)
              {
                File selectedFile;
                selectedFile = loadIco.getSelectedFile();

                if (selectedFile != null)
                {
                  if (jTextFieldIconFilename.getText().compareTo(selectedFile.getName()) != 0)
                  {
                    jTextFieldIconFilename.setText(selectedFile.getName());
                    jButtonIconPreview.setIcon(JDBModule.getModuleIcon(jTextFieldIconFilename.getText(), (String) jComboBoxType.getSelectedItem()));
                    jButtonUpdate.setEnabled(true);
                  }
                }
              }
            }
          });
        }
        {
          jButtonIconPreview = new JButton4j();
          jDesktopPane1.add(jButtonIconPreview);
          jButtonIconPreview.setBounds(292, 177, 23, 22);
          jButtonIconPreview.setBorderPainted(false);
          jButtonIconPreview.setContentAreaFilled(false);
          jButtonIconPreview.setRolloverEnabled(false);
          jButtonIconPreview.setRequestFocusEnabled(false);
        }
        {
          jTextFieldHelpsetid = new JTextField4j();
          AbstractDocument doc = (AbstractDocument) jTextFieldHelpsetid.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBModule.field_helpset_id));
          jDesktopPane1.add(jTextFieldHelpsetid);
          jTextFieldHelpsetid.setBounds(164, 317, 427, 21);
          jTextFieldHelpsetid.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {

              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText(lang.get("lbl_Module_Help"));
          jLabel7.setBounds(0, 317, 152, 21);
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setBounds(250, 345, 112, 28);
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
        }
        {
          jTextFieldReportFilename = new JTextField4j();
          jDesktopPane1.add(jTextFieldReportFilename);
          jTextFieldReportFilename.setBounds(164, 233, 163, 22);
          jTextFieldReportFilename.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }

            public void keyReleased(KeyEvent evt) {
              jButtonIconPreview.setIcon(JDBModule.getModuleIcon(jTextFieldIconFilename.getText(), (String) jComboBoxType.getSelectedItem()));
            }
          });
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText(lang.get("lbl_Module_Icon_Filename"));
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(0, 178, 152, 21);
        }
        {
          jButtonReportFileChooser = new JButton4j();
          jDesktopPane1.add(jButtonReportFileChooser);
          jButtonReportFileChooser.setText("..");
          jButtonReportFileChooser.setBounds(327, 233, 17, 21);
          jButtonReportFileChooser.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

              JFileChooser loadRpt = new JFileChooser();

              try
              {
                String path = "";
                if (((String) comboBox.getSelectedItem()).equals("Standard"))
                {
                  path = "./reports";
                }
                else
                {
                  path = "./labels";
                }
                File f = new File(new File(path).getCanonicalPath());
                loadRpt.setCurrentDirectory(f);

                if (((String) comboBox.getSelectedItem()).equals("Standard"))
                {
                  loadRpt.addChoosableFileFilter(new JFileFilterReports());
                }
                else
                {
                  loadRpt.addChoosableFileFilter(new JFileFilterLabels());
                }

                loadRpt.setSelectedFile(new File(jTextFieldReportFilename.getText()));
              }
              catch (Exception e)
              {
              }

              if (loadRpt.showOpenDialog(jButtonReportFileChooser) == JFileChooser.APPROVE_OPTION)
              {
                File selectedFile;
                selectedFile = loadRpt.getSelectedFile();

                if (selectedFile != null)
                {
                  if (jTextFieldReportFilename.getText().compareTo(selectedFile.getName()) != 0)
                  {
                    jTextFieldReportFilename.setText(selectedFile.getName());
                    jButtonUpdate.setEnabled(true);
                  }
                }
              }
            }
          });
        }
        {
          jTextFieldExecDir = new JTextField4j();
          jDesktopPane1.add(jTextFieldExecDir);
          jTextFieldExecDir.setBounds(164, 289, 427, 22);
          jTextFieldExecDir.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }

            public void keyReleased(KeyEvent evt) {
              jButtonIconPreview.setIcon(JDBModule.getModuleIcon(jTextFieldIconFilename.getText(), (String) jComboBoxType.getSelectedItem()));
            }
          });
        }
        {
          jTextFieldExecFilename = new JTextField4j();
          jDesktopPane1.add(jTextFieldExecFilename);
          jTextFieldExecFilename.setBounds(164, 261, 427, 22);
          jTextFieldExecFilename.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }

            public void keyReleased(KeyEvent evt) {
              jButtonIconPreview.setIcon(JDBModule.getModuleIcon(jTextFieldIconFilename.getText(), (String) jComboBoxType.getSelectedItem()));
            }
          });
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText(lang.get("lbl_Module_Report_Filename"));
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(0, 234, 152, 21);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Module_Executable_Filename"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(0, 262, 152, 21);
        }
        {
          jButtonExecDirChooser = new JButton4j();
          jDesktopPane1.add(jButtonExecDirChooser);
          jButtonExecDirChooser.setText("..");
          jButtonExecDirChooser.setBounds(591, 289, 17, 21);
          jButtonExecDirChooser.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

              JFileChooser loadDir = new JFileChooser();

              try
              {
                File f = new File(new File("").getCanonicalPath());
                loadDir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                loadDir.setCurrentDirectory(f);
                loadDir.setSelectedFile(new File(jTextFieldExecDir.getText()));

                if (loadDir.showOpenDialog(jButtonExecDirChooser) == JFileChooser.APPROVE_OPTION)
                {
                  File selectedFile;
                  selectedFile = loadDir.getSelectedFile();

                  if (selectedFile != null)
                  {
                    if (jTextFieldExecDir.getText().compareTo(selectedFile.getCanonicalPath()) != 0)
                    {
                      jTextFieldExecDir.setText(selectedFile.getCanonicalPath());
                      jButtonUpdate.setEnabled(true);
                    }
                  }
                }

              }
              catch (Exception e)
              {
              }

            }
          });
        }
        {
          jButtonExecFileChooser = new JButton4j();
          jDesktopPane1.add(jButtonExecFileChooser);
          jButtonExecFileChooser.setText("..");
          jButtonExecFileChooser.setBounds(591, 261, 17, 21);
          jButtonExecFileChooser.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {

              JFileChooser loadExec = new JFileChooser();

              try
              {
                File f = new File(new File("").getCanonicalPath());
                loadExec.setCurrentDirectory(f);
                loadExec.addChoosableFileFilter(new JFileFilterExecs());
                loadExec.setSelectedFile(new File(jTextFieldExecFilename.getText()));

                if (loadExec.showOpenDialog(jButtonExecFileChooser) == JFileChooser.APPROVE_OPTION)
                {
                  File selectedFile;
                  selectedFile = loadExec.getSelectedFile();

                  if (selectedFile != null)
                  {
                    if (jTextFieldExecFilename.getText().compareTo(selectedFile.getName()) != 0)
                    {
                      jTextFieldExecFilename.setText(selectedFile.getCanonicalPath());
                      jButtonUpdate.setEnabled(true);
                    }
                  }
                }

              }
              catch (Exception e)
              {
              }

            }
          });
        }

        {
          jButtonExecDirChooser_1 = new JButton4j();
          jButtonExecDirChooser_1.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {

              JFileChooser loadWeb = new JFileChooser();

              try
              {
                File f = new File(new File("./help/html/commander4j").getCanonicalPath());
                loadWeb.setCurrentDirectory(f);

                loadWeb.setSelectedFile(new File(jTextFieldHelpsetid.getText()));

                if (loadWeb.showOpenDialog(jButtonExecFileChooser) == JFileChooser.APPROVE_OPTION)
                {
                  File selectedFile;
                  selectedFile = loadWeb.getSelectedFile();

                  String fullpath = selectedFile.getCanonicalPath();
                  fullpath = fullpath.replace(Common.base_dir, "{base_dir}");

                  if (selectedFile != null)
                  {
                    if (jTextFieldHelpsetid.getText().compareTo(selectedFile.getName()) != 0)
                    {
                      jTextFieldHelpsetid.setText(fullpath);
                      jButtonUpdate.setEnabled(true);
                    }
                  }
                }

              }
              catch (Exception ex)
              {
              }

            }
          });
          jButtonExecDirChooser_1.setText("..");
          jButtonExecDirChooser_1.setBounds(591, 317, 17, 21);
          jDesktopPane1.add(jButtonExecDirChooser_1);
        }

        {
          jCheckBoxPrintPreview = new JCheckBox();
          jCheckBoxPrintPreview.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
          jCheckBoxPrintPreview.setSelected(true);
          jCheckBoxPrintPreview.setBackground(new Color(255, 255, 255));
          jCheckBoxPrintPreview.setText("New JCheckBox");
          jCheckBoxPrintPreview.setBounds(507, 178, 21, 21);
          jDesktopPane1.add(jCheckBoxPrintPreview);
        }

        {
          jCheckBoxPrintDialog = new JCheckBox();
          jCheckBoxPrintDialog.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
          jCheckBoxPrintDialog.setSelected(true);
          jCheckBoxPrintDialog.setBackground(new Color(255, 255, 255));
          jCheckBoxPrintDialog.setText("New JCheckBox");
          jCheckBoxPrintDialog.setBounds(507, 206, 21, 21);
          jDesktopPane1.add(jCheckBoxPrintDialog);
        }

        {
          jLabel3_1 = new JLabel4j_std();
          jLabel3_1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3_1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3_1.setText(lang.get("lbl_Module_Print_Preview"));
          jLabel3_1.setBounds(362, 178, 141, 21);
          jDesktopPane1.add(jLabel3_1);
        }

        {
          jLabel3_2 = new JLabel4j_std();
          jLabel3_2.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3_2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3_2.setText(lang.get("lbl_Module_Print_Dialog"));
          jLabel3_2.setBounds(356, 206, 147, 21);
          jDesktopPane1.add(jLabel3_2);
        }

        {
          jLabel3_3 = new JLabel4j_std();
          jLabel3_3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3_3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3_3.setText(lang.get("lbl_Module_Print_Copies"));
          jLabel3_3.setBounds(362, 234, 141, 21);
          jDesktopPane1.add(jLabel3_3);
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    comboBoxLanguage.setSelectedItem(printers.getLanguage());
    comboBox4jGroup.setSelectedItem(printers.getGroupID());
    comboBoxDPI.setSelectedItem(printers.getDPI());
    jButtonUpdate.setEnabled(false);

    JLabel4j_std label4j_std = new JLabel4j_std();
    label4j_std.setText("DPI");
    label4j_std.setHorizontalTextPosition(SwingConstants.RIGHT);
    label4j_std.setHorizontalAlignment(SwingConstants.RIGHT);
    label4j_std.setBounds(9, 145, 157, 19);
    jDesktopPane1.add(label4j_std);
   
  }
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

        jDesktopPane1.setBackground(Color.WHITE);
        this.getContentPane().add(jDesktopPane1);
        jDesktopPane1.setPreferredSize(new Dimension(452, 140));
        jDesktopPane1.setLayout(null);
        {
          jLabelDescription = new JLabel4j_std();
          jDesktopPane1.add(jLabelDescription);
          jLabelDescription.setText(lang.get("lbl_Description"));
          jLabelDescription.setBounds(9, 175, 157, 19);
          jLabelDescription.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDescription.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabelID = new JLabel4j_std();
          jDesktopPane1.add(jLabelID);
          jLabelID.setText(lang.get("lbl_Printer_ID"));
          jLabelID.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelID.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelID.setBounds(9, 15, 157, 19);
        }
        {
          jLabelType = new JLabel4j_std();
          jDesktopPane1.add(jLabelType);
          jLabelType.setText(lang.get("lbl_Printer_Type"));
          jLabelType.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelType.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelType.setBounds(9, 81, 157, 19);
        }
        {

          jButtonUpdate = new JButton4j(Common.icon_update);
          jDesktopPane1.add(jButtonUpdate);
          jButtonUpdate.setText(lang.get("btn_Save"));
          jButtonUpdate.setBounds(126, 307, 110, 30);
          jButtonUpdate.setMnemonic(java.awt.event.KeyEvent.VK_S);
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              printers.setDescription(jTextFieldDescription.getText());
              printers.setPrinterType(comboBoxPrinterType.getSelectedItem().toString());
              printers.setLanguage(JUtility.replaceNullStringwithBlank(comboBoxLanguage.getSelectedItem().toString()));
              printers.setIPAddress(jTextFieldIPAddress.getText());
              printers.setPort(jTextFieldPort.getText());
              printers.setGroupID(comboBox4jGroup.getSelectedItem().toString());
              printers.setDPI(comboBoxDPI.getSelectedItem().toString());
              if (chckbxEnabled.isSelected())
              {
                printers.setPrinterEnabled("Y");
              }
              else
              {
                printers.setPrinterEnabled("N");
              }
              printers.update();
              jButtonUpdate.setEnabled(false);
            }
          });
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(362, 307, 110, 30);
          jButtonClose.setMnemonic(java.awt.event.KeyEvent.VK_C);
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              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();
          comboBoxPrinterType.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
          comboBoxPrinterType.setModel(new DefaultComboBoxModel(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);
          jTextFieldDescription.setBounds(180, 173, 337, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setBounds(250, 307, 100, 30);
          jButtonHelp.setMnemonic(java.awt.event.KeyEvent.VK_H);
        }
        {
          comboBoxDPI.setPreferredSize(new Dimension(40, 20));
          comboBoxDPI.setFocusCycleRoot(true);
          comboBoxDPI.setBounds(177, 145, 89, 21);
          comboBoxDPI.setModel(new DefaultComboBoxModel(Common.printerDPI));
          comboBoxDPI.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              jButtonUpdate.setEnabled(true);
            }
          });
          jDesktopPane1.add(comboBoxDPI);
        }
      }
     

      chckbxEnabled.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent arg0) {
          jButtonUpdate.setEnabled(true);
        }
      });
      chckbxEnabled.setBounds(178, 272, 28, 23);
      jDesktopPane1.add(chckbxEnabled);
     
      JLabel4j_std label4jIPaddress = new JLabel4j_std();
      label4jIPaddress.setText(lang.get("lbl_IP_Address"));
      label4jIPaddress.setHorizontalTextPosition(SwingConstants.RIGHT);
      label4jIPaddress.setHorizontalAlignment(SwingConstants.RIGHT);
      label4jIPaddress.setBounds(9, 208, 157, 19);
      jDesktopPane1.add(label4jIPaddress);
     
      JLabel4j_std label4jPort = new JLabel4j_std();
      label4jPort.setText(lang.get("lbl_Port"));
      label4jPort.setHorizontalTextPosition(SwingConstants.RIGHT);
      label4jPort.setHorizontalAlignment(SwingConstants.RIGHT);
      label4jPort.setBounds(9, 241, 157, 19);
      jDesktopPane1.add(label4jPort);
     
      JLabel4j_std label4j_line = new JLabel4j_std();
      label4j_line.setText(lang.get("lbl_Language"));
      label4j_line.setHorizontalTextPosition(SwingConstants.RIGHT);
      label4j_line.setHorizontalAlignment(SwingConstants.RIGHT);
      label4j_line.setBounds(9, 114, 157, 19);
      jDesktopPane1.add(label4j_line);
     

      jTextFieldIPAddress.addKeyListener(new KeyAdapter() {
        @Override
        public void keyTyped(KeyEvent arg0) {
          jButtonUpdate.setEnabled(true);
        }
      });
      jTextFieldIPAddress.setText((String) null);
      jTextFieldIPAddress.setPreferredSize(new Dimension(40, 20));
      jTextFieldIPAddress.setFocusCycleRoot(true);
      jTextFieldIPAddress.setBounds(180, 206, 168, 21);
      jDesktopPane1.add(jTextFieldIPAddress);
     

      jTextFieldPort.addKeyListener(new KeyAdapter() {
        @Override
        public void keyTyped(KeyEvent e) {
          jButtonUpdate.setEnabled(true);
        }
      });
      jTextFieldPort.setText((String) null);
      jTextFieldPort.setPreferredSize(new Dimension(40, 20));
      jTextFieldPort.setFocusCycleRoot(true);
      jTextFieldPort.setBounds(179, 239, 168, 21);
      jDesktopPane1.add(jTextFieldPort);
     
      comboBoxLanguage.setModel(new DefaultComboBoxModel(Common.printerLanguage));
      comboBoxLanguage.setSelectedItem(printers.getLanguage());
      comboBoxLanguage.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          jButtonUpdate.setEnabled(true);
        }
      });
      comboBoxLanguage.setPreferredSize(new Dimension(40, 20));
      comboBoxLanguage.setFocusCycleRoot(true);
      comboBoxLanguage.setBounds(178, 112, 168, 21);
      jDesktopPane1.add(comboBoxLanguage);
     
      JLabel4j_std jTextFieldEnabled = new JLabel4j_std();
      jTextFieldEnabled.setText(lang.get("lbl_Enabled"));
      jTextFieldEnabled.setHorizontalTextPosition(SwingConstants.RIGHT);
      jTextFieldEnabled.setHorizontalAlignment(SwingConstants.RIGHT);
      jTextFieldEnabled.setBounds(9, 276, 157, 19);
      jDesktopPane1.add(jTextFieldEnabled);
     
      JLabel4j_std label4j_std = new JLabel4j_std();
      label4j_std.setText(lang.get("lbl_Group_ID"));
      label4j_std.setHorizontalTextPosition(SwingConstants.RIGHT);
      label4j_std.setHorizontalAlignment(SwingConstants.RIGHT);
      label4j_std.setBounds(9, 48, 157, 19);
      jDesktopPane1.add(label4j_std);
           
      comboBox4jGroup.setPreferredSize(new Dimension(40, 20));
      comboBox4jGroup.setFocusCycleRoot(true);
      comboBox4jGroup.setBounds(178, 46, 167, 21);
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    getContentPane().add(desktopPane);
    desktopPane.setLayout(null);

    setTitle("Results Enquiry");

    JLabel4j_std lblProcessOrder = new JLabel4j_std(lang.get("lbl_Process_Order"));
    lblProcessOrder.setBounds(6, 16, 111, 16);
    lblProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
    desktopPane.add(lblProcessOrder);

    textFieldProcessOrder = new JTextField4j();
    textFieldProcessOrder.setBounds(123, 14, 119, 22);

    desktopPane.add(textFieldProcessOrder);
    textFieldProcessOrder.setColumns(10);

    btnClose = new JButton4j(lang.get("btn_Close"));
    btnClose.setBounds(397, 157, 117, 29);
    btnClose.setIcon(Common.icon_close);
    btnClose.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        dispose();
      }
    });
    desktopPane.add(btnClose);

    JButton4j btnSearch = new JButton4j(lang.get("btn_Search"));
    btnSearch.setBounds(45, 157, 117, 29);
    btnSearch.setIcon(Common.icon_search);
    btnSearch.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        populateTable();
      }
    });
    desktopPane.add(btnSearch);

    JButton btnProcessOrderLookup = new JButton();
    btnProcessOrderLookup.setIcon(Common.icon_lookup);
    btnProcessOrderLookup.setBounds(240, 14, 21, 22);
    btnProcessOrderLookup.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        JLaunchLookup.dlgCriteriaDefault = "Ready";
        JLaunchLookup.dlgAutoExec = true;
        if (JLaunchLookup.processOrders())
        {
          textFieldProcessOrder.setText(JLaunchLookup.dlgResult);
        }
      }
    });
    desktopPane.add(btnProcessOrderLookup);

    lblStatusBar = new JLabel4j_std();
    lblStatusBar.setBounds(4, 612, 990, 21);
    lblStatusBar.setForeground(Color.RED);
    lblStatusBar.setBackground(Color.GRAY);
    desktopPane.add(lblStatusBar);

    scrollPaneResults = new JScrollPane();
    scrollPaneResults.setBounds(6, 198, 993, 410);
    scrollPaneResults.getViewport().setBackground(Common.color_tablebackground);
    desktopPane.setLayout(null);
    scrollPaneResults.setViewportView(table);
    desktopPane.add(scrollPaneResults);

    textFieldMaterial = new JTextField4j();
    textFieldMaterial.setColumns(10);
    textFieldMaterial.setBounds(386, 14, 119, 22);
    desktopPane.add(textFieldMaterial);

    JLabel4j_std lbl_material = new JLabel4j_std(lang.get("lbl_Material"));
    lbl_material.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_material.setBounds(263, 16, 111, 16);
    desktopPane.add(lbl_material);

    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.setColumns(10);
    textFieldInspectionID.setBounds(123, 115, 119, 22);
    desktopPane.add(textFieldInspectionID);

    lbl_inspection = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lbl_inspection.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_inspection.setBounds(6, 120, 111, 16);
    desktopPane.add(lbl_inspection);

    JButton4j btnExcel = new JButton4j(lang.get("btn_Excel"));
    btnExcel.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent arg0)
      {
        JExcel export = new JExcel();
        PreparedStatement temp = buildSQL();

        ResultSet rs;

        try
        {
          rs = temp.executeQuery();
          export.saveAs("qm_results.xls", rs, Common.mainForm);
        } catch (Exception e)
        {
          rs = null;

        }

      }
    });
    btnExcel.setIcon(Common.icon_XLS);
    btnExcel.setBounds(279, 157, 117, 29);
    desktopPane.add(btnExcel);

    JLabel4j_std label4j_std = new JLabel4j_std(lang.get("lbl_Sample_Date"));
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std.setBounds(6, 87, 108, 16);
    desktopPane.add(label4j_std);

    checkBoxSampleFrom = new JCheckBox();
    checkBoxSampleFrom.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (checkBoxSampleFrom.isSelected())
        {
          dateSampleFrom.setEnabled(true);
          calendarButtonsampleDateFrom.setEnabled(true);
        } else
        {
          dateSampleFrom.setEnabled(false);
          calendarButtonsampleDateFrom.setEnabled(false);
        }
      }
    });
    checkBoxSampleFrom.setBackground(Color.WHITE);
    checkBoxSampleFrom.setBounds(120, 80, 21, 25);
    desktopPane.add(checkBoxSampleFrom);

    dateSampleFrom = new JDateControl();
    dateSampleFrom.setFont(new Font("Arial", Font.PLAIN, 11));
    dateSampleFrom.setEnabled(false);
    dateSampleFrom.setBounds(142, 80, 128, 28);
    desktopPane.add(dateSampleFrom);

    checkBoxSampleTo = new JCheckBox();
    checkBoxSampleTo.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent e)
      {
        if (checkBoxSampleTo.isSelected())
        {
          dateSampleTo.setEnabled(true);
          calendarButtonsampleDateTo.setEnabled(true);
        } else
        {
          dateSampleTo.setEnabled(false);
          calendarButtonsampleDateTo.setEnabled(false);
        }
      }
    });
    checkBoxSampleTo.setBackground(Color.WHITE);
    checkBoxSampleTo.setBounds(373, 80, 21, 25);
    desktopPane.add(checkBoxSampleTo);

    dateSampleTo = new JDateControl();
    dateSampleTo.setFont(new Font("Arial", Font.PLAIN, 11));
    dateSampleTo.setEnabled(false);
    dateSampleTo.setBounds(396, 80, 128, 25);
    desktopPane.add(dateSampleTo);

    JLabel4j_std label4j_std_1 = new JLabel4j_std(lang.get("lbl_User_Data1"));
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(6, 50, 111, 16);
    desktopPane.add(label4j_std_1);

    JLabel4j_std label4j_std_2 = new JLabel4j_std(lang.get("lbl_User_Data2"));
    label4j_std_2.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_2.setBounds(263, 50, 111, 16);
    desktopPane.add(label4j_std_2);

    textFieldUserData1 = new JTextField4j();
    textFieldUserData1.setColumns(10);
    textFieldUserData1.setBounds(123, 44, 138, 22);
    desktopPane.add(textFieldUserData1);

    textFieldUserData2 = new JTextField4j();
    textFieldUserData2.setColumns(10);
    textFieldUserData2.setBounds(386, 44, 138, 22);
    desktopPane.add(textFieldUserData2);

    calendarButtonsampleDateFrom = new JCalendarButton(dateSampleFrom);
    calendarButtonsampleDateFrom.setSize(21, 21);
    calendarButtonsampleDateFrom.setEnabled(false);
    calendarButtonsampleDateFrom.setLocation(273, 84);
    desktopPane.add(calendarButtonsampleDateFrom);

    calendarButtonsampleDateTo = new JCalendarButton(dateSampleTo);
    calendarButtonsampleDateTo.setSize(21, 21);
    calendarButtonsampleDateTo.setEnabled(false);
    calendarButtonsampleDateTo.setLocation(526, 84);
    desktopPane.add(calendarButtonsampleDateTo);

    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.setModel(jSpinnerIntModel);
    jSpinnerLimit.setBounds(456, 113, 68, 21);
    jSpinnerLimit.setValue(1000);
    jSpinnerLimit.getEditor().setSize(45, 21);
    desktopPane.add(jSpinnerLimit);

    jCheckBoxLimit = new JCheckBox();
    desktopPane.add(jCheckBoxLimit);
    jCheckBoxLimit.setBackground(new java.awt.Color(255, 255, 255));
    jCheckBoxLimit.setBounds(433, 113, 21, 21);
    jCheckBoxLimit.setSelected(true);
    jCheckBoxLimit.addActionListener(new ActionListener()
    {
      public void actionPerformed(ActionEvent evt)
      {
        if (jCheckBoxLimit.isSelected())
        {
          jSpinnerLimit.setEnabled(true);
        } else
        {
          jSpinnerLimit.setEnabled(false);
        }
      }
    });

    jLabel10 = new JLabel4j_std();
    desktopPane.add(jLabel10);
    jLabel10.setText(lang.get("lbl_Limit"));
    jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
    jLabel10.setBounds(353, 113, 77, 21);

    JScrollPane scrollPaneDictionary = new JScrollPane();
    scrollPaneDictionary.setBounds(559, 32, 440, 154);

    listDictionary = new JList4j();

    ComboBoxModel model = new DefaultComboBoxModel(dict.getTestCheckListList());
    listDictionary.setModel(model);
    listDictionary.setCellRenderer(new MultiItemCheckListRenderer());
    listDictionary.addMouseListener(new MouseAdapter()
    {
      public void mouseClicked(MouseEvent event)
      {
        JList4j list = (JList4j) event.getSource();

        // Get index of item clicked

        int index = list.locationToIndex(event.getPoint());
        JCheckListItem item = (JCheckListItem) list.getModel().getElementAt(index);

        // Toggle selected state

        item.setSelected(!item.isSelected());

        // Repaint cell

        list.repaint(list.getCellBounds(index, index));
      }
    });

    scrollPaneDictionary.setViewportView(listDictionary);

    desktopPane.add(scrollPaneDictionary);

    JLabel4j_std label4j_std_3 = new JLabel4j_std(lang.get("lbl_Test_ID"));
    label4j_std_3.setBounds(559, 16, 111, 16);
    desktopPane.add(label4j_std_3);

    JButton btnInspectionIDLookup = new JButton();
    btnInspectionIDLookup.addActionListener(new ActionListener()
    {
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    }
    jTextFieldTotalMemory.setText(String.valueOf(Runtime.getRuntime().totalMemory()/1024) + "k");
    jTextFieldFreeMemory.setText(String.valueOf(Runtime.getRuntime().freeMemory()/1024) + "k");
   
    JLabel4j_std lblUsedMemory = new JLabel4j_std();
    lblUsedMemory.setText("Used Memory :");
    lblUsedMemory.setHorizontalAlignment(SwingConstants.TRAILING);
    lblUsedMemory.setBounds(530, 352, 91, 21);
    jDesktopPane1.add(lblUsedMemory);
   
    textFieldUsedMemory = new JTextField4j();
    textFieldUsedMemory.setText(String.valueOf((Runtime.getRuntime().totalMemory()-Runtime.getRuntime().freeMemory())/1024) + "k");
    textFieldUsedMemory.setHorizontalAlignment(SwingConstants.TRAILING);
    textFieldUsedMemory.setEnabled(false);
    textFieldUsedMemory.setEditable(false);
    textFieldUsedMemory.setBounds(632, 353, 119, 21);
    jDesktopPane1.add(textFieldUsedMemory);
   
    JLabel4j_std lblLocale = new JLabel4j_std();
    lblLocale.setText("Locale :");
    lblLocale.setHorizontalAlignment(SwingConstants.TRAILING);
    lblLocale.setBounds(476, 12, 58, 21);
    jDesktopPane1.add(lblLocale);
   
    textFieldLocale = new JTextField4j();
    textFieldLocale.setEnabled(false);
    textFieldLocale.setEditable(false);
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setBackground(Color.WHITE);
    desktopPane.setBounds(0, 0, 468, 184);
    getContentPane().add(desktopPane);

    JLabel4j_std lblShiftID = new JLabel4j_std(lang.get("lbl_Shift_ID"));
    lblShiftID.setBounds(6, 6, 126, 28);
    desktopPane.add(lblShiftID);
    lblShiftID.setHorizontalAlignment(SwingConstants.TRAILING);

    textFieldShiftID = new JTextField4j();
    textFieldShiftID.setEnabled(false);
    textFieldShiftID.setBounds(145, 6, 110, 28);
    desktopPane.add(textFieldShiftID);
    textFieldShiftID.setColumns(10);

    btnSave = new JButton4j(lang.get("btn_Save"));
    btnSave.setEnabled(false);
    btnSave.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0)
      {
        save();
      }
    });
    btnSave.setIcon(Common.icon_save);
    btnSave.setBounds(116, 106, 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(247, 106, 117, 29);
    desktopPane.add(btnClose);

    JLabel4j_std label4j_std_Description = new JLabel4j_std(lang.get("lbl_Description"));
    label4j_std_Description.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_Description.setBounds(6, 66, 126, 28);
    desktopPane.add(label4j_std_Description);

    textFieldDescription = new JTextField4j();
    textFieldDescription.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0)
      {
        enableSave();
      }
    });
    textFieldDescription.setColumns(10);
    textFieldDescription.setBounds(145, 66, 286, 28);
    desktopPane.add(textFieldDescription);

    shiftid = JUtility.replaceNullStringwithBlank(shiftid);

    textFieldShiftID.setText(shiftid);
    shifts.getProperties(shiftid);

    textFieldDescription.setText(shifts.getDescription());
    textField4jStartTime.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0)
      {
        enableSave();
      }
    });

    ((DateFormat) timeFormat).setLenient(false);

    try
    {
      MaskFormatter dateMask1 = new MaskFormatter("##:##:##");
      dateMask1.install(textField4jStartTime);
      MaskFormatter dateMask2 = new MaskFormatter("##:##:##");
      dateMask2.install(textField4jStartTime);
    } catch (ParseException ex)
    {

    }

    textField4jStartTime.setColumns(10);
    textField4jStartTime.setBounds(145, 36, 85, 28);
    textField4jStartTime.setFont(Common.font_std);

    textField4jStartTime.setText(shifts.getStartTime());

    desktopPane.add(textField4jStartTime);

    textField4jEndTime.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent arg0)
      {
        enableSave();
      }
    });
    textField4jEndTime.setText(shifts.getEndTime());
    textField4jEndTime.setColumns(10);
    textField4jEndTime.setBounds(344, 36, 85, 28);
    textField4jEndTime.setFont(Common.font_std);
    desktopPane.add(textField4jEndTime);

    JLabel4j_std label4j_std = new JLabel4j_std(lang.get("lbl_Start_Time"));
    label4j_std.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std.setBounds(6, 36, 126, 28);
    desktopPane.add(label4j_std);

    JLabel4j_std label4j_std_1 = new JLabel4j_std(lang.get("lbl_End_Time"));
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(232, 36, 99, 28);
    desktopPane.add(label4j_std_1);

    statusBar.setText("");
    statusBar.setForeground(Color.RED);
    statusBar.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

              dispose();
            }
          });
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText("Version :");
          jLabel1.setBounds(59, 258, 58, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText("Java Version :");
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(25, 10, 92, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText("Java VM Version :");
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(232, 10, 119, 21);
        }
        {
          jLabel4 = new JLabel4j_std();
          jDesktopPane1.add(jLabel4);
          jLabel4.setText("Java Home :");
          jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel4.setBounds(29, 40, 88, 21);
        }
        {
          jLabel7 = new JLabel4j_std();
          jDesktopPane1.add(jLabel7);
          jLabel7.setText("OS Name :");
          jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel7.setBounds(27, 72, 90, 21);
        }
        {
          jLabel8 = new JLabel4j_std();
          jDesktopPane1.add(jLabel8);
          jLabel8.setText("OS Architecture :");
          jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel8.setBounds(232, 72, 118, 21);
        }
        {
          jLabel9 = new JLabel4j_std();
          jDesktopPane1.add(jLabel9);
          jLabel9.setText("OS Version :");
          jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel9.setBounds(481, 72, 95, 21);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText("OS User Name :");
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(24, 103, 93, 21);
        }
        {
          jLabel11 = new JLabel4j_std();
          jDesktopPane1.add(jLabel11);
          jLabel11.setText("User Home :");
          jLabel11.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel11.setBounds(27, 165, 90, 21);
        }
        {
          jTextFieldJavaHome = new JTextField4j();
          jDesktopPane1.add(jTextFieldJavaHome);
          jTextFieldJavaHome.setBounds(129, 42, 622, 20);
          jTextFieldJavaHome.setEditable(false);
          jTextFieldJavaHome.setEnabled(false);
        }
        {
          jTextFieldJavaVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldJavaVersion);
          jTextFieldJavaVersion.setBounds(129, 11, 100, 20);
          jTextFieldJavaVersion.setEditable(false);
          jTextFieldJavaVersion.setEnabled(false);
        }
        {
          jTextFieldJavaVMVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldJavaVMVersion);
          jTextFieldJavaVMVersion.setBounds(360, 11, 100, 20);
          jTextFieldJavaVMVersion.setEditable(false);
          jTextFieldJavaVMVersion.setEnabled(false);
        }
        {
          jTextFieldOSName = new JTextField4j();
          jDesktopPane1.add(jTextFieldOSName);
          jTextFieldOSName.setBounds(129, 73, 100, 20);
          jTextFieldOSName.setEditable(false);
          jTextFieldOSName.setEnabled(false);
        }
        {
          jTextFieldOSArchitecture = new JTextField4j();
          jDesktopPane1.add(jTextFieldOSArchitecture);
          jTextFieldOSArchitecture.setBounds(360, 73, 100, 20);
          jTextFieldOSArchitecture.setEditable(false);
          jTextFieldOSArchitecture.setEnabled(false);
        }
        {
          jTextFieldOSVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldOSVersion);
          jTextFieldOSVersion.setBounds(582, 73, 169, 20);
          jTextFieldOSVersion.setEditable(false);
          jTextFieldOSVersion.setEnabled(false);
        }
        {
          jTextFieldUserName = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserName);
          jTextFieldUserName.setEditable(false);
          jTextFieldUserName.setBounds(129, 104, 231, 20);
        }
        {
          jTextFieldUserHome = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserHome);
          jTextFieldUserHome.setEditable(false);
          jTextFieldUserHome.setBounds(129, 166, 624, 20);
          jTextFieldUserHome.setEnabled(false);
        }
        {
          jTextFieldUserDir = new JTextField4j();
          jDesktopPane1.add(jTextFieldUserDir);
          jTextFieldUserDir.setEditable(false);
          jTextFieldUserDir.setBounds(129, 197, 624, 20);
          jTextFieldUserDir.setEnabled(false);
        }
        {
          jTextFieldDatabaseProductName = new JTextField4j();
          jDesktopPane1.add(jTextFieldDatabaseProductName);
          jTextFieldDatabaseProductName.setEditable(false);
          jTextFieldDatabaseProductName.setBounds(129, 228, 231, 20);
          jTextFieldDatabaseProductName.setEnabled(false);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText("Base Dir :");
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(27, 196, 90, 21);
        }
        {
          jTextFieldDatabaseProductVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldDatabaseProductVersion);
          jTextFieldDatabaseProductVersion.setEditable(false);
          jTextFieldDatabaseProductVersion.setBounds(129, 259, 623, 20);
          jTextFieldDatabaseProductVersion.setEnabled(false);
        }
        {
          jLabel6 = new JLabel4j_std();
          jDesktopPane1.add(jLabel6);
          jLabel6.setText("Version :");
          jLabel6.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel6.setBounds(66, 320, 51, 21);
        }
        {
          jLabel12 = new JLabel4j_std();
          jDesktopPane1.add(jLabel12);
          jLabel12.setText("Database Name :");
          jLabel12.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel12.setBounds(17, 227, 100, 21);
        }
        {
          jTextFieldJDBCDriverName = new JTextField4j();
          jDesktopPane1.add(jTextFieldJDBCDriverName);
          jTextFieldJDBCDriverName.setEditable(false);
          jTextFieldJDBCDriverName.setBounds(129, 290, 231, 20);
          jTextFieldJDBCDriverName.setEnabled(false);
        }
        {
          jTextFieldJDBCDriverVersion = new JTextField4j();
          jDesktopPane1.add(jTextFieldJDBCDriverVersion);
          jTextFieldJDBCDriverVersion.setEditable(false);
          jTextFieldJDBCDriverVersion.setBounds(129, 321, 622, 20);
          jTextFieldJDBCDriverVersion.setEnabled(false);
        }
        {
          jLabel13 = new JLabel4j_std();
          jDesktopPane1.add(jLabel13);
          jLabel13.setText("Driver Name :");
          jLabel13.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel13.setBounds(37, 289, 80, 21);
        }
        {
          jTextFieldTotalMemory = new JTextField4j();
          jDesktopPane1.add(jTextFieldTotalMemory);
          jTextFieldTotalMemory.setEditable(false);
          jTextFieldTotalMemory.setEnabled(false);
          jTextFieldTotalMemory.setBounds(129, 352, 119, 21);
          jTextFieldTotalMemory.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldFreeMemory = new JTextField4j();
          jDesktopPane1.add(jTextFieldFreeMemory);
          jTextFieldFreeMemory.setEditable(false);
          jTextFieldFreeMemory.setEnabled(false);
          jTextFieldFreeMemory.setBounds(359, 352, 119, 21);
          jTextFieldFreeMemory.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jLabel14 = new JLabel4j_std();
          jDesktopPane1.add(jLabel14);
          jLabel14.setText("Total Memory :");
          jLabel14.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel14.setBounds(12, 352, 105, 21);
        }
        {
          jLabel15 = new JLabel4j_std();
          jDesktopPane1.add(jLabel15);
          jLabel15.setText("Free Memory :");
          jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel15.setBounds(254, 352, 91, 21);
        }

        {
          jLabel101 = new JLabel4j_std();
          jLabel101.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel101.setText("Client Name :");
          jLabel101.setBounds(24, 134, 93, 21);
          jDesktopPane1.add(jLabel101);
        }

        {
          jTextFieldClientName = new JTextField4j();
          jTextFieldClientName.setEditable(false);
          jTextFieldClientName.setBounds(129, 135, 231, 20);
          jTextFieldClientName.setText(JUtility.getClientName());
          jDesktopPane1.add(jTextFieldClientName);
        }

        {
          jLabel102 = new JLabel4j_std();
          jLabel102.setHorizontalAlignment(SwingConstants.TRAILING);
            jLabel102.setText("Application User Name :");
          jLabel102.setBounds(355, 103, 146, 21);
          jDesktopPane1.add(jLabel102);
        }

        {
          jTextFieldUserNameApp = new JTextField4j();
          jTextFieldUserNameApp.setEditable(false);
          jTextFieldUserNameApp.setBounds(520, 104, 231, 20);
          jTextFieldUserNameApp.setText(Common.userList.getUser(Common.sessionID).getUserId());
          jDesktopPane1.add(jTextFieldUserNameApp);
        }

        {
          jLabel102_1 = new JLabel4j_std();
          jLabel102_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel102_1.setText("Session ID :");
          jLabel102_1.setBounds(383, 134, 118, 21);
          jDesktopPane1.add(jLabel102_1);
        }

        {
          jTextFieldUserSessionID = new JTextField4j();
          jTextFieldUserSessionID.setEditable(false);
          jTextFieldUserSessionID.setBounds(520, 134, 231, 20);
          jDesktopPane1.add(jTextFieldUserSessionID);
        }

        {
          jTextFieldUserHostID = new JTextField4j();
          jTextFieldUserHostID.setEditable(false);
          jTextFieldUserHostID.setBounds(435, 228, 32, 20);
          jDesktopPane1.add(jTextFieldUserHostID);
        }

        {
          jLabel102_2 = new JLabel4j_std();
          jLabel102_2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel102_2.setText("Host ID :");
          jLabel102_2.setBounds(383, 227, 51, 21);
          jDesktopPane1.add(jLabel102_2);
        }

        {
          jTextFieldUserHostDescription = new JTextField4j();
          jTextFieldUserHostDescription.setBounds(481, 228, 270, 20);
          jTextFieldUserHostDescription.setEditable(false);
          jDesktopPane1.add(jTextFieldUserHostDescription);
        }

        {
          jLabel102_3 = new JLabel4j_std();
          jLabel102_3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel102_3.setText("Unique Host Ref :");
          jLabel102_3.setBounds(383, 289, 95, 21);
          jDesktopPane1.add(jLabel102_3);
        }
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

          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<JDBUom> jComboBox2Model = new DefaultComboBoxModel<JDBUom>(uomList);
          jComboBoxUOM = new JComboBox4j<JDBUom>();
          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, 32);
          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<String> jComboBoxSortByModel = new DefaultComboBoxModel<String>(new String[] { "DATE_OF_MANUFACTURE", "SSCC", "MATERIAL", "PROCESS_ORDER", "BATCH_NUMBER", "DATE_OF_MANUFACTURE",
              "STATUS", "LOCATION_ID" });
          jComboBoxSortBy = new JComboBox4j<String>();
          jComboBoxSortBy.setBounds(571, 138, 195, 23);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
        }
        {
          ComboBoxModel<String> jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel<String>(Common.palletStatusIncBlank);
          jComboBoxPalletStatus = new JComboBox4j<String>();
          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, 134, 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 JCheckBox4j();
          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 JCheckBox4j();
          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 JCheckBox4j();
          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(937, 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 JCheckBox4j();
          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 JCheckBox4j();
          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 JCheckBox4j();
          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, 32);
          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);

        JLabel4j_std label = new JLabel4j_std();
        label.setBounds(42, 11, 93, 21);
        label.setText(lang.get("lbl_MHN_Number"));
        label.setHorizontalAlignment(SwingConstants.TRAILING);

        jDesktopPane1.add(label);
        jDesktopPane1.add(jLabel1);
        jDesktopPane1.add(jTextFieldMHN);
      }
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

    btnDictionary.setIcon(Common.icon_dictionary);
    btnDictionary.setEnabled(true);
    btnDictionary.setBounds(687, 108, 117, 28);
    panelTests.add(btnDictionary);
   
    JLabel4j_std lblInspectionID = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lblInspectionID.setBounds(6, 12, 83, 16);
    desktopPane.add(lblInspectionID);
    lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.setBounds(101, 9, 117, 21);
    desktopPane.add(textFieldInspectionID);
    textFieldInspectionID.setColumns(10);
   
    JLabel4j_std lblDescription = new JLabel4j_std(lang.get("lbl_Description"));
    lblDescription.setBounds(252, 12, 110, 16);
    desktopPane.add(lblDescription);
    lblDescription.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldDescription = new JTextField4j();
    textFieldDescription.setBounds(371, 9, 445, 21);
    desktopPane.add(textFieldDescription);
    textFieldDescription.setColumns(10);
   
    JButton4j btnSearch1 = new JButton4j(lang.get("btn_Search"));
    btnSearch1.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        buildSQL();
        populateInspectList("");
      }
    });
    btnSearch1.setBounds(262, 43, 117, 28);
    desktopPane.add(btnSearch1);
    btnSearch1.setIcon(Common.icon_search);
   
    JButton4j btnClose1 = new JButton4j(lang.get("btn_Close"));
    btnClose1.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        dispose();
      }
    });
    btnClose1.setBounds(395, 43, 117, 28);
    desktopPane.add(btnClose1);
    btnClose1.setIcon(Common.icon_close);
   
    chckbxLimit = new JCheckBox("");
    chckbxLimit.setBounds(711, 48, 28, 16);
    desktopPane.add(chckbxLimit);
    chckbxLimit.setSelected(true);
   
    spinnerLimit = new JSpinner();
    spinnerLimit.setBounds(740, 43, 76, 28);
    desktopPane.add(spinnerLimit);
    spinnerLimit.setValue(100);
    JSpinner.NumberEditor ne = new JSpinner.NumberEditor(spinnerLimit);
    ne.getTextField().setFont(Common.font_std);
    spinnerLimit.setEditor(ne);
   
    JLabel4j_std lbl_Limit = new JLabel4j_std(lang.get("lbl_Limit"));
    lbl_Limit.setHorizontalAlignment(SwingConstants.TRAILING);
    lbl_Limit.setBounds(589, 47, 110, 16);
    desktopPane.add(lbl_Limit);
   
    JButton4j btnLookupInspection = new JButton4j("");
    btnLookupInspection.setIcon(Common.icon_lookup);
    btnLookupInspection.addActionListener(new ActionListener() {
View Full Code Here

Examples of com.commander4j.gui.JLabel4j_std

        jDesktopPane1.setBackground(Common.color_edit_properties);
        this.getContentPane().add(jDesktopPane1);
        jDesktopPane1.setPreferredSize(new Dimension(452, 140));
        jDesktopPane1.setLayout(null);
        {
          jLabelSQLStatement = new JLabel4j_std();
          jDesktopPane1.add(jLabelSQLStatement);
          jLabelSQLStatement.setText(lang.get("lbl_Table"));
          jLabelSQLStatement.setBounds(5, 86, 185, 19);
          jLabelSQLStatement.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelSQLStatement.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabelArchiveID = new JLabel4j_std();
          jDesktopPane1.add(jLabelArchiveID);
          jLabelArchiveID.setText(lang.get("lbl_Archive_ID"));
          jLabelArchiveID.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelArchiveID.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelArchiveID.setBounds(5, 16, 185, 19);
        }
        {
          jLabelDescription = new JLabel4j_std();
          jDesktopPane1.add(jLabelDescription);
          jLabelDescription.setText(lang.get("lbl_Description"));
          jLabelDescription.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabelDescription.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabelDescription.setBounds(5, 51, 185, 19);
        }
        {

          jButtonUpdate = new JButton4j(Common.icon_update);
          jDesktopPane1.add(jButtonUpdate);
          jButtonUpdate.setText(lang.get("btn_Save"));
          jButtonUpdate.setBounds(90, 222, 126, 32);
          jButtonUpdate.setMnemonic(java.awt.event.KeyEvent.VK_S);
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              update();
            }
          });
        }
        {
          jButtonClose = new JButton4j(Common.icon_close);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setBounds(493, 222, 126, 32);
          jButtonClose.setMnemonic(java.awt.event.KeyEvent.VK_C);
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          jTextFieldArchiveID = new JTextField4j();
          jTextFieldArchiveID.setFocusable(false);
          jDesktopPane1.add(jTextFieldArchiveID);
          jTextFieldArchiveID.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldArchiveID.setEditable(false);
          jTextFieldArchiveID.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldArchiveID.setBounds(202, 15, 151, 21);
          jTextFieldArchiveID.setEnabled(false);
        }
        {
          jTextFieldDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldDescription);
          AbstractDocument doc = (AbstractDocument) jTextFieldDescription.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBControl.field_key_value));
          jTextFieldDescription.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldDescription.setFocusCycleRoot(true);
          jTextFieldDescription.setBounds(202, 49, 260, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });

        }
        {
          jTextFieldSQLTable = new JTextField4j();
          jDesktopPane1.add(jTextFieldSQLTable);
          AbstractDocument doc = (AbstractDocument) jTextFieldSQLTable.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBControl.field_description));
          jTextFieldSQLTable.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldSQLTable.setFocusCycleRoot(true);
          jTextFieldSQLTable.setBounds(202, 84, 260, 21);
          jTextFieldSQLTable.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setBounds(360, 222, 126, 32);
          jButtonHelp.setMnemonic(java.awt.event.KeyEvent.VK_H);
        }

        labelEnabled.setText(lang.get("lbl_Enabled"));
        labelEnabled.setFont(Common.font_std);
        labelEnabled.setHorizontalTextPosition(SwingConstants.RIGHT);
        labelEnabled.setHorizontalAlignment(SwingConstants.RIGHT);
        labelEnabled.setBounds(468, 16, 151, 19);
        jDesktopPane1.add(labelEnabled);

        chckbxEnabled.setBounds(624, 12, 28, 23);
        chckbxEnabled.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            jButtonUpdate.setEnabled(true);
          }
        });
        jDesktopPane1.add(chckbxEnabled);
       
        chckbxBackgroundTask.setBounds(624, 47, 28, 23);
        chckbxBackgroundTask.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            jButtonUpdate.setEnabled(true);
          }
        });
        jDesktopPane1.add(chckbxBackgroundTask);

        JLabel4j_std label4jRetention = new JLabel4j_std();
        label4jRetention.setText(lang.get("lbl_Retention_Days"));
        label4jRetention.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4jRetention.setHorizontalAlignment(SwingConstants.RIGHT);
        label4jRetention.setBounds(5, 158, 185, 19);
        jDesktopPane1.add(label4jRetention);

        JLabel4j_std label4j_Sequence = new JLabel4j_std();
        label4j_Sequence.setText(lang.get("lbl_Sequence_ID"));
        label4j_Sequence.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4j_Sequence.setHorizontalAlignment(SwingConstants.RIGHT);
        label4j_Sequence.setBounds(5, 191, 185, 19);
        jDesktopPane1.add(label4j_Sequence);

        SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel();
        jSpinnerIntModel.setMinimum(30);
        jSpinnerIntModel.setMaximum(9999);

        jSpinnerIntModel.setStepSize(1);
        jSpinnerRetention = new JSpinner();
        jSpinnerRetention.addKeyListener(new KeyAdapter() {
          @Override
          public void keyTyped(KeyEvent e) {
            jButtonUpdate.setEnabled(true);
          }
        });
        jSpinnerRetention.addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
            jButtonUpdate.setEnabled(true);
            arch.setRetentionDays((int) jSpinnerRetention.getValue());
            label4jArchiveBefore.setText(arch.getSQLArchiveDate().toString().substring(0, 16));
          }
        });
        jSpinnerRetention.setModel(jSpinnerIntModel);
        jSpinnerRetention.setBounds(202, 152, 79, 28);

        jSpinnerRetention.getEditor().setSize(45, 21);
        JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerRetention);
        ne.getTextField().setFont(Common.font_std);
        jSpinnerRetention.setEditor(ne);
        jDesktopPane1.add(jSpinnerRetention);

        SpinnerNumberModel jSpinnerSeqModel = new SpinnerNumberModel();
        jSpinnerSeqModel.setMinimum(0);
        jSpinnerSeqModel.setMaximum(9990);

        jSpinnerSeqModel.setStepSize(10);
        jSpinnerSequence = new JSpinner();
        jSpinnerSequence.addKeyListener(new KeyAdapter() {
          @Override
          public void keyTyped(KeyEvent e) {
            jButtonUpdate.setEnabled(true);
          }
        });
        jSpinnerSequence.addChangeListener(new ChangeListener() {
          public void stateChanged(ChangeEvent e) {
            jButtonUpdate.setEnabled(true);
          }
        });

        JSpinner.NumberEditor ne2 = new JSpinner.NumberEditor(jSpinnerSequence);
        ne2.getTextField().setFont(Common.font_std);
        jSpinnerSequence.setEditor(ne2);
        jSpinnerSequence.setModel(jSpinnerSeqModel);
        jSpinnerSequence.setBounds(202, 185, 79, 28);

        jSpinnerSequence.getEditor().setSize(45, 21);

        jDesktopPane1.add(jSpinnerSequence);

        jTextFieldSQLCriteria.setText("");
        jTextFieldSQLCriteria.setPreferredSize(new Dimension(40, 20));
        jTextFieldSQLCriteria.setFocusCycleRoot(true);
        jTextFieldSQLCriteria.setBounds(202, 117, 450, 21);
        jTextFieldSQLCriteria.addKeyListener(new KeyAdapter() {
          @Override
          public void keyTyped(KeyEvent e) {
            jButtonUpdate.setEnabled(true);
          }
        });
        jDesktopPane1.add(jTextFieldSQLCriteria);

        JLabel4j_std label4j_Criteria = new JLabel4j_std();
        label4j_Criteria.setText(lang.get("lbl_Criteria"));
        label4j_Criteria.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4j_Criteria.setHorizontalAlignment(SwingConstants.RIGHT);
        label4j_Criteria.setBounds(5, 117, 185, 19);
        jDesktopPane1.add(label4j_Criteria);

        JButton4j jButtonRun = new JButton4j(Common.icon_execute);
        jButtonRun.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            update();
            JDBArchive c = new JDBArchive(Common.selectedHostID, Common.sessionID);
            c.runManual(larchiveID);
          }
        });
        jButtonRun.setText(lang.get("btn_Run"));
        jButtonRun.setMnemonic(KeyEvent.VK_H);
        jButtonRun.setBounds(222, 222, 126, 32);
        jDesktopPane1.add(jButtonRun);
       
        JLabel4j_std label4jBackgroundTask = new JLabel4j_std();
        label4jBackgroundTask.setText(lang.get("lbl_Background_Task"));
        label4jBackgroundTask.setHorizontalTextPosition(SwingConstants.RIGHT);
        label4jBackgroundTask.setHorizontalAlignment(SwingConstants.RIGHT);
        label4jBackgroundTask.setFont(Common.font_std);
        label4jBackgroundTask.setBounds(468, 51, 151, 19);
        jDesktopPane1.add(label4jBackgroundTask);
       

        label4jArchiveBefore.setText((String) null);
        label4jArchiveBefore.setHorizontalTextPosition(SwingConstants.LEFT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.