Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dialog box  RSS feed

 
William Smith II
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just have a quick question regarding MVC and dialog boxes.

In a well designed MVC setup, is it better to (1) have a dialog box setup as an entirely seperate entity? Or do you (2) have it closely coupled to your main window? Specifically the controller implementing *all* action listeners for the application.

I am doing the SCJD. Currently I am doing #2 and have my action listener classes (for a JDialog) defined as inners in my controllers (of the main window).

But I'm thinking that #1 might be better, to have the JDialogs defined as entirely seperate entities, and only know about the main windows view and model.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!