[brailleblaster] Re: How do I get this notifyListeners addListener to work

  • From: Richard Baldwin <baldwin@xxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Thu, 16 Jun 2011 09:50:29 -0500

See http://www.dickbaldwin.com/java/Java080.htm and the next three or four
lessons following lesson 80 at http://www.dickbaldwin.com/tocmed.htm for
more information on the Java source-listener event model.

Dick Baldwin

On Thu, Jun 16, 2011 at 9:27 AM, Susan Jolly <easjolly@xxxxxxxxxxxxx> wrote:

> There are two actors involved in listening: the listener and the what I'll
> call the broadcaster. GUI components have built-in logic to broadcast
> certain events in response to certain user actions.  MenuItems, for example,
> have logic to broadcast the event that they've been selected. Other GUI
> components have logic to broadcast other types of events.
>
> When an object registers itself as a listener for an event it does this by
> asking an appropriate GUI component to add it as a one of its listeners for
> a specific type of event.  This only works if that GUI was already set up to
> broadcast that event.  A GUI's API will tell you what events it is designed
> broadcast.
>
> HTH,
> Susan
>
>


-- 
Richard G. Baldwin (Dick Baldwin)
Home of Baldwin's on-line Java Tutorials
http://www.DickBaldwin.com

Professor of Computer Information Technology
Austin Community College
(512) 223-4758
mailto:Baldwin@xxxxxxxxxxxxxxx
http://www.austincc.edu/baldwin/

Other related posts: