Article View: borland.public.jbuilder.java.language
Article #16767using a loop to create UI components
From: Daniel R. J. Lind
Date: Tue, 19 Jan 1999 00:00
Date: Tue, 19 Jan 1999 00:00
12 lines
928 bytes
928 bytes
Hi, I want to use a loop to add panels to a JTabbedPane component. I can get it working, but my trouble is with the names of the new components. How do I create a new instance of a component with a new name each time using a loop. I could just append an integer to its name such tab1, tab2 etc, but I don't know how to set the name based a string. If someone could reply with an example code-block I would thank the gods for thee! Cheers, Daniel
Technical Details
Message-ID:
<780c5j$a819@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,8b232ad1531d97b8 X-Google-Attributes: gidf74b3,public From: "Daniel R. J. Lind" <daniel@synopsys.co.nz> Subject: using a loop to create UI components Date: 1999/01/19 Message-ID: <780c5j$a819@forums.borland.com> X-Deja-AN: 434172233 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.language