Category Archives: SWT

SWT Snippets (Reloaded)

SWT Snippets (Reloaded) Examples are copied from http://www.eclipse.org/swt/snippets/. Snippets are minimal stand-alone programs that demonstrate specific techniques or functionality. Often a small example is the easiest way to understand how to use a particular feature. Not all the snippets is … Continue reading

Posted in Java2Script News, SWT, Sharing | Leave a comment

A Link An Application

For example: javascript:(function(){var d=document,b=%22http://java2script.ognize.com/1.0.0-m3/%22,t=%22onreadystatechange%22,x=d.createElement(%22SCRIPT%22),f=function(){var s=this.readyState;if(s==null||s==%22loaded%22||s==%22complete%22){var c=%22org.eclipse.swt.examples.controlexample.ControlExample%22;$CL1(b);$CL2(b+%22../control-examples/%22);$CL3(c,function(){eval(c+%22.main([]);%22);});}};x.src=b+%22j2slib.js%22;(typeof x[t]==%22undefined%22)?x.onload=f:x[t]=f;d.getElementsByTagName(%22HEAD%22)[0].appendChild(x);return;})(); will link to an SWT control examples. We can also call this as “A Link An Application”(ALAA). OK, let’s see what is going on. Now load SWT control examples from java2script.ognize.com (test site … Continue reading

Posted in A Link An Application, ALAA, Java, Java2Script News, JavaScript, SWT, Sharing | Comments Off

Screenshot of SWT Control Example

The Control Example is one of Eclipse SWT examples. I modified the tabs into dynamical loading tab so the example will work faster. You still need to wait about 8 seconds for the example to initialize besides the about 800+k … Continue reading

Posted in SWT, Screenshot, Sharing | Leave a comment