• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

connection dialog and MVC

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic