🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16388

getting referance to a component

#16388
From: Kiran Deshpande
Date: Thu, 25 Feb 1999 00:00
17 lines
1336 bytes
Hi,
    I wanted to find out if and how to get a referance to a text field
in a Frame/dialog if I have the name of the field as a String. Here is
what I want to do:
    In my application I want to disable or enable a field depending on
the group a user belongs to.  So, if I had all the fields and the
permissions for them in the database and retrieve it.  Now I want to get
a referance to the component (lets say a text field) defined in my frame
or dialog which is declared with the same name as the field name in the
database.  I dont want to hard code this into my program and want to
make it generic so that I send in the name of the field (as string) and
set the enabled property of the component.
    Is there a way to do it?  Or do I have to go by hard coding this
functionality.

Thanks & Regards
Kiran
Technical Details
Message-ID: <36D598A8.EA158C7A@incentric.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: f74b3,5d6bb407908f3a97,start
X-Google-Attributes: gidf74b3,public
From: Kiran Deshpande <kdeshpande@incentric.com>
Subject: getting referance to a component
Date: 1999/02/25
Message-ID: <36D598A8.EA158C7A@incentric.com>
X-Deja-AN: 448405122
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language