Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1088

Re: Listeners Firing In t

From "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this>
Subject Re: Listeners Firing In t
Message-ID <esa8sf$kvv$1@registered.motzarella.org> (permalink)
Newsgroups comp.lang.java.gui
References <1172859692.554224.105910@t69g2000cwt.googlegroups.com>
Date 2011-04-27 15:31 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Jason Cavett wrote:
> As far as I know, listeners fire in the order that they're added to an
> object.

No. Apart from that you're talking about different types of listeners.

> When I set the tree's cell editor, the constructor of my
> cell editor sets itself as its own listener.

Why?

> 
> 3. I then have the tree's model items add themselves as
> TreeModelListeners of the tree (they implement the TreeModelListener
> interface).  This way they can react to changes made directly to the
> tree.

Without knowing the details: wrong way. Let the TreeModel update it's items.

Bye
Michael

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Listeners Firing In the W "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: Listeners Firing In t "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000
  Re: Listeners Firing In t "Daniel Pitts" <daniel.pitts@THRWHITE.remove-dii-this> - 2011-04-27 15:31 +0000

csiph-web