0

I am creating an app in Java and I am using the MVC architecture. I have the Model, View and Controller classes, and I have also another classes that help me with data. For example, I have the next classes: Product, Store, Manager. How can I use the data in the Model class, I tried to copy paste my Classes and my code from main file, but all I have are errors.

enter image description here

In the second image I have the problems, the Model class. I really do not know what to do to make it work.

enter image description here

Cornel
  • 23
  • 6
  • 1
    Create valid `Product`, `Store`, and `Manager` classes. Create an additional `Region` model class that holds a `java.util.List` of `Store` instances. Each `Store` instance would contain a `List` of `Manager` instances. Each `Store` instance would contain a `List` of `Product` instances. You can have multiple controller classes in a Java Swing project. Each `ActionListener` modifies its part of the model and repaints its part of the view. – Gilbert Le Blanc Dec 29 '22 at 21:28

0 Answers0