javax.swing
Class JTextField
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Scrollable, Serializable, SwingConstants
- Direct Known Subclasses:
- DefaultTreeCellEditor.DefaultTextField, JFormattedTextField, JPasswordField
JTextField Constructor
JTextField()
Constructs a new TextField.
JTextField(Document doc, String text, int columns)
Constructs a new JTextField that uses the given text storage model and the given number of columns.
JTextField(int columns)
Constructs a new empty TextField with the specified number of columns.
JTextField(String text)
Constructs a new TextField initialized with the specified text.
JTextField(String text, int columns)
Constructs a new TextField initialized with the specified text and columns.