Java JTextField Constructor's

javax.swing
Class JTextField

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.text.JTextComponent
                  extended byjavax.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.