About 150,000 results
Open links in new tab
  1. java - The MVC pattern and Swing - Stack Overflow

    Mar 24, 2019 · The MVC pattern is a model of how a user interface can be structured. Therefore it defines the 3 elements Model, View, Controller: Model A model is an abstraction of something …

  2. Correct Model-View-Controller pattern in Java Swing

    Nov 2, 2016 · The Swing MVC model, as I understand it does not strictly separate the View from the model, that is there is some communication between the two to avoid unnecessarily going …

  3. What is the controller in Java Swing? - Stack Overflow

    Apr 24, 2015 · While the Swing framework already implements a form of MVC (explicit models; JXyz & UI classes = controller & view), this strict separation is rarely used on application level …

  4. swing - Java and GUI - Where do ActionListeners belong …

    Oct 23, 2014 · The model / view / controller (MVC) pattern can be applied to Swing in the following way. The view reads information from the model. The view may not update the …

  5. Implementing the Controller part of MVC in Java Swing

    Nov 6, 2014 · Start by focusing on at the interface level, design interfaces which describe the expectations of each section, the model, the controller for that model, the view and the …

  6. model view controller - Java Swing Program Structure - Stack …

    Jul 2, 2010 · Swing has a relatively good setup for an MVC architecture, but really it combines the view and controller. Components in Swing can have listeners attached to them, which is the …

  7. Correctly implementing the MVC pattern in GUI development …

    2. MVP (Model View Presenter) Controller acts as a Mediator between the View and the Model. View become very thin and knows nothing about the Model and interact with Controller only. …

  8. model view controller - java swing vs mvc: is this pattern indeed ...

    Sep 13, 2010 · I understand what you are saying. But if I create a controller, model, in the case of JTree, I would have to keep info on where a result produced by an action should be placed in …

  9. swing - how to seperate view and model in java game ... - Stack …

    Why? Consider a button. It's a view, it has a model and it can act as a controller. You don't need a seperate "controller" to control the button. It can register the keyboard and mouse actions it …

  10. swing - Is ActionListener in controller for Java GUI App good idea ...

    May 4, 2014 · Model: Model should have placeholders to hold your data for your view, eg: if you have a JTable, model might contain a arraylist that will hold the data for your JTable. …