Article View: borland.public.jbuilder.java.swing
Article #8236Disabling event listener
From: Thomas G�lden
Date: Thu, 05 Oct 2000 00:00
Date: Thu, 05 Oct 2000 00:00
15 lines
1216 bytes
1216 bytes
Temporarily, I want to disable an event, say itemStateChanged event of a JCombobox. How can I do that when using inner classes for the event listeners ? (Something like addItemListener / removeItemListener). Would this work with anonymous classes, since the add... remove... method need a listener object as an argument. Presently, I use a private boolean attribute of the dialog to control that, however, I would prefer a rather direct method on the object in question. Thanks in advance for help Thomas G�lden Thomas.Guelden@gla.bayern.de
Technical Details
Message-ID:
<8ri93g$pcb$1@isp-m-srv06.izb.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111d45,937d33f5635f5868,start X-Google-Attributes: gid111d45,public From: "Thomas G�lden" <Thomas.Guelden@gla.bayern.de> Subject: Disabling event listener Date: 2000/10/05 Message-ID: <8ri93g$pcb$1@isp-m-srv06.izb.net> X-Deja-AN: 677926997 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@izb.net X-Trace: isp-m-srv06.izb.net 970762160 25995 212.34.74.66 (5 Oct 2000 16:09:20 GMT) Organization: IZB - Internet News Service X-MSMail-Priority: Normal NNTP-Posting-Date: 5 Oct 2000 16:09:20 GMT Newsgroups: borland.public.jbuilder.java.swing