APIdia Launch Partner
Top Description Constructors Methods
com.sun.java.swing.plaf.motif

public Class MotifPasswordFieldUI

extends BasicPasswordFieldUI
Class Inheritance
Known Direct Subclasses
sun.awt.X11.XTextFieldPeer.AWTTextFieldUI
Imports
javax.swing.JComponent, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicPasswordFieldUI, javax.swing.text.Caret

Provides the Motif look and feel for a password field.
Author
Timothy Prinzing

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Caret

Returns:

the caret object
createCaret
()

Overrides javax.swing.plaf.basic.BasicTextUI.createCaret.

Creates the object to use for a caret.

public static ComponentUI

Returns:

the UI
createUI
(JComponent
the JPasswordField
c
)

Hides javax.swing.plaf.basic.BasicPasswordFieldUI.createUI.

Creates a UI for a JPasswordField.

Inherited from javax.swing.plaf.basic.BasicPasswordFieldUI:
creategetPropertyPrefixinstallDefaults

Constructor Detail

MotifPasswordFieldUIback to summary
public MotifPasswordFieldUI()

Method Detail

createCaretback to summary
protected Caret createCaret()

Overrides javax.swing.plaf.basic.BasicTextUI.createCaret.

Creates the object to use for a caret. By default an instance of MotifTextUI.MotifCaret is created. This method can be redefined to provide something else that implements the Caret interface.

Returns:Caret

the caret object

Annotations
@Override
createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicPasswordFieldUI.createUI.

Creates a UI for a JPasswordField.

Parameters
c:JComponent

the JPasswordField

Returns:ComponentUI

the UI