Menu

#10 Rendering problem of the tree view

open
nobody
None
5
2003-03-19
2003-03-19
No

While xpe tries to render the attached html file
following exception occures:

java.lang.ClassCastException
at
javax.swing.text.html.EditableView.setParent(EditableView.java:88)
at
javax.swing.text.CompositeView.replace(CompositeView.java:200)
at
javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
at
javax.swing.text.FlowView$LogicalView.loadChildren(FlowView.java:607)
at
javax.swing.text.CompositeView.setParent(CompositeView.java:122)
at
javax.swing.text.FlowView.loadChildren(FlowView.java:120)
at
javax.swing.text.CompositeView.setParent(CompositeView.java:122)
at
javax.swing.text.html.ParagraphView.setParent(ParagraphView.java:58)
at
javax.swing.text.CompositeView.replace(CompositeView.java:200)
at javax.swing.text.BoxView.replace(BoxView.java:164)
at
javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
at
javax.swing.text.CompositeView.setParent(CompositeView.java:122)
at
javax.swing.text.html.BlockView.setParent(BlockView.java:55)
at
javax.swing.text.html.HTMLEditorKit$HTMLFactory$BodyBlockView.setParent(HTMLEditorKit.java:1261)
at
javax.swing.text.CompositeView.replace(CompositeView.java:200)
at javax.swing.text.BoxView.replace(BoxView.java:164)
at
javax.swing.text.CompositeView.loadChildren(CompositeView.java:97)
at
javax.swing.text.CompositeView.setParent(CompositeView.java:122)
at
javax.swing.text.html.BlockView.setParent(BlockView.java:55)
at
javax.swing.plaf.basic.BasicHTML$Renderer.<init>(BasicHTML.java:283)
at
javax.swing.plaf.basic.BasicHTML.createHTMLView(BasicHTML.java:47)
at
javax.swing.plaf.basic.BasicHTML.updateRenderer(BasicHTML.java:80)
at
javax.swing.plaf.basic.BasicLabelUI.propertyChange(BasicLabelUI.java:384)
at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
at
javax.swing.JComponent.firePropertyChange(JComponent.java:3814)
at
javax.swing.tree.DefaultTreeCellRenderer.firePropertyChange(DefaultTreeCellRenderer.java:457)
at javax.swing.JLabel.setText(JLabel.java:303)
at
javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent(DefaultTreeCellRenderer.java:316)
at
javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2751)
at
javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:478)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1342)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1478)
at
javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270)
at
javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLayoutCache.java:966)
at
javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:164)
at
javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1494)
at
javax.swing.plaf.basic.BasicTreeUI$TreeExpansionHandler.treeExpanded(BasicTreeUI.java:2314)
at javax.swing.JTree.fireTreeExpanded(JTree.java:2242)
at javax.swing.JTree.setExpandedState(JTree.java:3013)
at javax.swing.JTree.expandPath(JTree.java:1748)
at javax.swing.JTree.makeVisible(JTree.java:1607)
at xpe.gui.DOMTree.expandAllBeneath(DOMTree.java:75)
at xpe.gui.DOMTree.expandAll(DOMTree.java:59)
at xpe.gui.XPEPanel.maybeExpandAll(XPEPanel.java:308)
at xpe.gui.XPEPanel.updateContents(XPEPanel.java:298)
at xpe.gui.XPEPanel.update(XPEPanel.java:254)
at xpe.gui.Actions$1.actionPerformed(Actions.java:37)
at xpe.gui.ThreadedAction$1.run(ThreadedAction.java:24)

Discussion


Log in to post a comment.