public String getPassword() { return password; }
protected void buildWindow(String dbName) {
getContentPane().setLayout(new BorderLayout());
EditFieldLayout efl = new EditFieldLayout();
efl.addLabel(I18N.get("DbPasswordDialog.database"), dbName);
efl.setBorder(20);
usernameField = efl.addTextField(I18N.get("DbPasswordDialog.user_name"),
username, FIELD_COLUMNS);
passwordField = efl.addPasswordField(I18N.get("DbPasswordDialog.password"),
FIELD_COLUMNS);
JPanel buttonPanel = new JPanel();
JButton button;
buttonPanel.add(button = new JButton(I18N.get("GUI.ok")));
button.addActionListener(this);
button.setDefaultCapable(true);
getRootPane().setDefaultButton(button);
buttonPanel.add(button = new JButton(I18N.get("GUI.cancel")));
button.addActionListener(this);
getContentPane().add(efl.getPanel(), BorderLayout.CENTER);
getContentPane().add(buttonPanel, BorderLayout.SOUTH);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();