Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java SE MVC Framework

 
adi sembiring
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any MVC framework in Java SEE.

if in Java EE we can use Spring or Struts, how about Java SE ??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
adi sembiring
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote: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.


Can you suggest me about book or web tutorial with an example application for creating CRUD application. So I can understand this concept ???

thanks
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Griffon is inspired by Grails framework (which it is built upon MVC concept), you may want to check it.
 
Kevin Spaeth
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic