Is it possible to compile java swing application in GWT?
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 -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it possible to compile java swing application in GWT?
Vikas wrote: > 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 > > 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 -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it possible to compile java swing application in GWT?
On 12/8/09, Paul Robinson wrote: > > Vikas wrote: > > 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 > > > > > 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 > > -- > > 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-web-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it possible to compile java swing application in GWT?
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 On Dec 8, 9:52 am, Vikas wrote: > 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 -- 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-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.