title: Multiple JPanel or JFrame with MVC
body: <p>I have read a number of articles/explanations on implementing MVC (Model View Controller) design pattern with Java such as:</p>
  
  <p><a href="http://www.leepoint.net/GUI/structure/40mvc.html" rel="nofollow noreferrer">http://www.leepoint.net/GUI/structure/40mvc.html</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3066590/gui-not-working-after-rewriting-to-mvc/3072979#3072979">GUI not working after rewriting to MVC</a></p>
  
  <p>and have visited several few more (including those in SO). </p>
  
  <p>I am clear on what was explained in those links. However how should we implement a MVC when we have several JPanels/JFrames? So let say I want to implement a program which may display several JFrames at the same time.</p>
  
  <p><strong>Question</strong>: Should we try to only have 3 classes (Model, View, Controller) despite having multiple JFrames or should we have a separate View class for each JFrame?</p>
  
  <p>I am aware that we could use the observer pattern to let various Frames communicate.</p>
  
  <hr>
  
  <p>As for this link from SO, there is only 1 solution which does not address my question above: <a href="https://stackoverflow.com/questions/18465358/java-mvc-multiple-jframe">Java MVC multiple JFrame</a></p>
  
  <p>I am also aware of <a href="https://stackoverflow.com/questions/9554636/the-use-of-multiple-jframes-good-bad-practice">The Use of Multiple JFrames: Good or Bad Practice?</a>. But let's assume I will be having multiple JFrames which may display at the same time. I am more concern how would it be implemented with MVC.</p>