javax.swing.plaf.basic

Class BasicTextFieldUI

public class BasicTextFieldUI extends BasicTextUI

Constructor Summary
BasicTextFieldUI()
Method Summary
Viewcreate(Element elem)
static ComponentUIcreateUI(JComponent c)
protected StringgetPropertyPrefix()
Returns the prefix for entries in the {@link UIDefaults} table.
voidinstallUI(JComponent c)
protected voidpropertyChange(PropertyChangeEvent event)
Receives notification whenever one of the text component's bound properties changes.

Constructor Detail

BasicTextFieldUI

public BasicTextFieldUI()

Method Detail

create

public View create(Element elem)

createUI

public static ComponentUI createUI(JComponent c)

getPropertyPrefix

protected String getPropertyPrefix()
Returns the prefix for entries in the {@link UIDefaults} table.

Returns: "TextField"

installUI

public void installUI(JComponent c)

propertyChange

protected void propertyChange(PropertyChangeEvent event)
Receives notification whenever one of the text component's bound properties changes. Here we check for the editable and enabled properties and adjust the background color accordingly.

The colors are only changed if they are not a ColorUIResource.

Parameters: event the property change event