How to apply MVC with multiple Windows / Dialogs

I want to develop an application using MVC. The application will have several windows and dialogs (> 30 Windows / Dialogs). Now the question is: how do I apply MVC in such an application?

MVC-Tutorials usually have only one window, one controller and one model.

Can I use one View package with all views in it, one Controller package with all controllers and one model package with all models?

Or would I use one package for each window / dialog and implement many small MVCs?

And the last question: Is MVC right for use with multiple Windows / Dialogs, or would it be a better solution? It may depend on what the application and each window / dialog does, but if there is a common thing to consider, it would be nice to know :)

Edit: Sorry, I forgot, didn't think it was important. Question about Java / Swing. But you might want to switch later to what comes to mind. Is it important to use Swing, SWT, GWT?

+5
source share
1 answer

, , , .., . , . , .., , , . .

,

com.car.door
    controller.DoorController
    entity.DoorEntity
    view.DoorView

com.car.wheel
    controller.WheelController
    entity.WheelEntity
    view.WheelView

com.car.driver
    controller.DriverController
    entity.DriverEntity
    view.DriverView

com.car.road
    controller.RoadController
    entity.RoadEntity
    view.RoadView

, , , ,

com.car.controller
    controller.DoorController
    controller.WheelController
    controller.DriverController
    controller.RoadController

com.car.entity
    entity.DoorEntity
    entity.WheelEntity
    entity.DriverEntity
    entity.RoadEntity

com.car.view
    view.DoorView
    view.DriverView
    view.WheelView
    view.RoadView
+5

All Articles