I believe u should call addMyOwnEventListener, addMyOwnEventListener (MyOwnListenerImpl listener) more precisely, cause that's where from your problems occure, you are calling two methods without providing parametters when you actually declared them with parametters. For example, if you have a method signature like: "void meth(int n)" you need to call it like something like that "meth(5);", u can not call it like "meth();"
On Jun 12, 9:44 pm, Laythe <[email protected]> wrote: > Hello EveryOne :) > > I finished doing the MyOwnEventExample Homework but it seems i have > some problems. > > The homework says: > Write MyOwnEventExample.java in which event registration and event > triggering is performed. > > - I dont understand the first part "event registration is performed", > is that mean i should call the addMyOwnEventListener() Method and if > it is i did but i get an Error : > addMyOwnEventListener(MyOwnEventListenerInterface) in MyOwnEventSource > cannot be applied to (). > the line of code i writed : s1.addMyOwnEventListener(); > > - My Other problem is than when i call the TriggerSomethingEvent() > Method i get this Error: > TriggerSomethingEvent(java.util.Date) in MyOwnEventSource cannot be > applied to () > > the line of code i writed : S1.TriggerSomethingEvent(); > > I know i can't use a String as parameter of the TriggerSomethingEvent > () Method becouse the event is TriggerSomethingEvent() firing is > supported from java.util.Date not supported from java.util.String is > that right? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
