public void focusLost(java.awt.event.FocusEvent evt) { JPasswordFieldMDPFocusLost(evt); }
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        JLabelLogin = new javax.swing.JLabel();        JLabelMDP = new javax.swing.JLabel();        JTextFieldLogin = new javax.swing.JTextField();        JButtonOK = new javax.swing.JButton();        JButtonAnnuler = new javax.swing.JButton();        JPasswordFieldMDP = new javax.swing.JPasswordField();        getContentPane().setLayout(new java.awt.GridBagLayout());        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);        JLabelLogin.setText("Login :");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;        gridBagConstraints.insets = new java.awt.Insets(10, 30, 0, 0);        getContentPane().add(JLabelLogin, gridBagConstraints);        JLabelMDP.setText("Mot de passe :");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;        gridBagConstraints.insets = new java.awt.Insets(10, 30, 0, 0);        getContentPane().add(JLabelMDP, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.gridheight = 2;        gridBagConstraints.ipadx = 119;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;        gridBagConstraints.insets = new java.awt.Insets(10, 3, 0, 47);        getContentPane().add(JTextFieldLogin, gridBagConstraints);        JButtonOK.setText("OK");        JButtonOK.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                JButtonOKActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 4;        gridBagConstraints.gridwidth = 3;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;        gridBagConstraints.insets = new java.awt.Insets(20, 8, 16, 0);        getContentPane().add(JButtonOK, gridBagConstraints);        JButtonAnnuler.setText("Annuler");        JButtonAnnuler.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                JButtonAnnulerActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 4;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;        gridBagConstraints.insets = new java.awt.Insets(20, 53, 16, 0);        getContentPane().add(JButtonAnnuler, gridBagConstraints);        JPasswordFieldMDP.addFocusListener(new java.awt.event.FocusAdapter() {            public void focusGained(java.awt.event.FocusEvent evt) {                JPasswordFieldMDPFocusGained(evt);            }        });        JPasswordFieldMDP.addKeyListener(new java.awt.event.KeyAdapter() {            public void keyPressed(java.awt.event.KeyEvent evt) {                JPasswordFieldMDPKeyPressed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 2;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.gridheight = 2;        gridBagConstraints.ipadx = 119;        gridBagConstraints.ipady = -2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;        gridBagConstraints.insets = new java.awt.Insets(10, 3, 0, 47);        getContentPane().add(JPasswordFieldMDP, gridBagConstraints);        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();        setBounds((screenSize.width-305)/2, (screenSize.height-153)/2, 305, 153);    }//GEN-END:initComponents