title: How to deal with events in Java MVC
body: <p>I'm creating my first "bigger" application in Java. As MVC is only pattern I know, I decided to use it. But there's something wrong with this concept.</p>
  
  <p>For example. I need an <code>Action</code> (or generally event) fired from 2 places (from <code>Button</code> in frame and <code>MenuItem</code>). It has to do changes in at least 2 places and in the model.</p>
  
  <p>I've got some ideas, but they seem wrong:</p>
  
  <ol>
  <li>Pass the controller object to every view element, so newly created actions could use controller's methods to modify rest of the application.</li>
  <li>Make controller static (for same reasons)</li>
  <li>Make controller only model listener</li>
  </ol>
  
  <p>Please tell me how to build it. Or give me some links to some easy to analyse applications.</p>
  
  <p>Source of my project is here, if anyone wants to have a look: <a href="https://github.com/Arrvi/ColorExtractor" rel="nofollow">https://github.com/Arrvi/ColorExtractor</a></p>