TextFieldNameTextField
DescriptionThe TextField class provides a single line Component for user input. Class Definition
public class java.awt.TextField extends java.awt.TextComponent { // Constructors public TextField(); public TextField (int columns); public TextField (String text); public TextField (String text, int columns); // Instance Methods public void addActionListener (ActionListener l); public void addNotify(); public boolean echoCharIsSet(); public int getColumns(); public char getEchoChar(); public Dimension getMinimumSize(); public Dimension getMinimumSize (int columns); public Dimension getPreferredSize(); public Dimension getPreferredSize (int columns); public Dimension minimumSize(); public Dimension minimumSize (int columns); public Dimension preferredSize(); public Dimension preferredSize (int columns); public void removeActionListener (ActionListener l); public void setColumns(int columns); public void setEchoChar(char c); public void setEchoCharacter (char c); // Protected Instance Methods protected String paramString(); protected void processActionEvent (ActionEvent e); protected void processEvent (AWTEvent e); } ConstructorsTextFieldpublic TextField()
public TextField (int columns)
public TextField (String text)
public TextField (String text, int columns)
Instance MethodsaddActionListenerpublic void addActionListener (ActionListener l)
addNotifypublic synchronized void addNotify()
echoCharIsSetpublic boolean echoCharIsSet()
getColumnspublic int getColumns()
getEchoCharpublic char getEchoChar()
getMinimumSizepublic Dimension getMinimumSize()
public Dimension getMinimumSize (int columns)
getPreferredSizepublic Dimension getPreferredSize()
public Dimension getPreferredSize (int columns)
minimumSizepublic Dimension minimumSize()
public Dimension minimumSize (int columns)
preferredSizepublic Dimension preferredSize()
public Dimension preferredSize (int columns)
removeActionListenerpublic void removeActionListener (ActionListener l)
setColumnspublic void setColumns (int columns)
setEchoCharpublic void setEchoChar (char c)
setEchoCharacterpublic void setEchoCharacter (char c)
Protected Instance MethodsparamStringprotected String paramString()
processActionEventprotected void processActionEvent (ActionEvent e)
processEventprotected void processEvent (AWTEvent e)
See AlsoDimension, TextComponent, String |
|