Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2006

Tip: Looking for answers? Try searching our database.

MVC Framework for Swing?

Thread view: 
Griffith Jones - 13 Jun 2006 15:18 GMT
Hello:

I'm looking for an MVC  framework for Swing apps.   I'm thinking of
something similar to Struts, but for desktop apps.  I keep on writing
controllers for each Swing app I develope,  and I can't believe there's not
a framework out there to expedite this.

Has anybody invented this yet?

Thanks


Thomas Weidenfeller - 13 Jun 2006 16:13 GMT
> I'm looking for an MVC  framework for Swing apps.

Swing, like many current GUI systems uses a variant of MVC. It typically
pays of to use that variant, instead of trying to beat Swing into
submission to get MVC.

> I keep on writing
> controllers for each Swing app I develope,

That's surprising, since much of what a Smalltalk-like controller is
supposed to do is handled internally by Swing.

Or maybe you are using a different definition of controller. There are
many, especially, because the Smalltalk people never bothered to
precisely define what their controller is (they just point to the
implementation in Smalltalk as the definition). Similar for MVC as such.
MVC is what is implemented in Smalltalk (of course there are different
variants in Smalltalk already ...).

> a framework out there to expedite this.

There are Swing application frameworks out there. Are you sure this is
really what you want? There are also Swing "beautification" libraries
and frameworks out there. Is this what you want?

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Griffith Jones - 13 Jun 2006 18:43 GMT
Thomas:

Thanks for the feedback.

I'm looking for Swing app frameworks, if you know of any ...

Griff Jones

>> I'm looking for an MVC  framework for Swing apps.
>
[quoted text clipped - 21 lines]
>
> /Thomas
Thomas Weidenfeller - 14 Jun 2006 08:48 GMT
> I'm looking for Swing app frameworks, if you know of any ...

I haven't followed java app framework development closely. So some of
the stuff in the list below no longer exist or is not suited. Anyhow,
you might want to have a look at JLense, Kanabos, Pustefix, Merlin,
Jaffa, Pulpitum, JGoodies,  JUICe, or Atris Framework. Oh, and both
Netbeans and Eclipse (the IDEs) do have some RCP (rich client platform).
The NetBeans Rich Client Platform and the Eclipse Rich Client Platform
respectively.

Sun is also going to standardize an app framework in JSR 296, related to
http://wiki.java.net/bin/view/Javadesktop/SwingLabs. But that will take
some time, and it will be a committee compromise.

There is also stuff like SwiXML or XUI for the XML-everywhere fanboys.

/Thomas
Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/

Griffith Jones - 14 Jun 2006 16:08 GMT
Thanks Thomas, that's a big help ...

Griff Jones

>> I'm looking for Swing app frameworks, if you know of any ...
>
[quoted text clipped - 12 lines]
>
> /Thomas
Karsten Lentzsch - 13 Jun 2006 20:08 GMT
> I'm looking for an MVC  framework for Swing apps.   I'm thinking of
> something similar to Struts, but for desktop apps.  I keep on writing
> controllers for each Swing app I develope,  and I can't believe there's not
> a framework out there to expedite this.

I suggest you check out the MVP and "Presentation Model"
patterns. Just google "Organizing Presentation Logic",
and you'll get a reference to a narrative by Martin Fowler
where he motivates MVP and Presentation Model.

I've found that a good understanding of these patterns
helps every project, where in contrast other techniques
like automatic databinding can increase or decrease your
productivity.

Once you're familiar with these patterns, you may choose
a helper library or framework that follows one of these
approaches.

I provide presentation about desktop patterns and
data binding at http://www.jgoodies.com/articles/
and a free open source helper library for working
with the Presentation Model pattern in Swing:
the JGoodies Binding. But as said in the slides,
automatic data binding is a wild horse that may
be difficult to ride on.

-Karsten
Griffith Jones - 13 Jun 2006 21:18 GMT
Much thanks for the references, Karsten.  Ditto the excellent tool library
...

Griff Jones

>> I'm looking for an MVC  framework for Swing apps.   I'm thinking of
>> something similar to Struts, but for desktop apps.  I keep on writing
[quoted text clipped - 24 lines]
>
> -Karsten


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.