🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JComboBox and ActionListener

#11275
From: Omer Azhar Qureshi
Date: Thu, 24 Jun 1999 00:00
16 lines
1300 bytes
Peter,
i had the same problem.... even the "itemStateChanged" event is fired twice
& when ever the selected item of the comboBox is changed whic was not
requied at all in my case as i had to get data from the servlet on the
itemChange which was done in a thread.... so subsequiently the thread was
called twice & the servlet as well which took a long time to trak down &
work around... ive search sun's site for such a bug report but there dosent
seem to be any....
ive not been able to restrict it from beeing called twice but i kinda fool
it the second time using an instance variable (boolean) & let it go on
alternate calls, but this is not a solution.... do post any solution that u
come up with....

hope this helps
regards
Oaq
Technical Details
Message-ID: <7ksvat$c3111@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3770C13D.D349D879@terren.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,7f6f7d3b5376db9d
X-Google-Attributes: gid111d45,public
From: "Omer Azhar Qureshi" <oaq@systemsltd.com.pk>
Subject: Re: JComboBox and ActionListener
Date: 1999/06/24
Message-ID: <7ksvat$c3111@forums.borland.com>
X-Deja-AN: 493302896
References: <3770C13D.D349D879@terren.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.swing