public class YesNoDialogMessageEditor extends Object implements PropertyEditor
This class is a custom editor for the message property of the
YesNoDialog bean. It is necessary because the default editor for
properties of type String does not allow multi-line strings to be entered.
final TextArea t = new TextArea(value);
t.setSize(300, 150); // TextArea doesn't have a preferred size, so set one
t.addTextListener(new TextListener() {
public void textValueChanged(TextEvent e) {
value = t.getText();
listeners.firePropertyChange(null, null, null);
}
});
return t;