🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Naming DefaultMutableTreeNodes Using Data From Database

#11164
From: Tad Frysinger
Date: Sat, 03 Jul 1999 00:00
14 lines
1112 bytes
I don't think you can dynamically name variables in Java, and even if you 
could, what good is doing so?  How would you reference them in other 
parts of your app (where, presumably, you had to know ahead of time what 
the variable name was).

We do data-driven programming a fair bit, and what we do is rely on some 
tag/moniker within the object itself for us to know what it is we're 
dealing with (or more often: cast it to an interface because what mattes 
is behavior and content, not the variable name).

Why don't you post what you are trying to do with these variables and 
lets go from there.

Tad Frysinger (TeamB)
Technical Details
Message-ID: <MPG.11e806e98478bead989a38@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <377CD748.82A7654B@codetech.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,9eac39eb5058f6bb
X-Google-Attributes: gid111d45,public
From: tfrysinger@earthlink.net (Tad Frysinger)
Subject: Re: Naming DefaultMutableTreeNodes Using Data From Database
Date: 1999/07/03
Message-ID: <MPG.11e806e98478bead989a38@forums.borland.com>
X-Deja-AN: 496833606
References: <377CD748.82A7654B@codetech.com>
Organization: Freezone Enterprises
Newsgroups: borland.public.jbuilder.java.swing