password.setEchoChar('*');
final OptionDialog dialog = new OptionDialog(OptionDialog.QUESTION, p, OptionDialog.CHOICES_OK_CANCEL, null);
username.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
dialog.choice(OptionDialog.CHOICE_OK);
}
});
password.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
dialog.choice(OptionDialog.CHOICE_OK);