Codota Logo
JPasswordField.isEnabled
Code IndexAdd Codota 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)

  • 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: 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

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Socket (java.net)
    Provides a client-side TCP socket.
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
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