Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Choosing between Swing, Spring and Struts?

825 views
Skip to first unread message

Novice

unread,
Nov 29, 2011, 12:08:25 PM11/29/11
to
I have been approached as a possible contractor to build a Java desktop
application that needs to run on both Windows and Mac. I'm pretty familiar
with Swing but know that Spring and Struts are in wide usage these days.

Assuming the customer has no strong feelings either way - and I don't know
that yet - what are the pros and cons for Swing, Spring and Struts? In
other words, which would be best to use and why?

Given that I haven't worked with either Spring or Struts, I'm also curious
about learning time for these technologies. I just looked at one YouTube
video each for both Spring and Struts and found both pretty dreadful in
terms of production values and content. The Struts video was long on vague
generalities and had no real coding examples at all. The Spring video was
based on a real example but it was really trivial and the presenter wasted
far too much time on things like explaining how to download a file and such
things.

I learn best when I have materials that contain a lot of examples and
hands-on exercises. Also, money is tight so, when possible, I prefer free
resources that I can use online or download onto my computer. Can anyone
suggest materials like that for current versions of String and Struts? I'd
like to get at least a basic overview of what they do and what's involved
in working with them.

Also, does anyone have any general remarks on how well Java desktop
applications typically run on Macs? I did a desktop app that was developed
on Windows that only needed one line changed to run perfectly on both
Windows and Linux. Could I expect an app developed in Windows to work on a
Mac so effortlessly? Or are there typically more issues in making the app
work well on a Mac?

--
Novice

markspace

unread,
Nov 29, 2011, 4:01:14 PM11/29/11
to
On 11/29/2011 9:08 AM, Novice wrote:
> I have been approached as a possible contractor to build a Java desktop
> application that needs to run on both Windows and Mac. I'm pretty familiar
> with Swing but know that Spring and Struts are in wide usage these days.

Spring and Struts are web/html only. They won't do you any good for
"desktop apps," if that's what you're really doing.

Lack of Java knowledge here is starting to scare me again. Don't over
sell yourself to your new customer.

>
> Also, does anyone have any general remarks on how well Java desktop
> applications typically run on Macs?

No idea, but be certain that there will be differences. I'd require the
customer to supply me with a target system for testing. To be returned
when the project is completed, of course.

Novice

unread,
Nov 29, 2011, 5:20:19 PM11/29/11
to
markspace <-@.> wrote in news:jb3h6s$vq$1...@dont-email.me:

> On 11/29/2011 9:08 AM, Novice wrote:
>> I have been approached as a possible contractor to build a Java
>> desktop application that needs to run on both Windows and Mac. I'm
>> pretty familiar with Swing but know that Spring and Struts are in
>> wide usage these days.
>
> Spring and Struts are web/html only. They won't do you any good for
> "desktop apps," if that's what you're really doing.
>
Whoops! Arved said something about Spring and Struts in the other thread
and I suddenly remembered that they were a factor in GUI construction - but
forgot that they only applied in web development. Thanks for catching that!

I've already replied to the prospective customer's email saying that we'd
have to choose between Swing, Spring, and Struts even though it's clear he
wanted a desktop app.

Time for some damage control! I'd already admitted to him that I hadn't
used Spring or Struts so hopefully he'll forgive me for not knowing that
they were web-only....

> Lack of Java knowledge here is starting to scare me again. Don't over
> sell yourself to your new customer.
>
>>
>> Also, does anyone have any general remarks on how well Java desktop
>> applications typically run on Macs?
>
> No idea, but be certain that there will be differences. I'd require
> the customer to supply me with a target system for testing. To be
> returned when the project is completed, of course.

Absolutely! I don't have a Mac and am not about to buy one out of my own
pocket to be able to test on one.



--
Novice

John B. Matthews

unread,
Nov 29, 2011, 9:00:35 PM11/29/11
to
In article <Xns9FAC7BDA...@94.75.214.39>,
Novice <novice@example..com> wrote:

> Also, does anyone have any general remarks on how well Java desktop
> applications typically run on Macs? I did a desktop app that was
> developed on Windows that only needed one line changed to run
> perfectly on both Windows and Linux. Could I expect an app developed
> in Windows to work on a Mac so effortlessly? Or are there typically
> more issues in making the app work well on a Mac?

Well-written Swing applications are eminently cross-platform, but I use
a number of virtual and real machines for testing, for which there is no
substitute. For comparison, all of the examples cited below were built
on a Mac; Java Web Start makes testing elsewhere relatively easy.
Understanding layouts and respecting a component's preferred size are
critical.

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
0 new messages