no method ! .setDocument
plese add!
textControl1.setDocument(doc);
JTextField
setDocument(Document doc)
Associates the editor with a text document.
setDocument
public void setDocument(Document doc)Associates the editor with a text document. The currently registered factory is used to build a view for the document, which gets displayed by the editor after revalidation. A PropertyChange event ("document") is propagated to each listener.
Overrides:
setDocument in class JTextComponent
Parameters:
doc - the document to display/edit
See Also:
JTextComponent.getDocument()
--------------------------------------------------------------------------------
http://docs.oracle.com/javase/1.4.2/docs/api/javax/swing/JTextField.html#setDocument\(javax.swing.text.Document)