I'd like to display and edit HTML files as collapsible outlines. Is it feasible to use a JTree as the UI for an HTMLDocument, by customizing an HTMLEditorKit, instead of using the usual JTextPane / JEditorPane GUI? Or does a more efficient design exist in Java?
My goal is a cross-platform replacement for MS Word's Outline View. Word allows expanding & collapsing HTML files based on the hierarchy of headings <H1> through <H6>. I'd like to add the capability to expand and collapse nested lists, if possible.
This application is basically for text rather than images, but it must support hyperlinks (via both <A HREF="..."> and <A NAME="...">. Colored text, and tables, would also be nice features.