mirror of https://github.com/apache/poi.git
fix for problem seen with JDK1.4, contributed by Ken Barozzi
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352097 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a836e5e135
commit
345bb2bfbc
|
@ -110,7 +110,7 @@ public class POIBrowser extends JFrame
|
||||||
/* Create the tree model with a root node. The latter is
|
/* Create the tree model with a root node. The latter is
|
||||||
* invisible but it must be present because a tree model
|
* invisible but it must be present because a tree model
|
||||||
* always needs a root. */
|
* always needs a root. */
|
||||||
rootNode = new DefaultMutableTreeNode();
|
rootNode = new DefaultMutableTreeNode("POIFS");
|
||||||
DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
|
DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
|
||||||
|
|
||||||
/* Create the tree UI element. */
|
/* Create the tree UI element. */
|
||||||
|
@ -140,7 +140,7 @@ public class POIBrowser extends JFrame
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Make the tree UI element visible. */
|
/* Make the tree UI element visible. */
|
||||||
treeUI.setRootVisible(false);
|
treeUI.setRootVisible(true);
|
||||||
treeUI.setShowsRootHandles(true);
|
treeUI.setShowsRootHandles(true);
|
||||||
ExtendableTreeCellRenderer etcr = new ExtendableTreeCellRenderer();
|
ExtendableTreeCellRenderer etcr = new ExtendableTreeCellRenderer();
|
||||||
etcr.register(DocumentDescriptor.class,
|
etcr.register(DocumentDescriptor.class,
|
||||||
|
|
Loading…
Reference in New Issue