I have a program with many buttons, all of which will be performing the same function. I was wondering if there was a way to attach a single listener to all existing JButton
Create a single instance of the ActionListner and apply it to all the buttons
You Could...
Make use if the Actions API, which will allow you to create a self contained ActionListerner, which also includes the details to configure the buttons as well.