Is it possible to compile java swing application in GWT?

96 views
Skip to first unread message

Vikas

unread,
Dec 8, 2009, 3:52:32 AM12/8/09
to Google Web Toolkit
Hi all,

I know this is not possible in plain gwt, but I'm just curious to know
that is there any add-on tools by using we can translate swing
application to GWT compatible code?

We feel there must be something because reason behind developing GWT
application in java is that already there are so many swing based
application which are now want to migrate web based.

I've already tried AjaxSwing which is completely different framework.

Thanks,
Vikas

Paul Robinson

unread,
Dec 8, 2009, 5:13:25 AM12/8/09
to google-we...@googlegroups.com
No, and I doubt it would ever be possible in any meaningful way. Even if
you ignore the way swing has direct access to the underlying windows via
a per-platform awt implementation, you'd still have the problem that
swing UIs have full java usage rather than a limited set of translatable
classes. This means stuff like database access, socket code, messaging,
multi-threaded code etc. You could never handle all of this.

The whole thing has such a different mentality that it's hard to see how
this would ever be achieved beyond very simple apps.

Google have consistently said that the reason behind Java as their
choice for GWT was the tools available for it. The fact that there are
existing swing UIs is coincidental.

Paul

piyush sharma

unread,
Dec 8, 2009, 6:38:30 AM12/8/09
to google-we...@googlegroups.com
--

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Olivier Gérardin

unread,
Dec 9, 2009, 4:59:27 AM12/9/09
to Google Web Toolkit
I also doubt it will ever exist, one of the reason being that Swing
uses multi-threading and you now that JavaScript has strong
limitations on this.

AjaxSwing looks like a much more realistic way to achieve the same
result through a completely different approach. it doesn't do any code
migration, the Swing app runs unmodified and AjaxSwing acts as a
runtime proxy. I gave it a try and it's very impressive. I don't know
how this would work on a "real world" Swing app, though.

Olivier
Reply all
Reply to author
Forward
0 new messages