JTextfield
JTextfield
The object of a JTextField class is a text component that allows the editing
of a single line text. It inherits JTextComponent class.
Constructor Description
JTextField(String text) Creates a new TextField initialized with the specified text.
JTextField(String text, int Creates a new TextField initialized with the specified text
columns) and columns.
JTextField(int columns) Creates a new empty TextField with the specified number
of columns.
Commonly used Methods:
Methods Description
Output: