code: private JButton getCancelButton() {
      if (cancelButton == null) {
        cancelButton = new JButton();
        cancelButton.setText("Cancel");
        cancelButton.setMnemonic('C');
        cancelButton.addActionListener(new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent e) {
            cancelled = true;
            timedOut = false;
            restore();
            setVisible(false);
          }
        });
      }
      return cancelButton;
    }
docs: This method initializes cancelButton
  
  @return javax.swing.JButton