JComponent stylesheetMenu = (JComponent)it.next();
stylesheetMenu.removeAll();
stylesheetMenu.setEnabled(false);
ButtonGroup buttonGroup = new ButtonGroup();
TreeWalker tw;
tw = ((DocumentTraversal)doc).createTreeWalker
(doc,
NodeFilter.SHOW_PROCESSING_INSTRUCTION,
null,
true);
for (Node n = tw.nextNode(); n != null; n = tw.nextNode()) {
if (n instanceof StyleSheetProcessingInstruction) {
StyleSheetProcessingInstruction sspi;
sspi = (StyleSheetProcessingInstruction)n;
HashTable attrs = sspi.getPseudoAttributes();
final String title = (String)attrs.get("title");