File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Is every Swing app rich? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Is every Swing app rich?" Watch "Is every Swing app rich?" New topic
Author

Is every Swing app rich?

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi again.
What makes the richness of Swing application? the UI or the functionality?
If some one showed me a couple of Swing applications, how could I recognize the rich one from the un-rich one?
Thanks.
Romain Guy
author
Ranch Hand

Joined: Sep 18, 2007
Posts: 47
Swing applications are always rich in the strict definition of the term "rich client." A rich client is simply an application that does storage and process locally. Thin clients, like web sites, do storage and/or processing remotely.

That's why we came up with "filthy rich clients" to mark the difference between rich clients: those with regular UIs and those with animated, appealing, bewildering UIs.

To find out whether a Swing app is filthy rich or not, just use this rule: Did it make me go "wow!" when I saw it?
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 433
I think the richness is compared with web applications. The Swing/SWT or other desktop apps have better performance, responsiveness and have local storage. A web app can't do this.

FRC book intrduces some technologies making your rich apps cool.


To be or not to be. It's a question.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Are platforms like Eclipse RCP or NetBeans RCP needed to build filthy rich clients, or Swing can play alone?
Chet Haase
author
Ranch Hand

Joined: Aug 16, 2007
Posts: 32
It depends on the size and scope of your application, and whether it needs, or can take advantage of, the facilities provided by those frameworks. The demos that we did for the book don't use any app framework (Eclipse RCP, NetBeans Platform, or the Swing App Framework). But our demos are intentionally small and focused in scope, so there wasn't much point to it. Also, the demos needed to focus on the individual effects that they were trying to present, and dragging in orthogonal issues like RCP would have detracted from the core issues.

Slightly larger apps (or even our demos) could benefit from simple usage of somelike like the Swing Application Framework, to handle such basic things as app/frame setup and teardown. For example, the boilerplate code in all of my demos where I post some Runnable that calls createAndShowGUI() on the Swing event thread is made easier by the Swing framework's Application facility.

Much larger apps would benefit from the module and update facilities (among other things) in the RCP alternatives.

But, as I said, it depends on your app.

Chet.


Book: <a href="http://filthyrichclients.org" target="_blank" rel="nofollow">http://filthyrichclients.org</a> <br />Java: <a href="http://weblogs.java.net/blog/chet" target="_blank" rel="nofollow">http://weblogs.java.net/blog/chet</a> <br />Humor: <a href="http://chetchat.blogspot.com" target="_blank" rel="nofollow">http://chetchat.blogspot.com</a>
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by Louis Wang:
FRC book intrduces some technologies making your rich apps cool.


you mean library something like.. Scriptaculous?


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

you mean library something like.. Scriptaculous?

Scriptaculous is a JavaScript library.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by John Todd:
Scriptaculous is a JavaScript library.


Thanks for your reply John,
I know its javascript library, but my point is different to getting the answer for different technologies as mansioned by Louis Wang.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is every Swing app rich?