I am guessing the problem has to do with FlipListener? First, you do not need to add the listener again (the for loop in the listener). You can retrieve the source of the event using the ActionEvent...