GUI (graphic user interface graphical interface). The purpose of GUI programming is to provide interactivity and update the interface in real time based on the user's operation. User actions are unpredictable mouse and keyboard events, how do we stay synchronized and updated? On the upper level, we must consider the business logic clearly. In the code layer, how do we translate the business logic into communication between objects (possibly with network communication)?
MVC addresses these requirements. It simplifies the communication of objects by subdividing the character of the Code (model layer, control layer, display layer).
GUI programming is sometimes particularly complex. Interface usability, multi-threading, event handling consistency. A large number of dialog boxes, buttons, drop-down lists to demonstrate different functions. GUI programming is a complex system. We need to avoid confusion under a uniform constraint, which is MVC.
We will implement all functions from one of the simplest classes. To Mvc:model, view, control to achieve this function.
1. From GUI to MVC