🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #10074

JTree.DynamicUtilTreeNode question

#10074
From: Jeff Marendo
Date: Mon, 15 Nov 1999 00:00
22 lines
1571 bytes
I'm curious to know if I need to do anything special about choosing the
correct import statements when using aJTree object that has
JTree.DynamicUtilTreeNodes instantiated as its children.  The reason I ask
is that I have a java file that contains all of the information necessary
for making a particular tree.  My applet file has code that instantiates my
tree in question.

The thing is, in my tree.java file, all of my references to
JTree.DynamicUtilTreeNode are being shown in red, which leads me to believe
there is something illegal going on; but, my applet runs (so far) like it
should.  I have these import statements in my tree.java file and my
applet.java file:

import javax.swing.tree.*; // For the DefaultMutableTreeNode class
import javax.swing.JTree.*; // For the DynamicUtilTreeNode class
import java.util.Vector;

I also noticed in the docs that the JTree.DynamicUtilTreeNode class has
JTree as its 'Enclosing Class'.  Does this have anything to do with what I'm
seeing?  Thanks in advance.

Jeff
Technical Details
Message-ID: <80ppuh$6em9@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,42f5b1702a95a220,start
X-Google-Attributes: gid111d45,public
From: "Jeff Marendo" <marendoj@commos.com>
Subject: JTree.DynamicUtilTreeNode question
Date: 1999/11/15
Message-ID: <80ppuh$6em9@forums.borland.com>
X-Deja-AN: 548971886
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Organization: CommTech Corporation
X-MSMail-Priority: Normal
Reply-To: "Jeff Marendo" <marendoj@commos.com>
Newsgroups: borland.public.jbuilder.java.swing