Define Event Source In Java