Tabnine Logo
JPasswordField.addFocusListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addFocusListener
method
in
javax.swing.JPasswordField

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

origin: nodebox/nodebox

@Override
protected JTextComponent createField() {
  JPasswordField field = new JPasswordField();
  field.putClientProperty("JComponent.sizeVariant", "small");
  field.setFont(Theme.SMALL_BOLD_FONT);
  field.addActionListener(this);
  field.addFocusListener(new FocusAdapter() {
    public void focusLost(FocusEvent e) {
      commitTextFieldValue();
    }
  });
  return field;
}
origin: org.apache.jmeter/ApacheJMeter_core

protected PasswordEditor() {
  super();
  textField = new JPasswordField();
  textField.addActionListener(this);
  textField.addFocusListener(this);
}
origin: stackoverflow.com

accessPassword.addFocusListener( new FocusListener()
origin: stackoverflow.com

passwordField.addFocusListener(this);
buttonPanel.add(passwordField);
origin: org.netbeans.modules/org-netbeans-modules-mercurial

private void initPanel() {
  repositoryPanel = new RepositoryPanel();
  urlComboEditor = (JTextComponent) repositoryPanel.urlComboBox
                   .getEditor().getEditorComponent();
  urlDoc = urlComboEditor.getDocument();
  usernameDoc = repositoryPanel.userTextField.getDocument();
  passwordDoc = repositoryPanel.userPasswordField.getDocument();
  tunnelCmdDoc = repositoryPanel.tunnelCommandTextField.getDocument();
  DocumentListener documentListener = new DocumentChangeHandler();
  urlDoc.addDocumentListener(documentListener);
  passwordDoc.addDocumentListener(documentListener);
  usernameDoc.addDocumentListener(documentListener);
  tunnelCmdDoc.addDocumentListener(documentListener);
  repositoryPanel.savePasswordCheckBox.addItemListener(this);
  repositoryPanel.urlComboBox.addItemListener(this);
  repositoryPanel.proxySettingsButton.addActionListener(this);
  repositoryPanel.userPasswordField.addFocusListener(this);
  tweakComboBoxEditor();
}
origin: org.netbeans.modules/org-netbeans-modules-dlight-nativeexecution-nb

suPasswordField.addFocusListener(new java.awt.event.FocusAdapter() {
  public void focusGained(java.awt.event.FocusEvent evt) {
    hdlPasswordFieldFocus(evt);
origin: nz.ac.waikato.cms.weka/weka-stable

public PasswordField(String label) {
 setLayout(new BorderLayout());
 m_label = new JLabel(label);
 if (label.length() > 0) {
  m_label.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
 }
 add(m_label, BorderLayout.WEST);
 m_password = new JPasswordField();
 m_password.addKeyListener(new KeyAdapter() {
  @Override
  public void keyReleased(KeyEvent e) {
   super.keyReleased(e);
   m_support.firePropertyChange("", null, null);
  }
 });
 m_password.addFocusListener(new FocusAdapter() {
  @Override
  public void focusLost(FocusEvent e) {
   super.focusLost(e);
   m_support.firePropertyChange("", null, null);
  }
 });
 add(m_password, BorderLayout.CENTER);
 // setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
}
origin: Waikato/weka-trunk

public PasswordField(String label) {
 setLayout(new BorderLayout());
 m_label = new JLabel(label);
 if (label.length() > 0) {
  m_label.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));
 }
 add(m_label, BorderLayout.WEST);
 m_password = new JPasswordField();
 m_password.addKeyListener(new KeyAdapter() {
  @Override
  public void keyReleased(KeyEvent e) {
   super.keyReleased(e);
   m_support.firePropertyChange("", null, null);
  }
 });
 m_password.addFocusListener(new FocusAdapter() {
  @Override
  public void focusLost(FocusEvent e) {
   super.focusLost(e);
   m_support.firePropertyChange("", null, null);
  }
 });
 add(m_password, BorderLayout.CENTER);
 // setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
}
origin: stackoverflow.com

field.addFocusListener(new FocusListener() {
origin: org.netbeans.modules/org-netbeans-modules-dlight-nativeexecution-nb

tfPassword.addFocusListener(new java.awt.event.FocusAdapter() {
  public void focusGained(java.awt.event.FocusEvent evt) {
    tfPasswordonPwdFocus(evt);
origin: com.eas.platypus/platypus-js-forms

public VPasswordField(String aText) {
  super.setText(aText != null ? aText : "");
  if (aText == null) {
    nullValue = true;
  }
  oldValue = aText;
  super.addFocusListener(new FocusAdapter() {
    @Override
    public void focusLost(FocusEvent e) {
      checkValueChanged();
    }
  });
  super.addActionListener((java.awt.event.ActionEvent e) -> {
    checkValueChanged();
  });
}
origin: org.netbeans.modules/org-netbeans-modules-dlight-nativeexecution-nb

tfPassword.addFocusListener(new java.awt.event.FocusAdapter() {
  public void focusGained(java.awt.event.FocusEvent evt) {
    tfPasswordonPwdFocus(evt);
origin: uk.org.mygrid.taverna/taverna-contrib

labelConstraints.gridy++;
passwordField = new JPasswordField(connectionSettings.getPassword());
passwordField.addFocusListener(new FocusListener() {
  public void focusGained(FocusEvent e) {
origin: SimpleAmazonGlacierUploader/SAGU

secretField.setPreferredSize(buttonDimension);
secretField.setText(appProperties.getSecretKey());
secretField.addFocusListener(propertiesFocusListener);
origin: igniterealtime/Spark

serverField.addKeyListener(this);
passwordField.addFocusListener(this);
usernameField.addFocusListener(this);
serverField.addFocusListener(this);
origin: igvteam/igv

proxyPasswordField.addFocusListener(new FocusAdapter() {
  @Override
  public void focusLost(FocusEvent e) {
origin: org.netbeans.modules/org-netbeans-modules-kenai-ui

password.addFocusListener(new java.awt.event.FocusAdapter() {
  public void focusGained(java.awt.event.FocusEvent evt) {
    passwordFocusGained(evt);
javax.swingJPasswordFieldaddFocusListener

Popular methods of JPasswordField

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

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Menu (java.awt)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now