testConnectionButton = new JButton("Test DB Connection");
testConnectionButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
DBConnectionInfo dBInfo = new DBConnectionInfo(userNameField.getText(), new String(passwordField
.getPassword()), urlField.getText(), driverField.getText());
if (DBUtils.validateConnectionSettings(dBInfo, "")) {
// store data back to wizard when connection was successful:
userNameField.setText(dBInfo.userName);
passwordField.setText(dBInfo.password);