HyperlinkActivatedListener hyperlinkListener) CredentialsDialog dialog = new CredentialsDialog( ownerFrame, askForFriendlyName, jets3tProperties, hyperlinkListener); dialog.setVisible(true); if (dialog.isConfirmed()) { dialog.getAccessKey(), dialog.getSecretKey(), dialog.getFriendlyName()); if (dialog.getUsingDevPay()) { credentials = new AWSDevPayCredentials( dialog.getAccessKey(), dialog.getSecretKey(), dialog.getAWSUserToken(), dialog.getAWSProductToken(), dialog.getFriendlyName()); } else { credentials = new AWSCredentials( dialog.getAccessKey(), dialog.getSecretKey(), dialog.getFriendlyName()); dialog.dispose(); return credentials;
1, 1, 1, 0, GridBagConstraints.EAST, GridBagConstraints.NONE, insetsZero, 0, 0)); this.getContentPane().setLayout(new GridBagLayout()); this.getContentPane().add(loginCredentialsPanel, new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insetsDefault, 0, 0)); this.getContentPane().add(buttonsPanel, new GridBagConstraints(0, 1, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insetsDefault, 0, 0)); this.getRootPane().setDefaultButton(okButton); this.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); this.getRootPane().getActionMap().put("ESCAPE", new AbstractAction() { private static final long serialVersionUID = -6225706489569112809L; this.pack(); this.setResizable(false); this.setLocationRelativeTo(ownerFrame);
1, 1, 1, 0, GridBagConstraints.EAST, GridBagConstraints.NONE, insetsZero, 0, 0)); this.getContentPane().setLayout(new GridBagLayout()); this.getContentPane().add(loginCredentialsPanel, new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH, insetsDefault, 0, 0)); this.getContentPane().add(buttonsPanel, new GridBagConstraints(0, 1, 1, 1, 1, 0, GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, insetsDefault, 0, 0)); this.getRootPane().setDefaultButton(okButton); this.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); this.getRootPane().getActionMap().put("ESCAPE", new AbstractAction() { private static final long serialVersionUID = -6225706489569112809L; this.pack(); this.setResizable(false); this.setLocationRelativeTo(ownerFrame);
HyperlinkActivatedListener hyperlinkListener) CredentialsDialog dialog = new CredentialsDialog( ownerFrame, askForFriendlyName, jets3tProperties, hyperlinkListener); dialog.setVisible(true); if (dialog.isConfirmed()) { dialog.getAccessKey(), dialog.getSecretKey(), dialog.getFriendlyName()); if (dialog.getUsingDevPay()) { credentials = new AWSDevPayCredentials( dialog.getAccessKey(), dialog.getSecretKey(), dialog.getAWSUserToken(), dialog.getAWSProductToken(), dialog.getFriendlyName()); } else { credentials = new AWSCredentials( dialog.getAccessKey(), dialog.getSecretKey(), dialog.getFriendlyName()); dialog.dispose(); return credentials;