Text input component that allows a user to enter multiple lines of
plain text. Unlike in previous releases of JavaFX, support for single line
input is not available as part of the TextArea control, however this is
the sole-purpose of the TextField
control. Additionally, if you want
a form of rich-text editing, there is also the
HTMLEditor
control.
TextArea supports the notion of showing prompt text
to the user when there is no text
already in the
TextArea (either via the user, or set programmatically). This is a useful
way of informing the user as to what is expected in the text area, without
having to resort to tooltips
or on-screen labels
.
extends
TextField