TextAreaNameTextArea
DescriptionThe TextArea class provides a multi-line Component for textual user input. Class Definition
public class java.awt.TextArea extends java.awt.TextComponent { // Constants public final static int SCROLLBARS_BOTH; public final static int SCROLLBARS_HORIZONTAL_ONLY; public final static int SCROLLBARS_NONE; public final static int SCROLLBARS_VERTICAL_ONLY; // Constructors public TextArea(); public TextArea (int rows, int columns); public TextArea (String text); public TextArea (String text, int rows, int columns); public TextArea (String text, int rows, int columns, int scrollbars); // Instance Methods public void addNotify(); public synchronized void append (String string); public void appendText (String string); public int getColumns(); public Dimension getMinimumSize(); public Dimension getMinimumSize (int rows, int columns); public Dimension getPreferredSize(); public Dimension getPreferredSize (int rows, int columns); public int getRows(); public int getScrollbarVisibility(); public synchronized void insert (String string, int position); public void insertText (String string, int position); public Dimension minimumSize(); public Dimension minimumSize (int rows, int columns); public Dimension preferredSize(); public Dimension preferredSize (int rows, int columns); public synchronized void replaceRange (String str, int start, int end); public void replaceText (String string, int startPosition, int endPosition); public void setColumns (int columns); public void setRows (int rows); // Protected Instance Methods protected String paramString(); } ConstantsSCROLLBARS_BOTHpublic final static int SCROLLBARS_BOTHShow both the horizontal and vertical scrollbars. SCROLLBARS_HORIZONTAL_ONLYpublic final static int SCROLLBARS_HORIZONTAL_ONLYShow the horizontal scrollbar. SCROLLBARS_NONEpublic final static int SCROLLBARS_NONEShow no scrollbars. SCROLLBARS_VERTICAL_ONLYpublic final static int SCROLLBARS_VERTICAL_ONLYShow the vertical scrollbar. ConstructorsTextAreapublic TextArea()
public TextArea (int rows, int columns)
public TextArea (String text)
public TextArea (String text, int rows, int columns)
public TextArea (String text, int rows, int columns, int scrollbars)
Instance MethodsaddNotifypublic void addNotify()
appendpublic synchronized void append (String string)
appendTextpublic void appendText (String string)
getColumnspublic int getColumns()
getMinimumSizepublic Dimension getMinimumSize()
public Dimension getMinimumSize (int rows, int columns)
getPreferredSizepublic Dimension getPreferredSize()
public Dimension getPreferredSize (int rows, int columns)
getRowspublic int getRows()
getScrollbarVisibilitypublic int getScrollbarVisibility()
insertpublic synchronized void insert (String string, int position)
insertTextpublic void insertText (String string, int position)
minimumSizepublic Dimension minimumSize()
public Dimension minimumSize (int rows, int columns)
preferredSizepublic Dimension preferredSize()
public Dimension preferredSize (int rows, int columns)
replaceRangepublic synchronized void replaceRange (String str, int start, int end)
replaceTextpublic void replaceText (String string, int startPosition, int endPosition)
setColumnspublic void setColumns (int columns)
setRowspublic void setRows (int rows)
Protected Instance MethodsparamStringprotected String paramString()
See AlsoDimension, TextComponent, String |
|