🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Component ID

#10977
From: Song Huang
Date: Fri, 23 Jul 1999 00:00
24 lines
912 bytes
Hello

let's say, if you dynamically create some JTextFields in this way:

int i = 5;
while(i > 0)
{
    JTextField jTextField  = new JTextField();

    jPanel.add(jTextField);

    i--;
}

does JBuilder give them unique id ? how can you identify each one of
them ?
Or, you do it by adding this: jTextField.setName("hello" + i) inside the
loop ?

Any ideas ?

Thank You.

Song Huang
Technical Details
Message-ID: <37987C76.9E16E2DA@mindspring.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,57f2e796781f7956,start
X-Google-Attributes: gid111d45,public
From: Song Huang <songhuang@mindspring.com>
Subject: Component ID
Date: 1999/07/23
Message-ID: <37987C76.9E16E2DA@mindspring.com>
X-Deja-AN: 504412728
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing