title: How to integrate a JMenuBar in an MVC architecture in Java?
body: <p>I'm using this tutorial to build an application using the MVC architecture : <a href="http://www.oracle.com/technetwork/articles/javase/index-142890.html" rel="noreferrer">http://www.oracle.com/technetwork/articles/javase/index-142890.html</a>. But I'm not sure how or where should I put the code to build and add actionListener of a JMenuBar inside of it. </p>
  
  <p>Furthermore, the book Object-Oriented Design &amp; Patterns by Cay Horstmann say "<em>The controller may process mouse and keyboard events from the windowing system, or it may contain user interface elements such as buttons and menus.</em>" Should I follow this advice, if yes, how should I implement it ? How to add it to the JFrame that is in my Main class ?</p>