Package Summary  Overview Summary

class:BasicPasswordFieldUI [NONE]

All Implemented Interfaces:
ViewFactory

public class BasicPasswordFieldUI
extends BasicTextFieldUI
Provides the Windows look and feel for a password field. The only difference from the standard text field is that the view of the text is simply a string of the echo character as specified in JPasswordField, rather than the real text contained in the field.

constructor:BasicPasswordFieldUI() [NONE]

method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static  ComponentUI createUI?(JComponent c)
    Creates a UI for a JPasswordField.
    Parameters:
    c - the JPasswordField
    Returns:
    the UI
  • method:getPropertyPrefix() [NONE]

    getPropertyPrefix

    protected String getPropertyPrefix()
    Fetches the name used as a key to look up properties through the UIManager. This is used as a prefix to all the standard text properties.
    Overrides:
    getPropertyPrefix in class BasicTextFieldUI
    Returns:
    the name ("PasswordField")

    method:installDefaults() [NONE]

    installDefaults

    protected void installDefaults()
    Installs the necessary properties on the JPasswordField.
    Overrides:
    installDefaults in class BasicTextUI
    Since:
    1.6
    See Also:
    BasicTextUI.uninstallDefaults(), BasicTextUI.installUI(javax.swing.JComponent)

    method:create(javax.swing.text.Element) [NONE]

    create

    public View create?(Element elem)
    Creates a view (PasswordView) for an element.
    Specified by:
    create in interface ViewFactory
    Overrides:
    create in class BasicTextFieldUI
    Parameters:
    elem - the element
    Returns:
    the view
    See Also:
    View

    © 2020 Oracle Corporation and/or its affiliates