Tabnine Logo
JPasswordField.getClientProperty
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Table (org.hibernate.mapping)
    A relational table
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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