Create a custom event in Java
I want to do something like this in Java but I don’t know the way: When event “object 1 say ‘hello’” happens, then object 2 responds to that event by saying “hello”. Can somebody give me a hint or sample code? 6 Answers 6