Swing uses a modified version of Model View Controller design pattern. Model, view and controller layers are separated by MVC design pattern. Swing MVC Architecture
• Component (JTable, JTree, and JList): These components coordinate.
• Model (TableModel): charged with storing the data.
• UIDelegate: It is responsible for getting the data from model and rendering it to screen.
Swing provides a very flexible widget, it is the JTable. Using the JTable component, you can display tabular data in form of columns and rows, plus allowing the user to edit and save the data if needed. Why need to use a model
The Java Swing architecture separates the view and the model of a UI component. The view is how the component is drawn on the screen and gets changed if the user interacts with the component. The model is how data is structured and organized. The
Updated 12-09-2011 at 04:35 PM by Java Swing