Version 3 (modified by 2 years ago) ( diff ) | ,
---|
MVC
Model View Controller, or MVC in short, is a software design pattern used to develop GUIs.
The details of the approach are explained well on the MVC wiki page. In short,
- A model contains the data that the user is adjusting.
- A view shows the data in a GUI to the user (eg, graph, text field, slider position)
- A controller allows the user to change the data (eg dragging sliders, entering text or numbers, clicking check boxes)
A view and controller can, and often are, merged into a single component. For example a slider shows the current value, but the user can also drag the slider; or a checkbox shows the current setting (on or off) while the user can simply click on it to toggle the value.
Why a toolbox?
This toolbox is to help users develop an MVC based GUI. The tools built into Java lack some functionality: while Java provides a ListModel and a TableModel, it lacks other models such as a StringModel.