editText
public static String editText(Component parentComponent,
String title,
String message,
String text,
boolean wrap,
int rows,
int columns,
Icon icon)
Displays a dialog box allowing to edit specified text.
- Parameters:
parentComponent
- used to specify which Frame or Dialog to
use as parent of dialog box.
title
- title of the dialog box
message
- a one-line message displayed above the JTextArea
text
- text edited in a JTextArea
wrap
- if true, lines are wrapped at word boundaries; if false,
lines are wrapped at character boundaries.
rows
- number of rows for the JTextArea
columns
- number of columns for the JTextArea
icon
- a specific, preferably 32x32, icon; may be null
in which case the generic icon is used
- Returns:
- text (as is) contained in JTextArea;
null
if
the user has canceled the operation