Managing 10 buttons at once
I am trying to manage 10 buttons at once, each labeled 1 to 10. I know I could make 10 inner (or outer) classes to handle the actions, but that seems a little messy to me. If I could find out what the text is of the button that was pressed, I could run this is very little code. However, if I cannot, I need to make 10 different listeners.
What would be the cleanest, easiest, most OOP oriented way to approach this? I'm a java newbie that wants to make sure he is learning the correct way.

