AttributedString « java.text « Java by API






1.new AttributedString(String text)
2.AttributedString: addAttribute(Attribute attribute, Object value, int beginIndex, int endIndex)