Article View: borland.public.jbuilder.java.language
Article #16230propertyChangeListener
From: Leo Cohen
Date: Sat, 20 Mar 1999 00:00
Date: Sat, 20 Mar 1999 00:00
16 lines
1297 bytes
1297 bytes
I am using JTrees, plural, and they all have a common data model. When the user creates a new tree, the model changes and the changes appear in all trees currently on screen. I want to cancel this behvior so that other trees on screen are not changed when the model changes under them. Since JComponent has the addPropertyChangeListener method, I assume that it is executed somewhere in the constructor execution for a new JTree. It follows that if I then execute the removePropertyChangeListener method, I should achieve my objective. Here's the problem: removePropertyChangeListener(PropertyChangeListener pcl) needs the PropertyChangeListener that was sent to addPropertyChangeListener(PropertyChangeListener pcl) originally. The question is, how do I get pcl?
Technical Details
Message-ID:
<36F42529.6D1762AC@cs.virginia.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,149219849860e47f,start X-Google-Attributes: gidf74b3,public From: Leo Cohen <lcohen@cs.virginia.edu> Subject: propertyChangeListener Date: 1999/03/20 Message-ID: <36F42529.6D1762AC@cs.virginia.edu> X-Deja-AN: 457026625 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language