I have a subclass of Document that override the insertString method. I insert strings into the subclassed Document like this:
public class MyDocument extends Document {
...
MyDocument doc = new MyDocument();
doc.insertString(doc.getLength(), str, doc.getStyle("heading"));
...
from MyDocument.insertString(int offs, String str, AttributeSet as) method how do I determine if AttributeSet "as" resolves to "heading" style?
public class MyDocument extends Document {
...
MyDocument doc = new MyDocument();
doc.insertString(doc.getLength(), str, doc.getStyle("heading"));
...
from MyDocument.insertString(int offs, String str, AttributeSet as) method how do I determine if AttributeSet "as" resolves to "heading" style?