TextField.getPreferredSize

TextField.getPreferredSize

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Dimension getPreferredSize( int columns )
Parameters
columns
the number of columns in this text field.
Returns
the preferred dimensions for displaying this text field.
Description
Gets the preferred size of this text field with the specified number of columns.



Syntax 2
public Dimension getPreferredSize()
Returns
the preferred dimensions for displaying this text field.
Description
Gets the preferred size of this text field.

Overrides
getPreferredSize in class Component