Codota Logo
JPasswordField.requestFocus
Code IndexAdd Codota to your IDE (free)

How to use
requestFocus
method
in
javax.swing.JPasswordField

Best Java code snippets using javax.swing.JPasswordField.requestFocus (Showing top 17 results out of 315)

  • Common ways to obtain JPasswordField
private void myMethod () {
JPasswordField j =
  • Codota Iconnew JPasswordField()
  • Codota Iconnew JPasswordField(int1)
  • Codota IconString str;new JPasswordField(str)
  • Smart code suggestions by Codota
}
origin: fcrepo3/fcrepo

  @Override
  public void windowOpened(WindowEvent evt) {
    m_passwordField.requestFocus();
  }
});
origin: poreid/poreid

  @Override
  public void windowOpened(WindowEvent e) {                
    pin.requestFocus();
  }
});
origin: kaikramer/keystore-explorer

/**
 * Request input focus.
 */
@Override
public void requestFocus() {
  jpfPassword.requestFocus();
}
origin: poreid/poreid

  @Override
  public void windowOpened(WindowEvent e) {                
    pin.requestFocus();
  }
});
origin: poreid/poreid

  @Override
  public void windowOpened(WindowEvent e) {                
    pin.requestFocus();
  }
});
origin: poreid/poreid

  @Override
  public void windowOpened(WindowEvent e) {   
    currentPin.requestFocus();
  }
});
origin: org.codehaus.jtstand/jtstand-ui

        private void jTextFieldUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldUserActionPerformed
          jPasswordField.setText("");
          jPasswordField.requestFocus();
}//GEN-LAST:event_jTextFieldUserActionPerformed
origin: org.codehaus.jtstand/jtstand-ui

        private void jTextFieldUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldUserActionPerformed
          jPasswordField.setText("");
          jPasswordField.requestFocus();
}//GEN-LAST:event_jTextFieldUserActionPerformed
origin: org.zaproxy/zap

public void passwordFocus() {
  this.getTxtProxyChainPassword().requestFocus();
}
origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

public void showError(KenaiException ex) {
  kenaiCombo.setEnabled(true);
  progressBar.setVisible(false);
  String errorMessage = ex.getMessage();
  if (errorMessage==null || "".equals(errorMessage.trim())) {
    errorMessage = NbBundle.getMessage(LoginPanel.class, "LBL_AuthenticationFailed");
    Logger.getLogger(LoginPanel.class.getName()).log(Level.INFO, errorMessage, ex);
  }
  error.setText(errorMessage);
  Map<String, String> errors = ex.getErrors();
  if (errors!=null) {
    String msg = errors.get("message");//NOI18N
    if (msg!=null) {
      error.setToolTipText(msg);
    }
  }
  error.setVisible(true);
  password.requestFocus();
  setLoginButtonEnabled(true);
}
origin: com.synaptix/SynaptixSwing

public int showDialog(Component parent, String title, String subtitle) {
  returnValue = CONNECTION_OPTION;
  List<Action> actions = new ArrayList<Action>();
  actions.add(connectionAction);
  if (otherActions != null) {
    actions.addAll(Arrays.asList(otherActions));
  }
  actions.add(quitAction);
  dialog = new JDialogModel(parent, title, subtitle, this, actions.toArray(new Action[actions.size()]), quitAction);
  dialog.setResizable(false);
  loadPreference();
  if (saveLoginBox.isSelected()) {
    passwordField.requestFocus();
  }
  dialog.showDialog();
  dialog.dispose();
  return returnValue;
}
origin: igniterealtime/Spark

/**
 * Enables/Disables the editable components in the login screen.
 *
 * @param editable true to enable components, otherwise false to disable.
 */
private void enableComponents(boolean editable) {
  // Need to set both editable and enabled for best behavior.
  usernameField.setEditable(editable);
  usernameField.setEnabled(editable && !loginAnonymouslyBox.isSelected());
  passwordField.setEditable(editable);
  passwordField.setEnabled(editable && !loginAnonymouslyBox.isSelected());
  final String lockedDownURL = Default.getString(Default.HOST_NAME);
  if (!ModelUtil.hasLength(lockedDownURL)) {
    serverField.setEditable(editable);
    serverField.setEnabled(editable);
  }
  if (editable) {
    // Reapply focus to username field
    passwordField.requestFocus();
  }
}
origin: org.netbeans.modules/org-netbeans-modules-j2ee-sun-appsrv81

/** Creates new form NewJPanel */
public MasterPasswordInputPanel() {
  initComponents();
  jPasswordField1.setText("");
  jPasswordField1.requestFocus();
  javax.swing.KeyStroke enter = javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ENTER, 0);
  javax.swing.text.Keymap map = jPasswordField1.getKeymap();
  map.removeKeyStrokeBinding(enter);
}
/**
origin: igniterealtime/Spark

private boolean validatePanel() {
  String roomName = nameField.getText();
  String password = new String(passwordField.getPassword());
  String confirmPassword = new String(confirmPasswordField.getPassword());
  boolean isPrivate = privateCheckbox.isSelected();
  // Check for valid information
  if (!ModelUtil.hasLength(roomName)) {
    showError(Res.getString("message.specify.name.error"));
    nameField.requestFocus();
    return false;
  }
  if (isPrivate) {
    if (!ModelUtil.hasLength(password)) {
      showError(Res.getString("message.password.private.room.error"));
      passwordField.requestFocus();
      return false;
    }
    if (!ModelUtil.hasLength(confirmPassword)) {
      showError(Res.getString("message.confirmation.password.error"));
      confirmPasswordField.requestFocus();
      return false;
    }
    if (!ModelUtil.areEqual(password, confirmPassword)) {
      showError(Res.getString("message.passwords.no.match"));
      passwordField.requestFocus();
      return false;
    }
  }
  return true;
}
origin: igniterealtime/Spark

passwordField.requestFocus();
origin: igniterealtime/Spark

loginPanel.getPasswordField().requestFocus();
origin: stackoverflow.com

JOptionPane.showMessageDialog(null, "Enter Password",
        "Missing fields", JOptionPane.DEFAULT_OPTION);
txtPassword.requestFocus();
return;
        "Confirm your password", "Missing fields",
        JOptionPane.DEFAULT_OPTION);
txtCPassword.requestFocus();
return;
        "Passwords do not match.", "ERROR",
        JOptionPane.DEFAULT_OPTION);
txtCPassword.requestFocus();
return;
javax.swingJPasswordFieldrequestFocus

Popular methods of JPasswordField

  • <init>
  • getPassword
  • setText
  • setEnabled
  • addActionListener
  • addKeyListener
  • setColumns
  • getDocument
  • setEchoChar
  • requestFocusInWindow
  • setEditable
  • setPreferredSize
  • setEditable,
  • setPreferredSize,
  • addFocusListener,
  • setFont,
  • setToolTipText,
  • setName,
  • getEchoChar,
  • getText,
  • setDocument

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JList (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now