if in Java EE we can use Spring or Struts, how about Java SE ??
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35252
7
posted
0
Welcome to JavaRanch.
MVC is a GUI concept; if you don't mean web apps, are you asking about Swing GUIs? Swing has the M-V-C separation to some degree built in. For example, if a JTable is a view, then its TableModel and TableComunModel constitute the model, and your event handlers -either attached to the JTable or some other Swing component- would be the controller.
MVC is a GUI concept; if you don't mean web apps, are you asking about Swing GUIs? Swing has the M-V-C separation to some degree built in. For example, if a JTable is a view, then its TableModel and TableComunModel constitute the model, and your event handlers -either attached to the JTable or some other Swing component- would be the controller.
Can you suggest me about book or web tutorial with an example application for creating CRUD application. So I can understand this concept ???
Griffon is inspired by Grails framework (which it is built upon MVC concept), you may want to check it.
Kevin Spaeth
Greenhorn
Joined: Dec 13, 2010
Posts: 1
posted
0
I came across this thread when researching MVC within Swing applications. It seems to me like my Java SE projects didn't have the level of organization that I was getting with Java EE frameworks. As Ulf mentioned, Swing contains elements of MVC within it, but that doesn't help you organize your projects at a macro level.
To help with this, I created a small framework called Biscotti. I wrote a article about MVC/MVP and Biscotti which will help organize Java SE projects.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.