MutableAttributeSet a2 = new SimpleAttributeSet();
MutableAttributeSet a3 = new SimpleAttributeSet();
a1.addAttribute(StyleConstants.NameAttribute, "MY_FIRST");
a2.addAttribute(StyleConstants.NameAttribute, "MY_SECOND");
a3.addAttribute(StyleConstants.NameAttribute, "MY_MIDDLE");
ElementSpec s1 = new ElementSpec(a1, ElementSpec.ContentType,
"1".toCharArray(), 0, 1);
ElementSpec s2 = new ElementSpec(a2, ElementSpec.ContentType,
"2".toCharArray(), 0, 1);