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

public Class MotifTextFieldUI

extends BasicTextFieldUI
Class Inheritance
Imports
javax.swing.JComponent, javax.swing.plaf.ComponentUI, javax.swing.plaf.basic.BasicTextFieldUI, javax.swing.text.Caret

Provides the Motif look and feel for a text 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 text field
c
)

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

Creates a UI for a JTextField.

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

Constructor Detail

MotifTextFieldUIback to summary
public MotifTextFieldUI()

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.BasicTextFieldUI.createUI.

Creates a UI for a JTextField.

Parameters
c:JComponent

the text field

Returns:ComponentUI

the UI