public void actionPerformed(ActionEvent actionEvent) { setVisible(false); } });
public void actionPerformed(ActionEvent actionEvent) { setVisible(false); } });
private void retrieveCredentialsFromDirectory(File directory, File credentialsFile, String password) { if (!validFolderInputs(false, directory, credentialsFile, password, true)) { return; } try { this.credentials = ProviderCredentials.load(password, credentialsFile); this.setVisible(false); } catch (Exception e) { String message = "<html><center>Unable to load your credentials from the file: " + credentialsFile + "<br><br>Please check your password</center></html>"; log.error(message, e); ErrorDialog.showDialog(this, hyperlinkListener, message, null); } }
private void retrieveCredentialsFromDirectory(File directory, File credentialsFile, String password) { if (!validFolderInputs(false, directory, credentialsFile, password, true)) { return; } try { this.credentials = ProviderCredentials.load(password, credentialsFile); this.setVisible(false); } catch (Exception e) { String message = "<html><center>Unable to load your credentials from the file: " + credentialsFile + "<br><br>Please check your password</center></html>"; log.error(message, e); ErrorDialog.showDialog(this, hyperlinkListener, message, null); } }
/** * Creates stand-alone dialog box for testing only. * * @param args * @throws Exception */ public static void main(String args[]) throws Exception { JFrame f = new JFrame(); HyperlinkActivatedListener listener = new HyperlinkActivatedListener() { private static final long serialVersionUID = -225585129296632961L; public void followHyperlink(URL url, String target) { BareBonesBrowserLaunch.openURL(url.toString()); } }; StartupDialog startupDialog = new StartupDialog(f, Jets3tProperties.getInstance(Constants.JETS3T_PROPERTIES_FILENAME), listener); startupDialog.setVisible(true); ProviderCredentials credentials = startupDialog.getProviderCredentials(); startupDialog.dispose(); if (credentials != null) { System.out.println("Credentials: " + credentials.getLogString()); } else { System.out.println("Credentials: null"); } f.dispose(); }
/** * Creates stand-alone dialog box for testing only. * * @param args * @throws Exception */ public static void main(String args[]) throws Exception { JFrame f = new JFrame(); HyperlinkActivatedListener listener = new HyperlinkActivatedListener() { private static final long serialVersionUID = -225585129296632961L; public void followHyperlink(URL url, String target) { BareBonesBrowserLaunch.openURL(url.toString()); } }; StartupDialog startupDialog = new StartupDialog(f, Jets3tProperties.getInstance(Constants.JETS3T_PROPERTIES_FILENAME), listener); startupDialog.setVisible(true); ProviderCredentials credentials = startupDialog.getProviderCredentials(); startupDialog.dispose(); if (credentials != null) { System.out.println("Credentials: " + credentials.getLogString()); } else { System.out.println("Credentials: null"); } f.dispose(); }
myself.setVisible(false); } catch (ServiceException e) { SwingUtilities.invokeLater(new Runnable() {
myself.setVisible(false); } catch (ServiceException e) { SwingUtilities.invokeLater(new Runnable() {
if (credentials == null) { StartupDialog startupDialog = new StartupDialog(ownerFrame, cockpitProperties, this); startupDialog.setVisible(true); credentials = startupDialog.getProviderCredentials(); this.isTargetS3 = startupDialog.isTargetS3();
if (credentials == null) { StartupDialog startupDialog = new StartupDialog(ownerFrame, cockpitProperties, this); startupDialog.setVisible(true); credentials = startupDialog.getProviderCredentials(); this.isTargetS3 = startupDialog.isTargetS3();
this.setVisible(false); this.setVisible(false);
this.setVisible(false); this.setVisible(false);