Package com.commander4j.gui

Examples of com.commander4j.gui.JLabel4j_std


    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setBackground(Common.color_edit_properties);
    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_update);
    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


      });
      button4jHistory.setText(lang.get("btn_History"));
      button4jHistory.setBounds(726, 331, 120, 32);
      jDesktopPane1.add(button4jHistory);
     
      jStatusText = new JLabel4j_std();
      jStatusText.setForeground(Color.RED);
      jStatusText.setBackground(Color.GRAY);
      jStatusText.setBounds(0, 369, 985, 21);
      jDesktopPane1.add(jStatusText);
View Full Code Here

    JDesktopPane desktopPane = new JDesktopPane();
    desktopPane.setBackground(Common.color_edit_properties);
    desktopPane.setBounds(0, 0, 855, 118);
    getContentPane().add(desktopPane);
   
    JLabel4j_std lblInspectionID = new JLabel4j_std(lang.get("lbl_Inspection_ID"));
    lblInspectionID.setBounds(8, 27, 87, 16);
    desktopPane.add(lblInspectionID);
    lblInspectionID.setHorizontalAlignment(SwingConstants.TRAILING);
   
    textFieldInspectionID = new JTextField4j();
    textFieldInspectionID.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldInspectionID.setEnabled(false);
    textFieldInspectionID.setBounds(108, 22, 153, 28);
    desktopPane.add(textFieldInspectionID);
    textFieldInspectionID.setColumns(10);
   
   
    textFieldInspectionDescription = new JTextField4j();
    textFieldInspectionDescription.addKeyListener(new KeyAdapter() {
      @Override
      public void keyReleased(KeyEvent e) {
        enableSave();
      }
    });
    textFieldInspectionDescription.setBounds(377, 22, 463, 28);
    desktopPane.add(textFieldInspectionDescription);
    textFieldInspectionDescription.setColumns(10);
   

   
    btnSave = new JButton4j(lang.get("btn_Save"));
    btnSave.setEnabled(false);
    btnSave.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        save();
      }
    });
    btnSave.setIcon(Common.icon_update);
    btnSave.setBounds(293, 75, 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(414, 75, 117, 29);
    desktopPane.add(btnClose);
   
    JLabel4j_std label4j_std_1 = new JLabel4j_std(lang.get("lbl_Description"));
    label4j_std_1.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_1.setBounds(273, 27, 92, 16);
    desktopPane.add(label4j_std_1);
   
    inspectionid = JUtility.replaceNullStringwithBlank(inspectionid);
   
    textFieldInspectionID.setText(inspectionid);
View Full Code Here

    btn4j_Close.setText(lang.get("btn_Close"));
    btn4j_Close.setMnemonic('0');
    btn4j_Close.setBounds(604, 576, 126, 30);
    desktopPane.add(btn4j_Close);

    JLabel4j_std label4j_std_ReportID = new JLabel4j_std();
    label4j_std_ReportID.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_ReportID.setText(lang.get("lbl_Report_ID"));
    label4j_std_ReportID.setBounds(6, 23, 97, 15);
    desktopPane.add(label4j_std_ReportID);

    JLabel4j_std label4j_std_Description = new JLabel4j_std();
    label4j_std_Description.setText(lang.get("lbl_Description"));
    label4j_std_Description.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_Description.setBounds(6, 86, 97, 15);
    desktopPane.add(label4j_std_Description);
    textField4j_ReportID.setEnabled(false);
    textField4j_ReportID.setCaretPosition(0);
    textField4j_ReportID.setBounds(117, 17, 119, 21);
    desktopPane.add(textField4j_ReportID);
    textField4j_Description.setCaretPosition(0);
    textField4j_Description.setBounds(117, 85, 286, 21);
    desktopPane.add(textField4j_Description);

    JSpinner.NumberEditor ne = new JSpinner.NumberEditor(spinner_Sequence);
    ne.getTextField().setFont(Common.font_std);
    spinner_Sequence.setEditor(ne);
    spinner_Sequence.setBounds(354, 52, 49, 21);
    spinner_Sequence.setFont(Common.font_std);
    desktopPane.add(spinner_Sequence);

    JLabel4j_std label4j_std_Sequence = new JLabel4j_std();
    label4j_std_Sequence.setText(lang.get("lbl_Sequence_ID"));
    label4j_std_Sequence.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_Sequence.setBounds(243, 58, 97, 15);
    desktopPane.add(label4j_std_Sequence);

    JScrollPane scrollPane = new JScrollPane();
    scrollPane.setBounds(117, 185, 613, 170);
    desktopPane.add(scrollPane);
    textArea_SQL.setBackground(new Color(224, 255, 255));
    textArea_SQL.setLocation(117, 0);
    textArea_SQL.setFont(new Font("Monospaced", Font.PLAIN, 12));
    textArea_SQL.setForeground(new Color(0, 0, 255));
    scrollPane.setViewportView(textArea_SQL);

    JLabel4j_std label4j_std_SQL = new JLabel4j_std();
    label4j_std_SQL.setFont(Common.font_std);
    label4j_std_SQL.setText(lang.get("lbl_SQL"));
    label4j_std_SQL.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_SQL.setBounds(6, 189, 97, 15);
    desktopPane.add(label4j_std_SQL);

    comboBox4j_Destination.setModel(new DefaultComboBoxModel(new String[] {"ACCESS", "CSV", "EXCEL", "JASPER_REPORTS", "PDF"}));
    comboBox4j_Destination.setBounds(117, 367, 198, 23);
    desktopPane.add(comboBox4j_Destination);
    comboBox4j_Destination.addItemListener(new ItemListener() {

      @Override
      public void itemStateChanged(ItemEvent arg0) {
        if (arg0.getStateChange() == ItemEvent.SELECTED) {
          setDestinationButtons();
        }
      }
    });

    JLabel4j_std label4j_std_Destination = new JLabel4j_std();
    label4j_std_Destination.setText(lang.get("lbl_Output"));
    label4j_std_Destination.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_Destination.setBounds(6, 370, 97, 15);
    desktopPane.add(label4j_std_Destination);

    chckbxEnabled.setBounds(112, 50, 128, 23);
    chckbxEnabled.setText(lang.get("lbl_Interface_Enabled"));
    chckbxEnabled.setFont(Common.font_std);
    desktopPane.add(chckbxEnabled);

    label4j_std_Report_Path.setText(lang.get("lbl_Module_ID"));
    label4j_std_Report_Path.setHorizontalAlignment(SwingConstants.RIGHT);
    label4j_std_Report_Path.setBounds(319, 370, 119, 15);
    desktopPane.add(label4j_std_Report_Path);
    textField4j_ModuleID.setCaretPosition(0);
    textField4j_ModuleID.setBounds(452, 367, 254, 21);
    desktopPane.add(textField4j_ModuleID);

    button4j_ModuleID.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent evt) {


        JLaunchLookup.dlgAutoExec = false;
        JLaunchLookup.dlgCriteriaDefault = "REPORT";
        if (JLaunchLookup.modules())
        {
          textField4j_ModuleID.setText(JLaunchLookup.dlgResult);
        }

      }
    });

    button4j_ModuleID.setText("..");
    button4j_ModuleID.setBounds(705, 367, 21, 21);
    desktopPane.add(button4j_ModuleID);

    label4j_statusBar.setForeground(Color.RED);
    label4j_statusBar.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    label4j_statusBar.setBounds(0, 618, 762, 21);
    desktopPane.add(label4j_statusBar);

    JButton4j button4j_Run = new JButton4j(Common.icon_execute);
    button4j_Run.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        runReport(textField4j_ReportID.getText());
      }
    });
    button4j_Run.setText(lang.get("btn_Run"));
    button4j_Run.setMnemonic('0');
    button4j_Run.setBounds(166, 576, 126, 30);
    desktopPane.add(button4j_Run);

    JButton4j button4j_ViewSchema = new JButton4j(Common.icon_help);
    button4j_ViewSchema.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JLaunchMenu.runForm("FRM_ADMIN_SCHEMA_BROWSE");
      }
    });
    button4j_ViewSchema.setText(lang.get("btn_Schema"));
    button4j_ViewSchema.setMnemonic('0');
    button4j_ViewSchema.setBounds(312, 576, 126, 30);
    desktopPane.add(button4j_ViewSchema);

    JPanel panel = new JPanel();
    panel.setBorder(BorderFactory.createEtchedBorder());
    panel.setBackground(Color.WHITE);
    panel.setBounds(415, 10, 315, 116);
    desktopPane.add(panel);
    panel.setLayout(null);
    checkBox_Private.setBounds(95, 5, 186, 23);
    checkBox_Private.setFont(Common.font_std);
    checkBox_Private.setText(lang.get("lbl_Private"));
    panel.add(checkBox_Private);
    label4j_std_UserID.setBounds(6, 48, 84, 15);
    panel.add(label4j_std_UserID);

    label4j_std_UserID.setText(lang.get("lbl_User_ID"));
    label4j_std_UserID.setHorizontalAlignment(SwingConstants.TRAILING);
    label4j_std_GroupID.setBounds(6, 81, 84, 15);
    panel.add(label4j_std_GroupID);

    label4j_std_GroupID.setText(lang.get("lbl_Group_ID"));
    label4j_std_GroupID.setHorizontalAlignment(SwingConstants.TRAILING);
    textField4j_GroupID.setBounds(95, 75, 186, 21);
    panel.add(textField4j_GroupID);
    textField4j_GroupID.setCaretPosition(0);
    textField4j_UserID.setBounds(95, 42, 186, 21);
    panel.add(textField4j_UserID);
    textField4j_UserID.setCaretPosition(0);
    button4j_UserLookup.setBounds(279, 42, 21, 21);
    panel.add(button4j_UserLookup);
    button4j_GroupLookup.setBounds(279, 75, 21, 21);
    panel.add(button4j_GroupLookup);
    checkBoxDateParameters.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        setDateRangeButtons();
      }
    });

    checkBoxDateParameters.setSelected(true);
    checkBoxDateParameters.setText(lang.get("lbl_Date_Params_Reqd"));
    checkBoxDateParameters.setFont(new Font("Arial", Font.PLAIN, 11));
    checkBoxDateParameters.setBounds(112, 118, 210, 23);
    desktopPane.add(checkBoxDateParameters);

    checkBoxPreview.setText(lang.get("lbl_View_Output"));
    checkBoxPreview.setSelected(true);
    checkBoxPreview.setFont(new Font("Arial", Font.PLAIN, 11));
    checkBoxPreview.setBounds(117, 402, 248, 23);
    desktopPane.add(checkBoxPreview);

    checkBoxSaveAs.setText(lang.get("lbl_Save_As"));
    checkBoxSaveAs.setSelected(true);
    checkBoxSaveAs.setFont(new Font("Arial", Font.PLAIN, 11));
    checkBoxSaveAs.setBounds(458, 402, 272, 23);
    desktopPane.add(checkBoxSaveAs);

    JLabel4j_std label4j_std_Save_Path = new JLabel4j_std();
    label4j_std_Save_Path.setText(lang.get("lbl_Save_Path"));
    label4j_std_Save_Path.setBounds(120, 440, 166, 15);
    desktopPane.add(label4j_std_Save_Path);

    textField4j_SavePath.setText("");
    textField4j_SavePath.setCaretPosition(0);
    textField4j_SavePath.setBounds(117, 459, 589, 21);
    desktopPane.add(textField4j_SavePath);

    final JButton4j button4j_SavePath = new JButton4j((Icon) null);
    button4j_SavePath.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        JFileChooser loadDir = new JFileChooser();

        try {
          // Set the current directory
          File f = new File(new File("").getCanonicalPath());
          loadDir.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
          loadDir.setCurrentDirectory(f);
          loadDir.setSelectedFile(new File(textField4j_SavePath.getText()));

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

            if (selectedFile != null) {
              if (textField4j_SavePath.getText().compareTo(selectedFile.getCanonicalPath()) != 0) {
                textField4j_SavePath.setText(selectedFile.getCanonicalPath());
              }
            }
          }

        } catch (Exception ex) {
        }
      }
    });
    button4j_SavePath.setText("..");
    button4j_SavePath.setBounds(705, 459, 21, 21);
    desktopPane.add(button4j_SavePath);

    domDateFrom.setFont(new Font("Arial", Font.PLAIN, 11));
    domDateFrom.setBounds(117, 148, 128, 25);
    desktopPane.add(domDateFrom);

    button_CalendardomDateFrom.setBounds(246, 150, 21, 21);
    desktopPane.add(button_CalendardomDateFrom);

    domDateTo.setFont(new Font("Arial", Font.PLAIN, 11));
    domDateTo.setBounds(354, 148, 128, 25);
    desktopPane.add(domDateTo);

    button_CalendardomDateTo.setBounds(483, 150, 21, 21);
    desktopPane.add(button_CalendardomDateTo);

    lblStart = new JLabel4j_std(lang.get("web_From"));
    lblStart.setHorizontalAlignment(SwingConstants.TRAILING);
    lblStart.setBounds(6, 153, 97, 15);
    desktopPane.add(lblStart);

    label4jEnd = new JLabel4j_std(lang.get("web_To"));
    label4jEnd.setHorizontalAlignment(SwingConstants.TRAILING);
    label4jEnd.setBounds(277, 153, 63, 15);
    desktopPane.add(label4jEnd);
    chckbxEmailEnabled.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        setEmailButtons();
        if (chckbxEmailEnabled.isSelected())
        {
          if (textField4j_EmailAddresses.getText().equals(""))
          {
            textField4j_EmailAddresses.setText(Common.userList.getUser(Common.sessionID).getEmailAddress());
          }
        }
      }
    });
   
    chckbxEmailEnabled.setText(lang.get("lbl_Email_Output"));
    chckbxEmailEnabled.setSelected(true);
    chckbxEmailEnabled.setFont(new Font("Arial", Font.PLAIN, 11));
    chckbxEmailEnabled.setBounds(117, 492, 248, 23);
    desktopPane.add(chckbxEmailEnabled);
   
    chckbxEmailPrompt.setText(lang.get("lbl_Email_Prompt"));
    chckbxEmailPrompt.setSelected(true);
    chckbxEmailPrompt.setFont(new Font("Arial", Font.PLAIN, 11));
    chckbxEmailPrompt.setBounds(458, 492, 248, 23);
    desktopPane.add(chckbxEmailPrompt);
   
    textField4j_EmailAddresses.setText("");
    textField4j_EmailAddresses.setCaretPosition(0);
    textField4j_EmailAddresses.setBounds(117, 543, 589, 21);
    desktopPane.add(textField4j_EmailAddresses);
   
    JLabel4j_std label4j_std = new JLabel4j_std();
    label4j_std.setText(lang.get("lbl_Email_Addresses"));
    label4j_std.setBounds(120, 527, 166, 15);
    desktopPane.add(label4j_std);

    button4j_GroupLookup.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        JLaunchLookup.dlgAutoExec = true;
