class NumberAction implements ActionListener { public void actionPerformed( ActioEvent ae ) { Object number = ae.getSource(); if( number instanceof Integer ) { //Tu was } else { //war wohl nicht für mich bestimmt } }}class ControllAction ...class OperationAction ...NumberAction numberAction = new NumberAction();buttonOne.addActionListener( numberAction );buttonTwo.addActionListener( numberAction );//...usw.buttonZero.addActionListener( numberAction );//...usw.buttonClear.addControlAction( controlAction )