summaryrefslogtreecommitdiffstats
path: root/src/contrib
diff options
context:
space:
mode:
authorMark Johnson <mjohnson@apache.org>2002-02-15 02:24:36 +0000
committerMark Johnson <mjohnson@apache.org>2002-02-15 02:24:36 +0000
commit345bb2bfbc33484828fc2f289a73579dc23d62c1 (patch)
tree5477088eab07a53fc4e8fc39a939b6de9ed9cd4a /src/contrib
parenta836e5e135e1977dfc0574acc0e692eb77fe8220 (diff)
downloadpoi-345bb2bfbc33484828fc2f289a73579dc23d62c1.tar.gz
poi-345bb2bfbc33484828fc2f289a73579dc23d62c1.zip
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
Diffstat (limited to 'src/contrib')
-rw-r--r--src/contrib/src/org/apache/poi/contrib/poibrowser/POIBrowser.java4
1 files 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,