Source:
<code>protected PasswordAuthentication promptPasswordAuthentication() { final GridBagConstraints gbc = new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0); final Container panel = new JPanel(); panel.setLayout(new GridBagLayout()); final StringBuilder instruction = new StringBuilder(); instruction.append(UIText.get().enterUsernameAndPasswordFor); instruction.append(" "); if (getRequestorType() == RequestorType.PROXY) { instruction.append(getRequestorType()); instruction.append(" "); instruction.append(getRequestingHost()); if (getRequestingPort() > 0) { instruction.append(":"); instruction.append(getRequestingPort()); } } else { instruction.append(getRequestingURL()); } gbc.weightx = 1.0; gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.gridx = 0; panel.add(new JLabel(instruction.toString()), gbc); gbc.gridy++; gbc.gridwidth = GridBagConstraints.RELATIVE; final JTextField username; gbc.fill = GridBagConstraints.NONE; gbc.gridx = 0; gbc.weightx = 1; panel.add(new JLabel(UIText.get().username), gbc); gbc.gridx = 1; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weighty = 1; username = new JTextField(20); panel.add(username, gbc); gbc.gridy++; final JPasswordField password; gbc.fill = GridBagConstraints.NONE; gbc.gridx = 0; gbc.weightx = 1; panel.add(new JLabel(UIText.get().password), gbc); gbc.gridx = 1; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weighty = 1; password = new JPasswordField(20); panel.add(password, gbc); gbc.gridy++; if (JOptionPane.showConfirmDialog(null, panel, <START> UIText.get().authenticationrequired, JOptionPane.OK_CANCEL_OPTION, <END> JOptionPane.QUESTION_MESSAGE) == JOptionPane.OK_OPTION) { return new PasswordAuthentication(username.getText(), password .getPassword()); } return null; }</code><technical_language>camel case ? s/authenticationrequired/authenticationRequired/</technical_language>

Target:
protected PasswordAuthentication promptPasswordAuthentication() { final GridBagConstraints gbc = new GridBagConstraints(0, 0, 1, 1, 1, 1, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0); final Container panel = new JPanel(); panel.setLayout(new GridBagLayout()); final StringBuilder instruction = new StringBuilder(); instruction.append(UIText.get().enterUsernameAndPasswordFor); instruction.append(" "); if (getRequestorType() == RequestorType.PROXY) { instruction.append(getRequestorType()); instruction.append(" "); instruction.append(getRequestingHost()); if (getRequestingPort() > 0) { instruction.append(":"); instruction.append(getRequestingPort()); } } else { instruction.append(getRequestingURL()); } gbc.weightx = 1.0; gbc.gridwidth = GridBagConstraints.REMAINDER; gbc.gridx = 0; panel.add(new JLabel(instruction.toString()), gbc); gbc.gridy++; gbc.gridwidth = GridBagConstraints.RELATIVE; final JTextField username; gbc.fill = GridBagConstraints.NONE; gbc.gridx = 0; gbc.weightx = 1; panel.add(new JLabel(UIText.get().username), gbc); gbc.gridx = 1; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weighty = 1; username = new JTextField(20); panel.add(username, gbc); gbc.gridy++; final JPasswordField password; gbc.fill = GridBagConstraints.NONE; gbc.gridx = 0; gbc.weightx = 1; panel.add(new JLabel(UIText.get().password), gbc); gbc.gridx = 1; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.weighty = 1; password = new JPasswordField(20); panel.add(password, gbc); gbc.gridy++; if (JOptionPane.showConfirmDialog(null, panel, UIText.get().authenticationRequired, JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.OK_OPTION) { return new PasswordAuthentication(username.getText(), password .getPassword()); } return null; }