Event oriented Java