Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine AttributeSet

Status
Not open for further replies.

dontj

Programmer
Feb 8, 2005
5
0
0
US
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?
 
Not entirely following your problem here - could you provide an example, and perhaps the error you are seeing ?

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top