191k views
0 votes
) A JTextArea control

provides a bounding box used for the layout of JTextField components.
is used to group multiple JTextField components together.
is a control used to display multiple lines of text
provides a scrollbar for a JTextField component.

User Kvasi
by
5.0k points

1 Answer

6 votes

Answer:

is a control used to display multiple lines of text

Step-by-step explanation:

A JTextArea control is a control used to display multiple lines of text.

A JTextField component is generally used for displaying single line of text. But when the text content to be displayed is large and multiline, JTextField does not provide a good visual experience. In such scenarios JTextArea is used. For example if you want to read the contents of a long text file and display it on a widget, you would want to use JTextArea.

User Dan Hulton
by
5.6k points