Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Eclipse SWT Examples in JavaScript/Browser

Hi,

I think some of you may like the idea of running a _javascript_ copy of SWT application inside modern browsers without using JRE. Here is "Eclipse SWT Examples" demo:

http://demo.java2script.org/controls/

The loading for the first time visitors may seem a little long to wait. The second loading would be much faster. Enjoy it.

The demo is directly compiled into _javascript_ basing on the same code base of  Eclipse SWT Examples' Java sources, using Java2Script plugin ( http://j2s.sourceforge.net/ ). Only a few lines of the sources are modified, adding lazy loading and lazy initializing mechanism to avoid browser freezing while still runing correctly as native Java application. _javascript_'s performance is not as good as native Java, such asynchronous lazy mechanisms are necessary for browser.

Most of SWT widgets in org.eclipse.swt.widgets.* are already ported to browser. Please check it out the sources at http://j2s.svn.sourceforge.net/viewvc/j2s/trunk/sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/

For more information about Java2Script, please visit http://j2s.sourceforge.net/ and http://demo.java2script.org/ .

BTW: You may like to visit http://www.eclipse.org/rap/ for information about Eclipse RAP's RWT.

Regards,
Zhou Renjian

Back to the top