Method getDocument()
Return type:
javax.swing.text.Document
Member of:
javax.swing.text.JTextComponent
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
getDocument().addDocumentListener(dl);
2
getDocument().insertString(getCaretPosition(), text, null);
3
return new VarTextField(_value.getDocument(),_value.getText(), 5, this);
4
text.getDocument().addDocumentListener(l);
5
text.getDocument().removeDocumentListener(l);
6
return ((BaseDocument)component.getDocument()).getParagraphElement(0).getParentElement();
7
Document doc = target.getDocument();
8
getDocument().addDocumentListener(this);
9
textArea.getDocument().addDocumentListener(this);
10
upperView.setDocument(upperView.getDocument());
11
Document doc = text.getDocument();
12
doc = textPane.getDocument();
13
javax.swing.text.html.HTMLDocument doc = (javax.swing.text.html.HTMLDocument)pane.getDocument();
14
return getLineOfOffset(idx, comp.getDocument());
15
editor.getDocument().removeUndoableEditListener( this);
16
HTMLDocument doc = (HTMLDocument) pane.getDocument();
17
HTMLDocument doc = (HTMLDocument) pane.getDocument();
18
String title = (String) htmlPane.getDocument().
19
Document d = chatTextPane.getDocument();
20
Document doc = ep.getDocument();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.