There are many examples on the web when it comes to the MVC pattern with Swing. However, there doesn't seem to be a straightforward way of doing things.
Here's some questions:
- Can the notion of View be directly associated with Swing components such as JFrames?
- Likewise, can the existing model classes that Swing uses be used as the Model or should one basic model be adapted through several Swing model classes?
- If the answer to 2 is yes, should these Model classes be centralized in one class (attribute/Composite) or grouped in a package (one class per separate Model)?
- If Model classes remain separate, does this mean that there can be several MVC patterns running at the same time in a typical application?
- Is a one-on-one correspondance between a model, a view and a controller an imperative or can more than one controller/view exist for one given model?
- Finally, how could an application be structured so it's easy to maintain?
Some links: