public class StringDocument extends AbstractDocument
listenerList| Constructor and Description |
|---|
StringDocument()
Creates a new StringDocument.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Returns the text held in the document.
|
void |
setText(java.lang.String text)
Sets the text held in the document.
|
addDocumentListener, fireDocumentUpdate, removeDocumentListenerpublic java.lang.String getText()
Document.getText()public void setText(java.lang.String text)
text - the new textDocument.setText(String)