更新时间:2023-01-13 18:52:42
Google 教会我至少 那些是线程安全的.以下是链接再次断开的情况的概述:
Google taught me that at least those are threadsafe. Here's an overview for the case that the link get broken again:
JTextPane
一>replaceSelection()
insertComponent()
insertIcon()
setLogicalStyle()
setCharacterAttributes()
setParagraphAttributes()
JTextArea
一>insert()
append()
replaceRange()
JTextComponent
replaceSelection()
setText()
print()
getPrintable()
UndoManager
DefaultStyledDocument
insert()
setLogicalStyle()
setCharacterAttributes()
setParagraphAttributes()
StyleContext
addAttribute()
addAttributes()
removeAttribute()
removeAttributes()
reclaim()
AbstractDocument
render()
remove()
insertString()
createPosition()
PlainDocument
insertString()
HTMLDocument代码>
setParagraphAttributes()