Article View: borland.public.jbuilder.java.language
Article #14426Re: How to call a component by name?
From: Johan Forsberg
Date: Wed, 08 Sep 1999 00:00
Date: Wed, 08 Sep 1999 00:00
12 lines
931 bytes
931 bytes
Bombi <abonetti@yahoo.com> skrev i
diskussionsgruppsmeddelandet:7r3sre$st7@forums.borland.com...
> Hi there,
>
> I've an application with a JPanel. How can I use my JPanel calling it by
> name ?
>
> Something like JPanel1 jPanel = createComponent("JPanel1") instead of
> new JPanel1() ?
JPanel1 jPanel=Class.forName("my.package.JPanel1").newInstance();
Technical Details
Message-ID:
<7r525b$8nj7@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7r3sre$st7@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,43efad4802ffae21 X-Google-Attributes: gidf74b3,public From: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> Subject: Re: How to call a component by name? Date: 1999/09/08 Message-ID: <7r525b$8nj7@forums.borland.com> X-Deja-AN: 522436422 References: <7r3sre$st7@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language