posted 13 years ago
Currently I am using the switchboard methodology. Everything is working but I think I will try your (pete's) "1 listener per action type".
Pete, just so I am clear, this methodology involves 1 implementation of ActionListener [and thus 1 ActionPerformed()] for each kind of action type, correct? That is, to use your calculator example in the link you added, you would have 2 implementations of ActionListener: 1 for numbers and 1 for operation buttons (+, -, *, /)?
How would I register the correct listener implementation (ButtonListener or OperationListener) to each button in the calculator?
Thanks again!