- 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
-
- 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
Constructor Summary
Constructors Constructor and Description BasicPasswordFieldUI()
-
Method Summary
Methods Modifier and Type Method and Description View
create(Element elem)
Creates a view (PasswordView) for an element.static ComponentUI
createUI(JComponent c)
Creates a UI for a JPasswordField.protected String
getPropertyPrefix()
Fetches the name used as a key to look up properties through the UIManager.protected void
installDefaults()
Installs the necessary properties on the JPasswordField.-
Methods inherited from class javax.swing.plaf.basic.BasicTextFieldUI
getBaseline, getBaselineResizeBehavior
-
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installListeners, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, propertyChange, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
Creates a UI for a JPasswordField.- Parameters:
c
- the JPasswordField- Returns:
- the UI
-
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 classBasicTextFieldUI
- Returns:
- the name ("PasswordField")
-
installDefaults
protected void installDefaults()
Installs the necessary properties on the JPasswordField.- Overrides:
installDefaults
in classBasicTextUI
- Since:
- 1.6
- See Also:
BasicTextUI.uninstallDefaults()
,BasicTextUI.installUI(javax.swing.JComponent)
-
create
public View create(Element elem)
Creates a view (PasswordView) for an element.- Specified by:
create
in interfaceViewFactory
- Overrides:
create
in classBasicTextFieldUI
- Parameters:
elem
- the element- Returns:
- the view
- See Also:
View
-
-
Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/swing/plaf/basic/BasicPasswordFieldUI.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.