Welcome to the JavaRanch, Jason. We don't ask much of our participants, just that they be nice and that their displayed names consist of a first and last name and not be obviously fake. Please adjust your displayed name to meet the
JavaRanch Naming Policy. You can do that
here.
As for your question, I think it is a little on the vague side. We're all volunteers here and tend to take the most interesting questions first. The vague and tedious questions tend to get ignored.
I take it you are having trouble telling which button is causing an ActionEvent to occur?
You should take a look at the
Java Tutorial: Writing a GUI with Swing: Writing Event Listeners. There's plenty of examples there. If you are working with any of the subclasses of EventObject (ActionEvent, MenuEvent, etc.), you can find out what object triggered the event with the getSource() method. Of course, doing the cast back to a useful class and narrowing down which instance is which is tedious. I prefer using the setActionCommand() of java.awt.Button/javax.swing.JButton and getActionCommand() of java.awt.event.ActionEvent to differentate the event directly, rather than the source indirectly. Another popular method to differentiate user actions is to use an
anonymous class to invoke a seperate method for each button's ActionEvent.