APIdia Launch Partner
Top Description Methods
java.awt.peer

public Interface TextFieldPeer

extends TextComponentPeer
Known Direct Implementers
sun.awt.X11.XTextFieldPeer
Imports
java.awt.Dimension, .TextField

The peer interface for TextField. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Method Summary

Modifier and TypeMethod and Description
public Dimension

Returns:

the minimum size of the text field
getMinimumSize
(int
the number of columns
columns
)

Returns the minimum size of the text field with the specified number of columns.

public Dimension

Returns:

the preferred size of the text field
getPreferredSize
(int
the number of columns
columns
)

Returns the preferred size of the text field with the specified number of columns.

public void
setEchoChar(char
the echo character to set
echoChar
)

Sets the echo character.

Inherited from java.awt.peer.TextComponentPeer:
getCaretPositiongetInputMethodRequestsgetSelectionEndgetSelectionStartgetTextselectsetCaretPositionsetEditablesetText

Method Detail

getMinimumSizeback to summary
public Dimension getMinimumSize(int columns)

Returns the minimum size of the text field with the specified number of columns.

Parameters
columns:int

the number of columns

Returns:Dimension

the minimum size of the text field

See Also
TextField#getMinimumSize(int)
getPreferredSizeback to summary
public Dimension getPreferredSize(int columns)

Returns the preferred size of the text field with the specified number of columns.

Parameters
columns:int

the number of columns

Returns:Dimension

the preferred size of the text field

See Also
TextField#getPreferredSize(int)
setEchoCharback to summary
public void setEchoChar(char echoChar)

Sets the echo character.

Parameters
echoChar:char

the echo character to set

See Also
TextField#getEchoChar()