Java and GUI - Where do ActionListeners belong according to MVC pattern?
问题 I\'m currently writing a template Java application and somehow, I\'m not sure about where the ActionListeners belong if I wanted to cleanly follow the MVC pattern. The example is Swing based, but it\'s not about the framework but rather the basic concept of MVC in Java, using any framework to create GUI. I started with an absolutely simple application containing a JFrame and a JButton (to dispose the frame hence close the application). The code trailing this post. Nothing really special, just