I know, several questions have been asked about this topic. However, I didn't find an adequate answer.
Here is my current design (excuse this ugly pic):
[Movie repository]----|
| [Cinema] --- [Controller] --- [View]
[Room repository]-----|
Now I want to display and modify some of the data in a JTable with additional buttons for e.g. creating new movies,....
Is it okay, to create in the view a tableModle for the table or are there more elegant solutions for this?
I feels somehow wrong: For example, in the view I load all movies from the Cinema object. Then I modify the object in the view (in the table) and push it to the controller who calls a method in the cinema which calls the update method of the repositoy and then I load the whole data again. Is such a way "correct"? This way, the view modifies the data (within the table) and so the modification needs not to be delegated to the model..
Please, excuse me - I am a noob....