From 345bb2bfbc33484828fc2f289a73579dc23d62c1 Mon Sep 17 00:00:00 2001 From: Mark Johnson Date: Fri, 15 Feb 2002 02:24:36 +0000 Subject: [PATCH] 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 --- .../src/org/apache/poi/contrib/poibrowser/POIBrowser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java b/src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java index 5e78703923..1eb18783cc 100644 --- a/src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java +++ b/src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java @@ -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,