Article View: borland.public.jbuilder.java.swing
Article #1776Jpanel and Components
From: lredmond
Date: Sun, 20 Jul 2003 20:53
Date: Sun, 20 Jul 2003 20:53
6 lines
1320 bytes
1320 bytes
I have a panel with serveral buttons and labels. When a particular event occurs I need to set the caption on each button, i used jpanel .getComponents() to retrieve a list of all the components on the panel. How can I check for a particular component... Component[] comp = panel.getComponents();
Technical Details
Message-ID:
<3f1b0167$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!green.readfreenews.net!news.readfreenews.net!cox.net!news-xfer.cox.net!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,a1a3f8c21ef03b96,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-07-20 13:56:59 PST From: "lredmond" <lredmond@nyc.rr.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Jpanel and Components Date: Sun, 20 Jul 2003 16:53:51 -0400 Lines: 8 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 24.29.121.55 Message-ID: <3f1b0167$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058734439 24.29.121.55 (20 Jul 2003 13:53:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!green.readfreenews.net!news.readfreenews.net!cox.net!news-xfer.cox.net!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail