尝试调用
Styleddocument.getCharacterElement(pos)以获得该位置的character元素,然后调用
Element.getAttributes()以获得其属性集。
在
AttributeSet包含风格,你可以检索使用所提供的方法
StyleConstants。

尝试调用
Styleddocument.getCharacterElement(pos)以获得该位置的character元素,然后调用
Element.getAttributes()以获得其属性集。
在
AttributeSet包含风格,你可以检索使用所提供的方法
StyleConstants。