Style ListStyles

DefaultStyledDocument doc = (DefaultStyledDocument)textPane.getDocument();
Enumeration enum = doc.getStyleNames();
while (enum.hasMoreElements()) {
    String styleName = (String)enum.nextElement();

    // Get style object
    Style style = doc.getStyle(styleName);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.