• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to implement overall Swing app flow?

 
Jeff Zohrab
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have a question about general application control.

I'm building a very simple MVC Swing thick-client app for my own enlightenment -- relatively new to Java, working through the trails.

A bit of background: I have a very strong MS Access background (please don't hold it against me). Oversimplifying the story, Access practically forces the developer to adopt a particular development style ... forms directly bound to database tables. I'm interested in using MVC, since the model is quite complicated, and while I can get Access to do this, I'd like to try Java as a proof-of-concept, since I can then do all sorts of neat stuff (e.g., re-use some/most/all of the model code when upgrading to the inevitable web app, using Fitnesse to create nice user acceptance tests for the client, and other things).

The question: when building an MVC Swing app, what controls the whole application? In the Swing tutorial trails, each "Swing app" (GUI only) has a main() method, but I'm not sure what to do for a real app. Should main() create some central ApplicationManager, which creates the model, then some kind of controller (so GUIs can update the model)? Or should main() create some kind of form, and the application flow is handled by the form-to-form direct calls (this is the Access way)?

I hope this question makes sense -- if not, I'll do my best to clarify. Any help (or sample code!) would be appreciated.

Jeff
 
jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi :

Ive dealt with this issue and can definetly help...Do you have multiple Guis you are coordinating ? Or just one.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!