From book Java� 2 Developer Exam Cram� 2 (Exam CX-310-252A and CX-310-027)
it states this:
The following describes how the MVC pattern was used in this application:
* Model--SuperBowlTableModel, which extends AbstractTableModel.
* View--Swing GUI, including menus, buttons, combo boxes, and a JTable.
* Controller--Event methods and JTable-triggered code.
The JTable is set up to allow only row selection. Cell editing is forbidden to avoid confusion. Tool tips and a status bar keep the user informed.
To my understanding, JTable has already used MVC pattern and I wonder if I just create a class which extends AbstractTableModel, and combine View and Controller in a single class, is this still an acceptable "framework" ?
From thread:Confused with MVC
,Eugene Kononov gave an example how to implement MVC. Following his aproach, I found it more cumbersome than I was expecting.
For example, View has to expose every parameters Controller needs , which doesn't seem so elegant, like this:
and I need to think about how to deal with exceptions in Controller and show messages in View.
If follow the Java� 2 Developer Exam Cram� 2's instructions and example is enough to pass the exam, I would like to choose a simple way.
Your advices highly needed.