Java Architecture - Question about ActionListener Conventions
问题 I am making a user interface which shows graphs and manipulates graphs. The class extends JFrame implements ActionListener. The ActionListener then calls different classes to manipulate graphs depending on the action. This worked while the class had few ActionListeners; however, now the class is becoming unmanageable. I know that in the interest of encapsulation, it would be best to have the ActionListener within the user interface class because it needs to access non-static components of the