swing swt in Gwt??

15 views
Skip to first unread message

swedeveloper

unread,
Aug 5, 2011, 6:28:25 AM8/5/11
to Google Web Toolkit
Hi jens again!
My question is that I can not get Java JRE components that act as
java.lang lava.util.
They should work in GWT compiles but does not and has no heritage, and
these classes are to be found.
I miss a legacy that I should write in the module?

another question, one can not get swt and swing and work in GWT maybe
add some jar package?
Regards jens

Jens

unread,
Aug 5, 2011, 7:19:12 AM8/5/11
to google-we...@googlegroups.com
Take a look at: http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html

If your JRE classes are listed then you can use them in GWT client code and it should work. If they are not listed you simple can not use them. GWT compiles from Java to JavaScript and not everything that Java provides makes sense to translate to JavaScript (and sometimes its not possible). If you really need the classes you can try and provide a custom JRE Emulation for GWT.

In case of Swing and SWT.. by default you can not use them with GWT and I think there is no working GWT port.
Reply all
Reply to author
Forward
0 new messages