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

How to use
setBorder
method
in
javax.swing.JPasswordField

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

origin: net.java.dev.laf-widget/laf-widget

  public void propertyChange(PropertyChangeEvent evt) {
    if (LafWidget.PASSWORD_STRENGTH_CHECKER.equals(evt
        .getPropertyName())) {
      Object newValue = evt.getNewValue();
      Object oldValue = evt.getOldValue();
      if ((newValue != null)
          && (newValue instanceof PasswordStrengthChecker)
          && (!(oldValue instanceof PasswordStrengthChecker))) {
        jcomp
            .setBorder(new BorderUIResource.CompoundBorderUIResource(
                jcomp.getBorder(),
                new StrengthCheckedBorder()));
      } else {
        // restore core border
        Border coreBorder = UIManager
            .getBorder("PasswordField.border");
        jcomp.setBorder(coreBorder);
        jcomp.setToolTipText(null);
      }
    }
  }
};
origin: atarw/material-ui-swing

@Override
public void installUI (JComponent c) {
  super.installUI (c);
  JPasswordField passwordField = (JPasswordField) c;
  passwordField.setOpaque (false);
  passwordField.setBorder (BorderFactory.createEmptyBorder (5, 2, 10, 0));
  passwordField.setBackground (MaterialColors.LIGHT_BLUE_400);
  this.focusedBackground = passwordField.getBackground ();
  this.unfocusedBackground = MaterialColors.GRAY_200;
  this.focusedSelectionBackground = MaterialColors.bleach (focusedBackground, 0.3f);
  this.unfocusedSelectionBackground = unfocusedBackground;
}
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: org.java.net.substance/substance

            .getComponentFontSize(this.passwordField))),
    new BasicBorders.MarginBorder());
this.passwordField.setBorder(newB);
origin: com.github.insubstantial/substance

            .getComponentFontSize(this.passwordField))),
    new BasicBorders.MarginBorder());
this.passwordField.setBorder(newB);
origin: Multibit-Legacy/multibit-hd

passwordField.setBorder(new TextBubbleBorder(Themes.currentTheme.dataEntryBorder()));
passwordField.setBackground(Themes.currentTheme.dataEntryBackground());
javax.swingJPasswordFieldsetBorder

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

  • 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)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • CodeWhisperer alternatives
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