I know that someone has already asked about an array of controls, but my question is somewhat different. I would like to know if it is possible to create an array of about 20 buttons on the screen, so that when an event takes place, the event listener just goes through the array to find out which button it came from (using IFs) and do the appropriate action. It is so cumbersome to keep repeating this over and over again without an array. Since the only difference in each button's action would be the number that it manipulates, it is wasteful to create a whole event listener for every button. In Java, all you have to do is create an array of buttons, then run loops to get them onscreen, set text, etc. If I wanted each button to have a value, I either made a corrosponding array of integers or doubles, and in the loops, it would automatically use the correct number for the button pressed (or I would create a class that included the button and its corrosponding nubmer, then put that in an array).