Java:getDocument()とsetCaretPosition()の問題

1009 ワード


jTextArea.append(String string)                 。
jTextArea.setCaretPosition(jTextArea.getDocument().getLength()):         JTextArea   。
/*
getDocument() - Method in interface javax.swing.event. DocumentEvent 
            。 
getDocument() - Method in class javax.swing.text. AbstractDocument.AbstractElement 
      。 
getDocument() - Method in class javax.swing.text. AbstractDocument.DefaultDocumentEvent 
            。 
getDocument() - Method in class javax.swing.text. AbstractWriter 
    。 
getDocument() - Method in class javax.swing.text. DocumentFilter.FilterBypass 
         。 
getDocument() - Method in interface javax.swing.text. Element 
           。 
getDocument() - Method in class javax.swing.text. JTextComponent 
            。 
getDocument() - Method in class javax.swing.text. View 
          。 
getDocument() - Method in interface org.w3c.dom.views. AbstractView 
   DocumentView       AbstractView 。
*/ 
jTextArea.setCaretPosition(0):          JTextArea   。