• Post Reply Bookmark Topic Watch Topic
  • New Topic

connection dialog and MVC

 
Chiji Nwankwo
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have read a couple of interesting posts on this forum regarding how different people have used MVC and have found them very helpful and insightful, giving me a very clear view of the bigger picture.
I have 3 sets of windows (2 dialogs and a frame) on the client side of the application.
The first dialog is used to select the connection type before the main window is opened. When the confirm button is clicked in the main window, I display another dialog, which contains a summary of the flight details selected by the user. At this point the user will be given the choice to either 'book' or 'cancel' a booking.
How do I map this construct into MVC? At the moment the 3 parts that make up my GUI are all seperate classes.
Please advise and let me know whether I'm completely off track.
Thanks,
Chiji
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you could have three controllers, or one controller. I would prefer one controller.
Or for the first dialog have the main application be the controller for it, and then a seperate controller for the other two.
Mark
 
get schwifty. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!