APIdia Launch Partner
Top Description Constructors Methods
javax.swing.plaf.metal

public Class MetalTextFieldUI

extends BasicTextFieldUI
Class Inheritance
Imports
java.awt.*, java.beans.*, javax.swing.*, javax.swing.text.*, javax.swing.plaf.*, javax.swing.plaf.basic.*

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 java.beans.XMLEncoder.

Author
Steve Wilson

Constructor Summary

AccessConstructor and Description
public
MetalTextFieldUI()

Constructs a MetalTextFieldUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

the instance of MetalTextFieldUI
createUI
(JComponent
a component
c
)

Hides javax.swing.plaf.basic.BasicTextFieldUI.createUI.

Constructs MetalTextFieldUI.

public void
propertyChange(PropertyChangeEvent
the property change event
evt
)

Overrides javax.swing.plaf.basic.BasicTextUI.propertyChange.

This method gets called when a bound property is changed on the associated JTextComponent.

Inherited from javax.swing.plaf.basic.BasicTextFieldUI:
creategetBaselinegetBaselineResizeBehaviorgetPropertyPrefix

Constructor Detail

MetalTextFieldUIback to summary
public MetalTextFieldUI()

Constructs a MetalTextFieldUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicTextFieldUI.createUI.

Constructs MetalTextFieldUI.

Parameters
c:JComponent

a component

Returns:ComponentUI

the instance of MetalTextFieldUI

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent evt)

Overrides javax.swing.plaf.basic.BasicTextUI.propertyChange.

This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses.

Parameters
evt:PropertyChangeEvent

the property change event