jDesktopPane1.setBackground(Common.color_app_window);
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<String>();
jComboBoxLanguage.setModel(new DefaultComboBoxModel<String>(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 JCheckBox4j();
jCheckBoxPasswordExpires = new JCheckBox4j();
jCheckBoxPasswordChangeAllowed = new JCheckBox4j();
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.setClosable(true);
this.setVisible(true);
this.setPreferredSize(new java.awt.Dimension(417, 432));
this.setBounds(0, 0, 430, 488);
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(17, 394, 112, 32);
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(275, 394, 112, 32);
{
jButtonHelp = new JButton4j(Common.icon_help);
jDesktopPane1.add(jButtonHelp);
jButtonHelp.setText(lang.get("btn_Help"));
jButtonHelp.setBounds(146, 394, 112, 32);
jButtonHelp.setMnemonic(lang.getMnemonicChar());
}
{
jCheckBoxAccountExpires = new JCheckBox4j();
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);
}