Package Summary  Overview Summary

class:BasicTextFieldUI [NONE]

  • All Implemented Interfaces:
    ViewFactory
    Direct Known Subclasses:
    BasicFormattedTextFieldUI, BasicPasswordFieldUI, MetalTextFieldUI, SynthTextFieldUI

    public class BasicTextFieldUI
    extends BasicTextUI
    
    Basis of a look and feel for a JTextField.

    Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.

constructor:<init>() [NONE]

  • BasicTextFieldUI

    public BasicTextFieldUI()
    Creates a new BasicTextFieldUI.

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

  • createUI

    public static ComponentUI createUI​(JComponent c)
    Creates a UI for a JTextField.
    Parameters:
    c - the text field
    Returns:
    the UI

method:getPropertyPrefix() [NONE]

  • getPropertyPrefix

    protected String getPropertyPrefix()
    Fetches the name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties.
    Specified by:
    getPropertyPrefix in class BasicTextUI
    Returns:
    the name ("TextField")

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

  • create

    public View create​(Element elem)
    Creates a view (FieldView) based on an element.
    Specified by:
    create in interface ViewFactory
    Overrides:
    create in class BasicTextUI
    Parameters:
    elem - the element
    Returns:
    the view
    See Also:
    View

method:getBaseline(javax.swing.JComponent,int,int) [NONE]

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

© 2018 Oracle Corporation and/or its affiliates