MVC stands for Model View Controller architecture. Swing “J” components (e.g. JTable, JList, JTree etc) use a modified version of MVC. MVC separates a model (or data source) from a presentation and the logic that manages it.
Component (e.g. JTable, JTree, and JList): coordinates actions of model and the UI delegate. Each generic component class handles its own individual view-and-controller responsibilities.
Model (e.g. TableModel): charged with storing the data.
UIDelegate: responsible for getting the data from model and rendering it to screen. It delegates any look-andfeel aspect of the component to the UI Manager.
No comments:
Post a Comment