How do I use an event to return true in an if condition in Java

I am new to Java and I am making an app where I need to have multiple containers do the same kind of thing. What I plan to do is use the event objects to find out which one was selected and then call the same function. I don’t have any code at the moment.
How would I use the event object to do so? Or is there a better way?

Go to Source
Author: Dan Morrissey