StyledDocument « javax.swing.text « Java by API






1.StyledDocument: addStyle(String nm, Style parent)
2.StyledDocument: insertString(int offset, String str, AttributeSet a)
3.StyledDocument: setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace)
4.StyledDocument: setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace)