public class

BasicPasswordFieldUI

extends BasicTextFieldUI
java.lang.Object
   ↳ javax.swing.plaf.ComponentUI
     ↳ javax.swing.plaf.TextUI
       ↳ javax.swing.plaf.basic.BasicTextUI
         ↳ javax.swing.plaf.basic.BasicTextFieldUI
           ↳ javax.swing.plaf.basic.BasicPasswordFieldUI
Known Direct Subclasses

Class Overview

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.

Summary

Public Constructors
BasicPasswordFieldUI()
Public Methods
View create(Element elem)
Creates a view (PasswordView) for an element.
static ComponentUI createUI(JComponent c)
Creates a UI for a JPasswordField.
Protected Methods
String getPropertyPrefix()
Fetches the name used as a key to look up properties through the UIManager.
void installDefaults()
Installs the necessary properties on the JPasswordField.
[Expand]
Inherited Methods
From class javax.swing.plaf.basic.BasicTextFieldUI
From class javax.swing.plaf.basic.BasicTextUI
From class javax.swing.plaf.TextUI
From class javax.swing.plaf.ComponentUI
From class java.lang.Object
From interface javax.swing.text.ViewFactory

Public Constructors

public BasicPasswordFieldUI ()

Public Methods

public View create (Element elem)

Creates a view (PasswordView) for an element.

Parameters
elem the element
Returns
  • the view

public static ComponentUI createUI (JComponent c)

Creates a UI for a JPasswordField.

Parameters
c the JPasswordField
Returns
  • the UI

Protected Methods

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.

Returns
  • the name ("PasswordField")

protected void installDefaults ()

Installs the necessary properties on the JPasswordField.