docs: private void initComponents(String initialMessage, String initialUsername)
      {
          java.awt.GridBagConstraints gridBagConstraints;
  
          getContentPane().setLayout(new java.awt.GridBagLayout());
  
          addWindowListener(new java.awt.event.WindowAdapter() {
              public void windowClosing(java.awt.event.WindowEvent evt) {
                  closeDialog(evt);
              }
          });
  
          userMessage = new javax.swing.JLabel();
          userMessage.setText(initialMessage);
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(userMessage, gridBagConstraints);
  
          userLabel = new javax.swing.JLabel();
          userLabel.setText("Email address");
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(userLabel, gridBagConstraints);
  
          userField = new javax.swing.JTextField(20);
          userField.setText(initialUsername);
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(userField, gridBagConstraints);
  
          currentPasswordLabel = new javax.swing.JLabel();
          currentPasswordLabel.setText("Current password");
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(currentPasswordLabel, gridBagConstraints);
  
          currentPasswordField = new javax.swing.JPasswordField(20);
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(currentPasswordField, gridBagConstraints);
  
          newPasswordLabel = new javax.swing.JLabel();
          newPasswordLabel.setText("New password");
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(newPasswordLabel, gridBagConstraints);
  
          newPasswordField = new javax.swing.JPasswordField(20);
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(newPasswordField, gridBagConstraints);
  
          confirmPasswordLabel = new javax.swing.JLabel();
          confirmPasswordLabel.setText("Confirm password");
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(confirmPasswordLabel, gridBagConstraints);
  
          confirmPasswordField = new javax.swing.JPasswordField(20);
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(confirmPasswordField, gridBagConstraints);
  
          cancelButton = new javax.swing.JButton();
          cancelButton.setText("Cancel");
          cancelButton.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  cancelButtonActionPerformed(evt);
              }
          });
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(cancelButton, gridBagConstraints);
  
          loginButton = new javax.swing.JButton();
          loginButton.setText("Change password");
          loginButton.addActionListener(new java.awt.event.ActionListener() {
              public void actionPerformed(java.awt.event.ActionEvent evt) {
                  loginButtonActionPerformed(evt);
              }
          });
          gridBagConstraints = new java.awt.GridBagConstraints();
          gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
          getContentPane().add(loginButton, gridBagConstraints);
  
  
          pack();
      }