@Override
  public void actionPerformed(ActionEvent e) {
    String text = showDialog();
    if (text != null) {
      myField.setText(text);
    }
  }
@Override
  public void actionPerformed(ActionEvent e)