void changedUpdate(DocumentEvent e) 
监听Document的属性是否被修改void insertUpdate(DocumentEvent e) 
监听是否有新的Document插入void removeUpdate(DocumentEvent e) 
监听是否有Document被删除

解决方案 »

  1.   

    DocumentListener Interface for an observer to register to receive notifications of changes to a text documentinsertUpdate(DocumentEvent e)--
    Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.removeUpdate(DocumentEvent e)--
    Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).changedUpdate(DocumentEvent e)--
    Gives notification that an attribute or set of attributes changed
      

  2.   

    Copy from API doc,so you should see the api doc first if you meet some problems.