View Full Code Here

            }
          });
        }

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

    });

    jListFields.setSelectedIndex(-1);
    scrollPaneFields.setViewportView(jListFields);

    JLabel4j_std lblCriteria = new JLabel4j_std(lang.get("lbl_Fields"));
    lblCriteria.setBounds(289, 12, 126, 15);
    desktopPane.add(lblCriteria);

    JLabel4j_std lblReport = new JLabel4j_std(lang.get("lbl_Database_Tables"));
    lblReport.setBounds(12, 12, 126, 15);
    desktopPane.add(lblReport);
   
    JButton4j button4jClose = new JButton4j(Common.icon_close);
    button4jClose.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
View Full Code Here

              dispose();
            }
          });
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel1.setBounds(49, 13, 70, 21);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setText(lmaterial);
          jTextFieldMaterial.setBounds(126, 13, 126, 21);
          jTextFieldMaterial.setEnabled(false);
          jTextFieldMaterial.setEditable(false);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Material_Batch"));
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel3.setBounds(49, 41, 70, 21);
        }
        {
          jTextFieldBatch = new JTextField4j();
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setText(lbatch);
          jTextFieldBatch.setBounds(126, 41, 126, 21);
          jTextFieldBatch.setEnabled(false);
          jTextFieldBatch.setEditable(false);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(35, 97, 84, 21);
        }
        {
          ComboBoxModel<String> jComboBoxStatusModel = new DefaultComboBoxModel<String>(Common.batchStatusIncBlank);
          jComboBoxStatus = new JComboBox4j<String>();
          jDesktopPane1.add(jComboBoxStatus);
          jComboBoxStatus.setModel(jComboBoxStatusModel);
          jComboBoxStatus.setBounds(126, 69, 150, 21);
          jComboBoxStatus.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jLabel2 = new JLabel4j_std();
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Material_Batch_Status"));
          jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel2.setBounds(42, 69, 77, 21);
        }
View Full Code Here

          jDesktopPane1.add(btnForground);
        }
        jTextFieldDescription.setBackground(decis.getBackground());
        jTextFieldDescription.setForeground(decis.getForeground());
       
        JLabel4j_std label = new JLabel4j_std();
        label.setText(lang.get("lbl_Pallet_Status"));
        label.setHorizontalAlignment(SwingConstants.TRAILING);
        label.setBounds(0, 73, 97, 21);
        jDesktopPane1.add(label);

      }
    });
  }
View Full Code Here

      {
        jDesktopPane1 = new JDesktopPane();
        jDesktopPane1.setBackground(Common.color_edit_properties);
        getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel1.setText(lang.get("lbl_Decision"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel1.setBounds(0, 7, 98, 21);
        }
        {
          jTextFieldReason = new JTextField4j();
          jDesktopPane1.add(jTextFieldReason, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldReason.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldReason.setEditable(false);
          jTextFieldReason.setEnabled(false);
          jTextFieldReason.setBounds(105, 7, 100, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jLabel3.setText(lang.get("lbl_Description"));
          jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel3.setHorizontalTextPosition(SwingConstants.RIGHT);
          jLabel3.setBounds(0, 40, 98, 21);
View Full Code Here

              dispose();
            }
          });
        }
        {
          jLabel1 = new JLabel4j_std();
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Material"));
          jLabel1.setBounds(0, 11, 91, 21);
          jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldMaterial = new JTextField4j();
          jDesktopPane1.add(jTextFieldMaterial);
          jTextFieldMaterial.setBounds(99, 11, 141, 21);
        }
        {
          jLabel3 = new JLabel4j_std();
          jDesktopPane1.add(jLabel3);
          jLabel3.setText(lang.get("lbl_Material_Batch"));
          jLabel3.setBounds(0, 44, 91, 21);
          jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
        }
        {
          jTextFieldBatch = new JTextField4j();
          jDesktopPane1.add(jTextFieldBatch);
          jTextFieldBatch.setBounds(99, 44, 141, 21);
        }
        {
          jLabel10 = new JLabel4j_std();
          jDesktopPane1.add(jLabel10);
          jLabel10.setText(lang.get("lbl_Sort_By"));
          jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel10.setBounds(0, 178, 91, 21);
        }
        {
          ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "MATERIAL", "BATCH_NUMBER", "STATUS", "EXPIRY_DATE" });
          jComboBoxSortBy = new JComboBox4j();
          jDesktopPane1.add(jComboBoxSortBy);
          jComboBoxSortBy.setModel(jComboBoxSortByModel);
          jComboBoxSortBy.setBounds(99, 176, 141, 23);
        }
        {
          jLabel5 = new JLabel4j_std();
          jDesktopPane1.add(jLabel5);
          jLabel5.setText(lang.get("lbl_Material_Batch_Status"));
          jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5.setBounds(0, 79, 91, 21);
        }
        {
          ComboBoxModel jComboBoxStatusModel = new DefaultComboBoxModel(Common.batchStatusIncBlank);
          jComboBoxStatus = new JComboBox4j();
          jDesktopPane1.add(jComboBoxStatus);
          jComboBoxStatus.setModel(jComboBoxStatusModel);
          jComboBoxStatus.setBounds(99, 77, 141, 23);
        }
        {
          jToggleButtonSequence = new JToggleButton();
          jDesktopPane1.add(jToggleButtonSequence);
          jToggleButtonSequence.setBounds(246, 178, 21, 21);
          jToggleButtonSequence.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              setSequence(jToggleButtonSequence.isSelected());
            }
          });
        }

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

        {
          jButtonLookupBatch = new JButton4j();
          jButtonLookupBatch.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
              JLaunchLookup.dlgAutoExec = true;
              if (JLaunchLookup.materialBatches())
              {
                jTextFieldBatch.setText(JLaunchLookup.dlgResult);
              }

            }
          });
          jButtonLookupBatch.setBounds(246, 44, 21, 21);
          jDesktopPane1.add(jButtonLookupBatch);
        }

        {
          expiryFrom.setBounds(120, 110, 125, 25);
          expiryFrom.setEnabled(false);
          jDesktopPane1.add(expiryFrom);
        }

        {
          expiryTo.setBounds(120, 143, 125, 25);
          expiryTo.setEnabled(false);
          jDesktopPane1.add(expiryTo);
        }

        {
          jLabel5_1 = new JLabel4j_std();
          jLabel5_1.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5_1.setText(lang.get("lbl_Material_Batch_Expiry_From"));
          jLabel5_1.setBounds(0, 110, 91, 21);
          jDesktopPane1.add(jLabel5_1);
        }

        {
          jLabel5_2 = new JLabel4j_std();
          jLabel5_2.setHorizontalAlignment(SwingConstants.TRAILING);
          jLabel5_2.setText(lang.get("lbl_Material_Batch_Expiry_To"));
          jLabel5_2.setBounds(0, 147, 91, 21);
          jDesktopPane1.add(jLabel5_2);
        }

        {
          jCheckBoxFrom = new JCheckBox();
          jCheckBoxFrom.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              if (jCheckBoxFrom.isSelected())
              {
                expiryFrom.setEnabled(true);
                calendarButtonexpiryFrom.setEnabled(true);
              }
              else
              {
                expiryFrom.setEnabled(false);
                calendarButtonexpiryFrom.setEnabled(false);
              }
            }
          });
          jCheckBoxFrom.setBackground(new Color(255, 255, 255));
          jCheckBoxFrom.setText("New JCheckBox");
          jCheckBoxFrom.setBounds(99, 110, 21, 21);
          jDesktopPane1.add(jCheckBoxFrom);
        }

        {
          jCheckBoxTo = new JCheckBox();
          jCheckBoxTo.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
              if (jCheckBoxTo.isSelected())
              {
                expiryTo.setEnabled(true);
                calendarButtonexpiryTo.setEnabled(true);
              }
              else
              {
                expiryTo.setEnabled(false);
                calendarButtonexpiryTo.setEnabled(false);
              }
            }
          });
          jCheckBoxTo.setBackground(new Color(255, 255, 255));
          jCheckBoxTo.setText("New JCheckBox");
          jCheckBoxTo.setBounds(99, 143, 21, 21);
          jDesktopPane1.add(jCheckBoxTo);
        }

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

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

TOP

Related Classes of com.commander4j.gui.JLabel4j_std

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