On Jun 13, 2:44 am, 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", Perhaps, the writer meant "listener registration". > 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 am not sure about the exact cause of the error. However, I suspect, the EventSource is ill-defined. > > 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 -~----------~----~----~----~------~----~------~--~---
