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

How to use
getClientProperty
method
in
javax.swing.JPasswordField

Best Java code snippets using javax.swing.JPasswordField.getClientProperty (Showing top 10 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: net.java.dev.laf-widget/laf-widget

  /**
   * Returns the password strength checker for the specified password field.
   * 
   * @param jpf
   *            Password field.
   * @return Password strength checker for the specified password field. The
   *         result can be <code>null</code>.
   */
  public static PasswordStrengthChecker getPasswordStrengthChecker(
      JPasswordField jpf) {
    Object obj = jpf.getClientProperty(LafWidget.PASSWORD_STRENGTH_CHECKER);
    if ((obj != null) && (obj instanceof PasswordStrengthChecker))
      return (PasswordStrengthChecker) obj;
    return null;
  }
}
origin: com.github.insubstantial/substance

/**
 * Returns the number of echo characters per each password chanaracter.
 * 
 * @param jpf
 *            Password field.
 * @return The number of echo characters per each password chanaracter.
 * @see SubstanceLookAndFeel#PASSWORD_ECHO_PER_CHAR
 */
public static int getEchoPerChar(JPasswordField jpf) {
  Object obj = jpf
      .getClientProperty(SubstanceLookAndFeel.PASSWORD_ECHO_PER_CHAR);
  if ((obj != null) && (obj instanceof Integer)) {
    int result = (Integer) obj;
    if (result >= 1)
      return result;
  }
  obj = UIManager.get(SubstanceLookAndFeel.PASSWORD_ECHO_PER_CHAR);
  if ((obj != null) && (obj instanceof Integer)) {
    int result = (Integer) obj;
    if (result >= 1)
      return result;
  }
  return 1;
}
origin: org.java.net.substance/substance

/**
 * Returns the number of echo characters per each password chanaracter.
 * 
 * @param jpf
 *            Password field.
 * @return The number of echo characters per each password chanaracter.
 * @see SubstanceLookAndFeel#PASSWORD_ECHO_PER_CHAR
 */
public static int getEchoPerChar(JPasswordField jpf) {
  Object obj = jpf
      .getClientProperty(SubstanceLookAndFeel.PASSWORD_ECHO_PER_CHAR);
  if ((obj != null) && (obj instanceof Integer)) {
    int result = (Integer) obj;
    if (result >= 1)
      return result;
  }
  obj = UIManager.get(SubstanceLookAndFeel.PASSWORD_ECHO_PER_CHAR);
  if ((obj != null) && (obj instanceof Integer)) {
    int result = (Integer) obj;
    if (result >= 1)
      return result;
  }
  return 1;
}
origin: stackoverflow.com

Object invalid = c.getClientProperty("Invalid");
return Boolean.TRUE.equals(invalid);
origin: net.java.dev.laf-widget/laf-widget

@Override
public void installDefaults() {
  super.installDefaults();
  // check if the property is already set - can happen on LAF change
  Object checker = this.jcomp
      .getClientProperty(LafWidget.PASSWORD_STRENGTH_CHECKER);
  if ((checker != null) && (checker instanceof PasswordStrengthChecker)) {
    this.jcomp.setBorder(new BorderUIResource.CompoundBorderUIResource(
        this.jcomp.getBorder(), new StrengthCheckedBorder()));
  }
}
origin: com.haulmont.thirdparty/swingx-core

JLabel lbl = (JLabel) passwordField.getClientProperty("labeledBy");
if (lbl != null) {
  lbl.setText(UIManagerExt.getString(CLASS_NAME + ".passwordString", getLocale()));
origin: org.swinglabs.swingx/swingx-core

JLabel lbl = (JLabel) passwordField.getClientProperty("labeledBy");
if (lbl != null) {
  lbl.setText(UIManagerExt.getString(CLASS_NAME + ".passwordString", getLocale()));
origin: org.swinglabs.swingx/swingx-all

JLabel lbl = (JLabel) passwordField.getClientProperty("labeledBy");
if (lbl != null) {
  lbl.setText(UIManagerExt.getString(CLASS_NAME + ".passwordString", getLocale()));
origin: org.bidib.jbidib.swinglabs.swingx/swingx-core

JLabel lbl = (JLabel) passwordField.getClientProperty("labeledBy");
if (lbl != null) {
  lbl.setText(UIManagerExt.getString(CLASS_NAME + ".passwordString", getLocale()));
origin: org.codehaus.jtstand/jtstand-desktop

JLabel lbl = (JLabel) passwordField.getClientProperty("labeledBy");
if (lbl != null) {
  lbl.setText(UIManagerExt.getString(CLASS_NAME + ".passwordString", getLocale()));
javax.swingJPasswordFieldgetClientProperty

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

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • JComboBox (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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