1/12
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
public class JTextArea extends JTextComponentJTextArea class declaration
JTextArea
The object of a _______ class is a multi line region that displays text. It allows the editing of multiple line text. It inherits JTextComponent class
JTextArea()
JTextArea(String s)
JTextArea(int row, int column)
JTextArea(String s, int row, int column)
Commonly used Constructors in JTextArea:
JTextArea()
Creates a text area that displays no text initially.
JTextArea(String s)
Creates a text area that displays specified text initially.
JTextArea(int row, int column)
Creates a text area with the specified number of rows and columns that displays no text initially.
JTextArea(String s, int row, int column)
Creates a text area with the specified number of rows and columns that displays specified text.
void setRows(int rows)
void setColumns(int cols)
void setFont(Font f)
void insert(String s, int position)
void append(String s)
Commonly used Methods in JTextArea:
void setRows(int rows)
It is used to set specified number of rows.
void setColumns(int cols)
It is used to set specified number of columns.
void setFont(Font f)
It is used to set the specified font.
void insert(String s, int position)
It is used to insert the specified text on the specified position.
void append(String s)
It is used to append the given text to the end of the document.