congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JPasswordField.isEnabled
Code IndexAdd Tabnine to your IDE (free)

How to use
isEnabled
method
in
javax.swing.JPasswordField

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

origin: kaikramer/keystore-explorer

/**
 * Is the password quality field?
 *
 * @return Enabled?
 */
@Override
public boolean isEnabled() {
  return jpfPassword.isEnabled();
}
origin: net.jxta/jxta-jxse

/**
 *  Returns the Identity password.
 *
 *  @return the Identity password.
 **/
public char[] getIdentityPassword() {
  if (!identityPassField.isEnabled()) {
    return null;
  }
  
  char[] result = identityPassField.getPassword();
  
  return result;
}

origin: net.jxta/jxta-jxse

/**
 *  Returns the KeyStore password.
 *
 *  @return the KeyStore password.
 **/
public char[] getKeyStorePassword() {
  if (!storePassField.isEnabled()) {
    return null;
  }
  
  char[] result = storePassField.getPassword();
  
  return result;
}

origin: com.github.insubstantial/substance

  @Override
  public void propertyChange(PropertyChangeEvent evt) {
    if ("font".equals(evt.getPropertyName())) {
      SwingUtilities.invokeLater(new Runnable() {
        @Override
        public void run() {
          // remember the caret location - issue 404
          int caretPos = passwordField.getCaretPosition();
          passwordField.updateUI();
          passwordField.setCaretPosition(caretPos);
          Container parent = passwordField.getParent();
          if (parent != null) {
            parent.invalidate();
            parent.validate();
          }
        }
      });
    }
    if ("enabled".equals(evt.getPropertyName())) {
      transitionModel.setEnabled(passwordField.isEnabled());
    }
  }
};
origin: org.java.net.substance/substance

  public void propertyChange(PropertyChangeEvent evt) {
    if ("font".equals(evt.getPropertyName())) {
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          // remember the caret location - issue 404
          int caretPos = passwordField.getCaretPosition();
          passwordField.updateUI();
          passwordField.setCaretPosition(caretPos);
          Container parent = passwordField.getParent();
          if (parent != null) {
            parent.invalidate();
            parent.validate();
          }
        }
      });
    }
    if ("enabled".equals(evt.getPropertyName())) {
      transitionModel.setEnabled(passwordField.isEnabled());
    }
  }
};
origin: triplea-game/triplea

private void setWidgetActivation() {
 passwordField.setEnabled(requirePasswordCheckBox.isSelected());
 final Color backGround = passwordField.isEnabled() ? portField.getBackground() : getBackground();
 passwordField.setBackground(backGround);
}
origin: org.java.net.substance/substance

int dotGap = SubstanceSizeUtils.getPasswordDotGap(fontSize);
(field.isEnabled() ? ComponentState.ENABLED
    : ComponentState.DISABLED_UNSELECTED);
SubstanceColorScheme scheme = SubstanceColorSchemeUtilities
origin: com.github.insubstantial/substance

int dotGap = SubstanceSizeUtils.getPasswordDotGap(fontSize);
(field.isEnabled() ? ComponentState.ENABLED
    : ComponentState.DISABLED_UNSELECTED);
SubstanceColorScheme scheme = SubstanceColorSchemeUtilities
origin: org.java.net.substance/substance

/**
 * Creates the UI delegate for the specified component (password field).
 * 
 * @param c
 *            Component.
 */
public SubstancePasswordFieldUI(JComponent c) {
  super();
  this.passwordField = (JPasswordField) c;
  this.transitionModel = new DefaultButtonModel();
  this.transitionModel.setArmed(false);
  this.transitionModel.setSelected(false);
  this.transitionModel.setPressed(false);
  this.transitionModel.setRollover(false);
  this.transitionModel.setEnabled(this.passwordField.isEnabled());
  this.stateTransitionTracker = new StateTransitionTracker(
      this.passwordField, this.transitionModel);
}
origin: com.github.insubstantial/substance

/**
 * Creates the UI delegate for the specified component (password field).
 * 
 * @param c
 *            Component.
 */
public SubstancePasswordFieldUI(JComponent c) {
  super();
  this.passwordField = (JPasswordField) c;
  this.transitionModel = new DefaultButtonModel();
  this.transitionModel.setArmed(false);
  this.transitionModel.setSelected(false);
  this.transitionModel.setPressed(false);
  this.transitionModel.setRollover(false);
  this.transitionModel.setEnabled(this.passwordField.isEnabled());
  this.stateTransitionTracker = new StateTransitionTracker(
      this.passwordField, this.transitionModel);
}
origin: net.imagej/imagej-ui-swing

else if (!passwordField.isEnabled()) {
  setChangePasswordEnabled(true);
  error("<html><p width=400>Please type in your the password for your account on the Fiji/ImageJ Wiki</p></html>");
javax.swingJPasswordFieldisEnabled

Popular methods of JPasswordField

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

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Collectors (java.util.stream)
  • JTextField (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Best plugins for Eclipse
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