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:
mjohnson 2002-02-15 02:24:36 +00:00
parent 5a91ae0da4
commit fda6778596
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ public class POIBrowser extends JFrame
/* Create the tree model with a root node. The latter is
* invisible but it must be present because a tree model
* always needs a root. */
rootNode = new DefaultMutableTreeNode();
rootNode = new DefaultMutableTreeNode("POIFS");
DefaultTreeModel treeModel = new DefaultTreeModel(rootNode);
/* Create the tree UI element. */
@ -140,7 +140,7 @@ public class POIBrowser extends JFrame
}
/* Make the tree UI element visible. */
treeUI.setRootVisible(false);
treeUI.setRootVisible(true);
treeUI.setShowsRootHandles(true);
ExtendableTreeCellRenderer etcr = new ExtendableTreeCellRenderer();
etcr.register(DocumentDescriptor.class,