I am currently replacing my anonymous ActionListeners
new ActionListener() {
@Override
public void actionPerformed(final ActionEvent event) {
// ...
}
}
with class files representing actions:
public class xxxxxxxAction extends AbstractAction {
}
However, my GUI is able to perform a lot of actions (eg. CreatePersonAction, RenamePersonAction, DeletePersonAction, SwapPeopleAction, etc.).
Is there a good way to organize these classes into some coherent structure?