java.lang.Object | +--java.awt.Component | +--java.awt.TextComponent | +--java.awt.TextArea
A
TextArea object is a multi-line region
that displays text. It can be set to allow editing or
to be read-only.
The following image shows the appearance of a text area:
This text area could be created by the following line of code:
new TextArea("Hello", 5, 40);
| Inner Class Summary | |
protected class |
TextArea.AccessibleAWTTextArea
TextArea.AccessibleAWTTextArea
|
| Inner classes inherited from class java.awt.TextComponent |
TextComponent.AccessibleAWTTextComponent |
| Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent |
| Field Summary | |
static int |
SCROLLBARS_BOTH
copy-> SCROLLBARS_BOTH
|
static int |
SCROLLBARS_HORIZONTAL_ONLY
copy-> SCROLLBARS_HORIZONTAL_ONLY
|
static int |
SCROLLBARS_NONE
copy-> SCROLLBARS_NONE
|
static int |
SCROLLBARS_VERTICAL_ONLY
copy-> SCROLLBARS_VERTICAL_ONLY
|
| Fields inherited from class java.awt.TextComponent |
textListener |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
TextArea
copy-> new TextArea()copy-> <TextArea var> = new TextArea();
|
|
TextArea
copy-> new TextArea(, )copy-> <TextArea var> = new TextArea(<int rows>, <int columns>);
|
|
TextArea
copy-> new TextArea( )copy-> <TextArea var> = new TextArea(<String text>);
|
|
TextArea
copy-> new TextArea(, , )copy-> <TextArea var> = new TextArea(<String text>, <int rows>, <int columns>);
|
|
TextArea
copy-> new TextArea(, , , )copy-> <TextArea var> = new TextArea(<String text>, <int rows>, <int columns>, <int scrollbars>);
|
|
| Method Summary | |
void |
addNotify()
copy-> .addNotify()copy-> <TextArea>.addNotify();
|
void |
append(String str)
copy-> .append( )copy-> <TextArea>.append(<String str>);
|
void |
appendText(String str)
copy-> .appendText( )copy-> <TextArea>.appendText(<String str>);
|
AccessibleContext |
getAccessibleContext()
copy-> .getAccessibleContext()copy-> <AccessibleContext var>=<TextArea>.getAccessibleContext();
|
int |
getColumns()
copy-> .getColumns()copy-> <int var>=<TextArea>.getColumns();
|
Dimension |
getMinimumSize()
copy-> .getMinimumSize()copy-> <Dimension var>=<TextArea>.getMinimumSize();
|
Dimension |
getMinimumSize(int rows,
int columns)
copy-> .getMinimumSize(, )copy-> <Dimension var>=<TextArea>.getMinimumSize(<int rows>, <int columns>);
|
Dimension |
getPreferredSize()
copy-> .getPreferredSize()copy-> <Dimension var>=<TextArea>.getPreferredSize();
|
Dimension |
getPreferredSize(int rows,
int columns)
copy-> .getPreferredSize(, )copy-> <Dimension var>=<TextArea>.getPreferredSize(<int rows>, <int columns>);
|
int |
getRows()
copy-> .getRows()copy-> <int var>=<TextArea>.getRows();
|
int |
getScrollbarVisibility()
copy-> .getScrollbarVisibility()copy-> <int var>=<TextArea>.getScrollbarVisibility();
|
void |
insert(String str,
int pos)
copy-> .insert(, )copy-> <TextArea>.insert(<String str>, <int pos>);
|
void |
insertText(String str,
int pos)
copy-> .insertText(, )copy-> <TextArea>.insertText(<String str>, <int pos>);
|
Dimension |
minimumSize()
copy-> .minimumSize()copy-> <Dimension var>=<TextArea>.minimumSize();
|
Dimension |
minimumSize(int rows,
int columns)
copy-> .minimumSize(, )copy-> <Dimension var>=<TextArea>.minimumSize(<int rows>, <int columns>);
|
protected String |
paramString()
copy-> .paramString()copy-> <String var>=<TextArea>.paramString();
|
Dimension |
preferredSize()
copy-> .preferredSize()copy-> <Dimension var>=<TextArea>.preferredSize();
|
Dimension |
preferredSize(int rows,
int columns)
copy-> .preferredSize(, )copy-> <Dimension var>=<TextArea>.preferredSize(<int rows>, <int columns>);
|
void |
replaceRange(String str,
int start,
int end)
copy-> .replaceRange(, , )copy-> <TextArea>.replaceRange(<String str>, <int start>, <int end>);
|
void |
replaceText(String str,
int start,
int end)
copy-> .replaceText(, , )copy-> <TextArea>.replaceText(<String str>, <int start>, <int end>);
|
void |
setColumns(int columns)
copy-> .setColumns( )copy-> <TextArea>.setColumns(<int columns>);
|
void |
setRows(int rows)
copy-> .setRows( )copy-> <TextArea>.setRows(<int rows>);
|
| Methods inherited from class java.awt.TextComponent |
addTextListener, getBackground, getCaretPosition, getListeners, getSelectedText, getSelectionEnd, getSelectionStart, getText, isEditable, processEvent, processTextEvent, removeNotify, removeTextListener, select, selectAll, setBackground, setCaretPosition, setEditable, setSelectionEnd, setSelectionStart, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |