public void actionPerformed(ActionEvent e) { if (e.getSource().equals(okButton)) { String[] inputErrors = loginCredentialsPanel.checkForInputErrors(); if (inputErrors.length == 0) { isConfirmed = true; this.setVisible(false); } else { // Sanity-check provided information String errorMessages = "<html>Please correct the following errors:<ul>"; for (int i = 0; i < inputErrors.length; i++) { errorMessages += "<li>" + inputErrors[i] + "</li>"; } errorMessages += "</ul></html>"; ErrorDialog.showDialog(this, null, errorMessages, null); } } else if ("Cancel".equals(e.getActionCommand())) { isConfirmed = false; this.setVisible(false); } }
public void actionPerformed(ActionEvent e) { if (e.getSource().equals(okButton)) { String[] inputErrors = loginCredentialsPanel.checkForInputErrors(); if (inputErrors.length == 0) { isConfirmed = true; this.setVisible(false); } else { // Sanity-check provided information String errorMessages = "<html>Please correct the following errors:<ul>"; for (int i = 0; i < inputErrors.length; i++) { errorMessages += "<li>" + inputErrors[i] + "</li>"; } errorMessages += "</ul></html>"; ErrorDialog.showDialog(this, null, errorMessages, null); } } else if ("Cancel".equals(e.getActionCommand())) { isConfirmed = false; this.setVisible(false); } }
loginLocalFolderPanel.getCredentialsFile(), loginLocalFolderPanel.getPassword()); } else if (loginMode == LOGIN_MODE_DIRECT) { String[] inputErrors = loginCredentialsPanel.checkForInputErrors(); if (inputErrors.length > 0) { String errorMessages = "<html>Please correct the following errors:<ul>";
loginLocalFolderPanel.getCredentialsFile(), loginLocalFolderPanel.getPassword()); } else if (loginMode == LOGIN_MODE_DIRECT) { String[] inputErrors = loginCredentialsPanel.checkForInputErrors(); if (inputErrors.length > 0) { String errorMessages = "<html>Please correct the following errors:<ul>";