🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

JButtonActionPerformed Listener

#10813
From: Musa S Marasi
Date: Thu, 05 Aug 1999 00:00
16 lines
1181 bytes
Hi, this is my situation.
I am trying to create a list of 96 buttons.
I have a Jlistpane upon which is a Jpanel.  Now, instead of creating and
putting on the Jpanel the 96 JButtons I am doing this in the Jbinit
using a forloop, thus they will be created as the program runs.
My question is if it is possible to add ActionPerformedListeners to all
of theseJButtons the same way.  So far I have not been able to
dynamiclly create them as such and the alternate method seems extremely
long, timeconsuming as well as redundant.

Any help in this regard will be greatly Appreciated.
Shabber Abbas
Code Technology

shabber@codetech.com
www.codetech.com
Technical Details
Message-ID: <37A98E17.BDD153BD@codetech.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,3a4068f0d32aa964,start
X-Google-Attributes: gid111d45,public
From: Musa S Marasi <musa@codetech.com>
Subject: JButtonActionPerformed Listener
Date: 1999/08/05
Message-ID: <37A98E17.BDD153BD@codetech.com>
X-Deja-AN: 509168687
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