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

How to use
setForeground
method
in
javax.swing.JPasswordField

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

origin: leMaik/swing-material

@Override
public void setForeground(Color fg) {
  super.setForeground(fg);
  if (floatingLabel != null)
    floatingLabel.updateForeground();
}
origin: com.github.insubstantial/substance

  @Override
  public void run() {
    if (passwordField == null)
      return;
    Color foregr = passwordField.getForeground();
    if ((foregr == null) || (foregr instanceof UIResource)) {
      passwordField
          .setForeground(SubstanceColorUtilities
              .getForegroundColor(SubstanceLookAndFeel
                  .getCurrentSkin(passwordField)
                  .getEnabledColorScheme(
                      SubstanceLookAndFeel
                          .getDecorationType(passwordField))));
    }
  }
});
origin: org.java.net.substance/substance

  @Override
  public void run() {
    if (passwordField == null)
      return;
    Color foregr = passwordField.getForeground();
    if ((foregr == null) || (foregr instanceof UIResource)) {
      passwordField
          .setForeground(SubstanceColorUtilities
              .getForegroundColor(SubstanceLookAndFeel
                  .getCurrentSkin(passwordField)
                  .getEnabledColorScheme(
                      SubstanceLookAndFeel
                          .getDecorationType(passwordField))));
    }
  }
});
javax.swingJPasswordFieldsetForeground

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

  • Making http requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim 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