you are right it is a very broad example, but it has to be...
here is an example that may help you to understand:
you are in a chat room playing tag with the others...
someone that was 'it' writes <tag Tanya>. (custom event)
your program listens for <tag> and sends you a message <Tanya you're
it> & everyone else gets, <Tany is now it>.
---so you create a custom events to notify other modules or even other
programs of the event you want notification of. it isn't something a
novice programmer will use but is worth knowing about.

On Feb 23, 1:14 pm, Tanya Dina Ruttenberg <[email protected]>
wrote:
> Hi Class,
> I haven't seen any discussion on this list about the Events homework lab.
> I understood the basic Events lab, with the ButtonHandler, but I don't 
> understand the subsequent lab where you create your own event at all.
> I'm so baffled by it that I don't even have a real question about it.
> I am trying to write the 5 classes required for the homework, but I don't 
> understand what they do exactly or how they hang together.  I have read and 
> read and read and gone over them very carefully, but I still don't get it. :-(
> Can someone just give a succinct summary of what each file is supposed to do?
> MyOwnEvent.java
> MyOwnEventExample.java
> MyOwnEventListenerImpl.java
> MyOwnEventListenerInterface.java
> MyOwnEventSource.java
> I know this is a very broad inquiry.  I'm thinking I'll just skip this lesson 
> and come back to it after I've done Interfaces and Abstract classes. Perhaps 
> that will help??
> Tanya

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to