Package com.commander4j.gui

Examples of com.commander4j.gui.JTextField4j


    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();
      }
View Full Code Here


        this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);

        jDesktopPane1.setPreferredSize(new java.awt.Dimension(361, 104));
        jDesktopPane1.setLayout(null);
        {
          jTextFieldResourceKey = new JTextField4j();
          jTextFieldResourceKey.setBounds(130, 10, 355, 21);
          jDesktopPane1.add(jTextFieldResourceKey);
          jTextFieldResourceKey.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldResourceKey.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldResourceKey.setEditable(false);
          jTextFieldResourceKey.setEnabled(false);
        }
        {
          jLabel1 = new JLabel4j_std();
          jLabel1.setBounds(8, 43, 115, 21);
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Resource_Key"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel1 = new JLabel4j_std();
          jLabel1.setBounds(8, 10, 115, 21);
          jDesktopPane1.add(jLabel1);
          jLabel1.setText(lang.get("lbl_Language_ID"));
          jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel1.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setBounds(8, 76, 115, 21);
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Text"));
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {
          jLabel2 = new JLabel4j_std();
          jLabel2.setBounds(8, 109, 115, 21);
          jDesktopPane1.add(jLabel2);
          jLabel2.setText(lang.get("lbl_Mnemonic"));
          jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
          jLabel2.setHorizontalTextPosition(SwingConstants.RIGHT);
        }
        {

          jButtonUpdate = new JButton4j(Common.icon_update);
          jButtonUpdate.setBounds(153, 142, 132, 30);
          jDesktopPane1.add(jButtonUpdate);
          jButtonUpdate.setText(lang.get("btn_Save"));
          jButtonUpdate.setHorizontalTextPosition(SwingConstants.RIGHT);
          jButtonUpdate.setMnemonic(lang.getMnemonicChar());
          jButtonUpdate.setEnabled(false);
          jButtonUpdate.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              language.setText(jTextFieldText.getText());
              language.setMnemonic(JTextFieldMnemonic.getText());
              language.update();
              jButtonUpdate.setEnabled(false);
            }
          });
        }
        {

          jButtonClose = new JButton4j(Common.icon_close);
          jButtonClose.setBounds(424, 142, 132, 30);
          jDesktopPane1.add(jButtonClose);
          jButtonClose.setText(lang.get("btn_Close"));
          jButtonClose.setMnemonic(lang.getMnemonicChar());
          jButtonClose.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
              dispose();
            }
          });
        }
        {
          jTextFieldText = new JTextField4j();
          jTextFieldText.setBounds(130, 76, 561, 21);
          jDesktopPane1.add(jTextFieldText);
          AbstractDocument doc = (AbstractDocument) jTextFieldText.getDocument();
          doc.setDocumentFilter(new JFixedSizeFilter(JDBLanguage.field_Text_size));
          jTextFieldText.setPreferredSize(new java.awt.Dimension(40, 20));
          jTextFieldText.setFocusCycleRoot(true);
          jTextFieldText.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
            }
          });
        }
        {
          jButtonHelp = new JButton4j(Common.icon_help);
          jButtonHelp.setBounds(288, 142, 132, 30);
          jDesktopPane1.add(jButtonHelp);
          jButtonHelp.setText(lang.get("btn_Help"));
          jButtonHelp.setMnemonic(lang.getMnemonicChar());
        }
        {
          jTextFieldText.requestFocus();
          jTextFieldText.setCaretPosition(jTextFieldText.getText().length());

          JTextFieldLanguage = new JTextField4j();
          JTextFieldLanguage.setBounds(130, 43, 91, 21);
          JTextFieldLanguage.setPreferredSize(new Dimension(100, 20));
          JTextFieldLanguage.setHorizontalAlignment(SwingConstants.LEFT);
          JTextFieldLanguage.setEnabled(false);
          JTextFieldLanguage.setEditable(false);
          jDesktopPane1.add(JTextFieldLanguage);

          JTextFieldMnemonic = new JTextField4j();
          JTextFieldMnemonic.setBounds(130, 109, 28, 21);
          JTextFieldMnemonic.setPreferredSize(new Dimension(40, 20));
          JTextFieldMnemonic.setFocusCycleRoot(true);
          JTextFieldMnemonic.setCaretPosition(0);
          jDesktopPane1.add(JTextFieldMnemonic);
View Full Code Here

      jDesktopPane1.setBackground(Color.WHITE);
      jLabel2 = new JLabel4j_std();
      jLabel3 = new JLabel4j_std();
      jLabel1 = new JLabel4j_std();
      jLabel4 = new JLabel4j_std();
      jTextFieldUserID = new JTextField4j();
      jTextFieldComment = new JTextField4j();
      jPasswordField1 = new JPasswordField();
      jPasswordField2 = new JPasswordField();
      jComboBoxLanguage = new JComboBox4j();
      jComboBoxLanguage.setModel(new DefaultComboBoxModel(Common.languages));
      jTextFieldLastLogon = new JTextField4j();
      jTextFieldLastPasswordChange = new JTextField4j();
      jLabel5 = new JLabel4j_std();
      jLabel6 = new JLabel4j_std();
      jLabel7 = new JLabel4j_std();
      jLabel8 = new JLabel4j_std();
      jLabel9 = new JLabel4j_std();
      jLabel10 = new JLabel4j_std();
      jTextFieldBadPasswords = new JTextField4j();
      jLabel11 = new JLabel4j_std();
      jCheckBoxAccountLocked = new JCheckBox();
      jCheckBoxPasswordExpires = new JCheckBox();
      jCheckBoxPasswordChangeAllowed = new JCheckBox();

      jButtonSave = new JButton4j(Common.icon_update);
      jButtonCancel = new JButton4j(Common.icon_close);

      BorderLayout thisLayout = new BorderLayout();
      this.getContentPane().setLayout(thisLayout);
      thisLayout.setHgap(0);
      thisLayout.setVgap(0);
      this.setTitle("User Properties");
      this.setClosable(true);
      this.setVisible(true);
      this.setPreferredSize(new java.awt.Dimension(417, 432));
      this.setBounds(0, 0, 430+Common.LFAdjustWidth, 479+Common.LFAdjustHeight);
      this.setIconifiable(true);

      jDesktopPane1.setPreferredSize(new java.awt.Dimension(364, 329));
      jDesktopPane1.setOpaque(true);
      this.getContentPane().add(jDesktopPane1, BorderLayout.CENTER);
      jDesktopPane1.setLayout(null);

      jLabel2.setText(lang.get("lbl_Description"));
      jDesktopPane1.add(jLabel2);
      jLabel2.setBounds(0, 35, 158, 20);
      jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel3.setText(lang.get("lbl_User_Account_Password"));
      jDesktopPane1.add(jLabel3);
      jLabel3.setBounds(0, 62, 158, 20);
      jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel1.setText(lang.get("lbl_User_ID"));

      jDesktopPane1.add(jLabel1);
      jLabel1.setFocusTraversalKeysEnabled(false);
      jLabel1.setBounds(0, 7, 158, 20);
      jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel4.setText(lang.get("lbl_User_Account_Password_Verify"));
      jDesktopPane1.add(jLabel4);
      jLabel4.setBounds(0, 89, 158, 20);
      jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);

      jTextFieldUserID.setEditable(false);
      jTextFieldUserID.setEnabled(false);
      jTextFieldUserID.setPreferredSize(new java.awt.Dimension(100, 20));
      jTextFieldUserID.setDisabledTextColor(Common.color_textdisabled);
      jDesktopPane1.add(jTextFieldUserID);
      jTextFieldUserID.setBounds(172, 7, 100, 20);

      AbstractDocument doc = (AbstractDocument) jTextFieldComment.getDocument();
      doc.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_comment));
      jDesktopPane1.add(jTextFieldComment);
      jTextFieldComment.setBounds(172, 34, 217, 21);
      jTextFieldComment.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent evt) {
          jTextFieldCommentKeyTyped(evt);
        }
      });

      jPasswordField1.setPreferredSize(new java.awt.Dimension(100, 20));
      AbstractDocument doc1 = (AbstractDocument) jPasswordField1.getDocument();
      doc1.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_password));
      jDesktopPane1.add(jPasswordField1);
      jPasswordField1.setBounds(172, 62, 100, 20);
      jPasswordField1.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent evt) {
          jPasswordField1KeyTyped(evt);
        }
      });

      jPasswordField2.setPreferredSize(new java.awt.Dimension(100, 20));
      AbstractDocument doc2 = (AbstractDocument) jPasswordField2.getDocument();
      doc2.setDocumentFilter(new JFixedSizeFilter(JDBUser.field_password));
      jDesktopPane1.add(jPasswordField2);
      jPasswordField2.setBounds(172, 89, 100, 20);
      jPasswordField2.addKeyListener(new KeyAdapter() {
        public void keyTyped(KeyEvent evt) {
          jPasswordField2KeyTyped(evt);
        }
      });

      jComboBoxLanguage.setEnabled(true);
      jComboBoxLanguage.setEditable(false);
      jComboBoxLanguage.setLightWeightPopupEnabled(true);
      jComboBoxLanguage.setPreferredSize(new java.awt.Dimension(45, 21));
      jComboBoxLanguage.setIgnoreRepaint(false);
      jDesktopPane1.add(jComboBoxLanguage);
      jComboBoxLanguage.setBounds(172, 116, 69, 21);
      jComboBoxLanguage.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jComboBoxLanguageActionPerformed(evt);
        }
      });

      jTextFieldLastLogon.setEditable(false);
      jTextFieldLastLogon.setPreferredSize(new java.awt.Dimension(150, 20));
      jDesktopPane1.add(jTextFieldLastLogon);
      jTextFieldLastLogon.setBounds(172, 144, 150, 20);
      jTextFieldLastLogon.setEnabled(false);
      jTextFieldLastLogon.setDisabledTextColor(Common.color_textdisabled);

      jTextFieldLastPasswordChange.setEditable(false);
      jTextFieldLastPasswordChange.setPreferredSize(new java.awt.Dimension(150, 20));
      jDesktopPane1.add(jTextFieldLastPasswordChange);
      jTextFieldLastPasswordChange.setBounds(172, 171, 150, 20);
      jTextFieldLastPasswordChange.setEnabled(false);
      jTextFieldLastPasswordChange.setDisabledTextColor(Common.color_textdisabled);

      jLabel5.setText(lang.get("lbl_Language"));
      jDesktopPane1.add(jLabel5);
      jLabel5.setBounds(0, 117, 158, 20);
      jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel6.setText(lang.get("lbl_User_Account_Last_Logon"));
      jDesktopPane1.add(jLabel6);
      jLabel6.setBounds(0, 144, 158, 20);
      jLabel6.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel7.setText(lang.get("lbl_User_Account_Last_Password_Change"));
      jDesktopPane1.add(jLabel7);
      jLabel7.setBounds(0, 171, 158, 20);
      jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel8.setText(lang.get("lbl_User_Account_Locked"));
      jDesktopPane1.add(jLabel8);
      jLabel8.setBounds(0, 199, 158, 20);
      jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel9.setText(lang.get("lbl_User_Account_Password_Expires"));
      jDesktopPane1.add(jLabel9);
      jLabel9.setBounds(0, 227, 158, 20);
      jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);

      jLabel10.setText(lang.get("lbl_User_Account_Bad_Passwords"));
      jDesktopPane1.add(jLabel10);
      jLabel10.setFocusTraversalKeysEnabled(false);
      jLabel10.setBounds(0, 282, 158, 20);
      jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);

      jTextFieldBadPasswords.setEditable(false);
      jTextFieldBadPasswords.setPreferredSize(new java.awt.Dimension(20, 20));
      jDesktopPane1.add(jTextFieldBadPasswords);
      jTextFieldBadPasswords.setBounds(172, 282, 20, 20);
      jTextFieldBadPasswords.setEnabled(false);
      jTextFieldBadPasswords.setDisabledTextColor(Common.color_textdisabled);

      jLabel11.setText(lang.get("lbl_User_Account_Password_Change_Allowed"));
      jDesktopPane1.add(jLabel11);
      jLabel11.setBounds(0, 255, 158, 20);
      jLabel11.setHorizontalAlignment(SwingConstants.TRAILING);

      jDesktopPane1.add(jCheckBoxAccountLocked);
      jCheckBoxAccountLocked.setBounds(170, 198, 21, 21);
      jCheckBoxAccountLocked.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxAccountLocked.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jCheckBoxAccountLockedActionPerformed(evt);
        }
      });

      jDesktopPane1.add(jCheckBoxPasswordExpires);
      jCheckBoxPasswordExpires.setBounds(169, 226, 21, 21);
      jCheckBoxPasswordExpires.setFont(Common.font_std);
      jCheckBoxPasswordExpires.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxPasswordExpires.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jCheckBoxPasswordExpiresActionPerformed(evt);
        }
      });

      jDesktopPane1.add(jCheckBoxPasswordChangeAllowed);
      jCheckBoxPasswordChangeAllowed.setBounds(169, 254, 21, 21);
      jCheckBoxPasswordChangeAllowed.setBackground(new java.awt.Color(255, 255, 255));
      jCheckBoxPasswordChangeAllowed.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jCheckBoxPasswordChangeAllowedActionPerformed(evt);
        }
      });

      jButtonSave.setEnabled(false);
      jButtonSave.setText(lang.get("btn_Save"));
      jButtonSave.setMnemonic(lang.getMnemonicChar());
      jDesktopPane1.add(jButtonSave);
      jButtonSave.setBounds(39, 394, 112, 28);
      jButtonSave.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jButtonUpdateActionPerformed(evt);
        }
      });

      jButtonCancel.setText(lang.get("btn_Close"));
      jButtonCancel.setMnemonic(lang.getMnemonicChar());
      jDesktopPane1.add(jButtonCancel);
      jButtonCancel.setBounds(277, 394, 112, 28);
      {
        jButtonHelp = new JButton4j(Common.icon_help);
        jDesktopPane1.add(jButtonHelp);
        jButtonHelp.setText(lang.get("btn_Help"));
        jButtonHelp.setBounds(158, 394, 112, 28);
        jButtonHelp.setMnemonic(lang.getMnemonicChar());
      }
      {
        jCheckBoxAccountExpires = new JCheckBox();
        jDesktopPane1.add(jCheckBoxAccountExpires);
        jCheckBoxAccountExpires.setBounds(169, 309, 22, 21);
        jCheckBoxAccountExpires.setBackground(new java.awt.Color(255, 255, 255));
        jCheckBoxAccountExpires.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent evt) {
            jCheckBoxAccountExpiresActionPerformed(evt);
          }
        });
      }
      {
        jLabelAccountExpires = new JLabel4j_std();
        jDesktopPane1.add(jLabelAccountExpires);
        jLabelAccountExpires.setText(lang.get("lbl_User_Account_Expires"));
        jLabelAccountExpires.setBounds(0, 310, 158, 20);
        jLabelAccountExpires.setHorizontalAlignment(SwingConstants.TRAILING);
      }
      {
        jLabelAccountExpiryDate = new JLabel4j_std();
        jDesktopPane1.add(jLabelAccountExpiryDate);
        jLabelAccountExpiryDate.setText(lang.get("lbl_User_Account_Expiry_Date"));
        jLabelAccountExpiryDate.setBounds(0, 339, 158, 20);
        jLabelAccountExpiryDate.setHorizontalAlignment(SwingConstants.TRAILING);
      }
      jButtonCancel.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          jButtonCancelActionPerformed(evt);
        }
      });

      accountExpiryDate.getEditor().addKeyListener(new KeyAdapter() {
        public void keyPressed(KeyEvent e) {
          userUpdated = true;
          jButtonSave.setEnabled(true);
        }
      });
      accountExpiryDate.addChangeListener(new ChangeListener() {
        public void stateChanged(final ChangeEvent e)

        {
          userUpdated = true;
          jButtonSave.setEnabled(true);
        }
      });

      accountExpiryDate.setBounds(172, 334, 125, 25);
      jDesktopPane1.add(accountExpiryDate);

      jTextFieldEmailAddress = new JTextField4j();
      jTextFieldEmailAddress.addKeyListener(new KeyAdapter() {
        public void keyTyped(final KeyEvent e) {
          userUpdated = true;
          jButtonSave.setEnabled(true);
        }
View Full Code Here

    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);
View Full Code Here

    ButtonHandler buttonhandler = new ButtonHandler();

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

          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);
        }
        {
          jTextFieldDescription = new JTextField4j();
          jDesktopPane1.add(jTextFieldDescription, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
          jTextFieldDescription.setBounds(105, 40, 238, 21);
          jTextFieldDescription.addKeyListener(new KeyAdapter() {
            public void keyTyped(KeyEvent evt) {
              jButtonUpdate.setEnabled(true);
View Full Code Here

        jDesktopPane1.setBackground(Color.WHITE);
        this.getContentPane().add(jDesktopPane1);
        jDesktopPane1.setPreferredSize(new java.awt.Dimension(577, 280));
        jDesktopPane1.setLayout(null);
        {
          textFieldTranslatedDescripton = new JTextField4j();
          textFieldTranslatedDescripton.setEditable(false);
          textFieldTranslatedDescripton.setFocusCycleRoot(true);
          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);
View Full Code Here

              dispose();
            }
          });
        }
        {
          jTextFieldPrinterID = new JTextField4j();
          jTextFieldPrinterID.setFocusable(false);
          jDesktopPane1.add(jTextFieldPrinterID);
          jTextFieldPrinterID.setHorizontalAlignment(SwingConstants.LEFT);
          jTextFieldPrinterID.setEditable(false);
          jTextFieldPrinterID.setPreferredSize(new java.awt.Dimension(100, 20));
          jTextFieldPrinterID.setBounds(178, 13, 252, 21);
          jTextFieldPrinterID.setEnabled(false);
        }
        {
          comboBoxPrinterType = new JComboBox4j();
          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);
View Full Code Here

    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);
    textFieldLocale.setBounds(539, 11, 58, 20);
    jDesktopPane1.add(textFieldLocale);
    textFieldLocale.setText(Locale.getDefault().getCountry()+","+Locale.getDefault().getLanguage());
View Full Code Here

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

        {
          jTextFieldHosyUniqueRef = new JTextField4j();
          jTextFieldHosyUniqueRef.setEditable(false);
          jTextFieldHosyUniqueRef.setBounds(481, 289, 270, 20);
          jDesktopPane1.add(jTextFieldHosyUniqueRef);
        }
      }
View Full Code Here

TOP

Related Classes of com.commander4j.gui.JTextField4j

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