🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java
Article #580

Re: Rename an object?

#580
From: Sebastian Breier
Date: Fri, 24 Mar 2000 00:00
23 lines
1932 bytes
Use a Hashtable. A Hashtable object saves relations between objects.
So, you can, for example, set a string object for every object you
want to rename.

On Fri, 24 Mar 2000 13:01:03 -0000, "Scott Saunders"
<scott@saunders179.freeserve.co.uk> wrote:

>Can anyone please tell me how to take an object and give it a name using a
>string? For example, I have an object of type relation (my own class) called
>"rel1", and I want to give it a name like "My relation" so that I can
>display this name in a JList instead of the actual object's name ("rel1").
>
>If anyone can help I'd appreciate it. Someone suggested using forname in the
>java.lang.class package, but I didn't understand it. I don't know if it is
>what I needed anyway. Please could you reply to sc0tt@talk21.com.
>
>Thanks,
>Scott
>

___________________________________________________________________
If a train station is where the train stops, what is a workstation?
This eMail is from Seba_B@gmx.net
Technical Details
Message-ID: <oGvbOF8lsZk9Lz8npJGTR0DDKOLG@4ax.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8bfoup$eh2$1@news8.svr.pol.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb99b,af49882d01fb7d16
X-Google-Attributes: gidfb99b,public
X-Google-Thread: 10a146,af49882d01fb7d16
X-Google-Attributes: gid10a146,public
X-Google-Thread: f5d71,af49882d01fb7d16
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 113ae9,af49882d01fb7d16
X-Google-Attributes: gid113ae9,public
From: Sebastian Breier <Seba_B@gmx.net>
Subject: Re: Rename an object?
Date: 2000/03/24
Message-ID: <oGvbOF8lsZk9Lz8npJGTR0DDKOLG@4ax.com>
X-Deja-AN: 601747847
Content-Transfer-Encoding: 7bit
References: <8bfoup$eh2$1@news8.svr.pol.co.uk>
X-Sender: 340072924274-0001@t-dialin.net
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@t-online.de
X-Trace: news01.btx.dtag.de 953904067 15021 340072924274-0001 000324 13:21:07
Organization: T-Online
Mime-Version: 1.0
Newsgroups: comp.lang.java,comp.lang.java.help,comp.lang.java.programmer,cz.comp.lang.java