Log in

View Full Version : Java for Pocket PC


null_
07-12-2003, 12:36 PM
Thought this thread was needed although it seems that there aren't too many Java programmers on this site. Should also be easier to find than the 'Java for my AXIM' thread...

Anyways, right now programming GUI for iPaq and crying rivers over the speed (or should i say slowness) of the two commonly used GUI packages swing and AWT. Found SWT today, it should be using more native widgets than AWT, and thereby a little more difficult to use... lets just hope it's faster! Anyone knows any way to get AWT or swing to work properly on a handheld?
Getting back with a review of swt.
/null



Tried AWT on these JVMs: Creme & Jeode
Also tried swing on Creme. it seemed even slower than awt.

See these pages for more info on these jvms:

Jeode: http://www.insignia.com/
creme: http://www.nsicom.com/

null_
07-12-2003, 02:49 PM
Got SWT to work under the pocket pc 2002 with both jeode and creme 3.22.

All you have to do is really to download the correct files from www.eclipse.org, the files you need are swt.jar and the .dll-file contained in the zip. Copy the .dll file to a library-path accepted by the jvm, such as \Windows :). The .jar should be in your classpath.

Creme is a bit special because it doesnt use a separate thread for invoking programs so you need another thread before you use it as event-dispatcher. This is done at the end of the main-method always in the examples that are availible. (Otherwise the system will hang because the thread that expects input in your program will really be the actual event-dispatcher in the ppc-system, not good)

null_
07-12-2003, 02:51 PM
At first sight SWT seems to be A LOT faster than AWT. They're not even playing in the same league, as someone said... Not gone too far with the tests though...

KidKomputer
07-13-2003, 05:42 AM
For swing with Jeode

http://forum.java.sun.com/thread.jsp?thread=370791&forum=56&message=1650608

Janak Parekh
07-13-2003, 06:54 AM
At first sight SWT seems to be A LOT faster than AWT. They're not even playing in the same league, as someone said... Not gone too far with the tests though...
I'd imagine SWT would indeed be MUCH faster -- it certainly is on the desktop. I didn't realize, however, that it's that easy to deploy. Thanks for the tip!

--janak

null_
07-14-2003, 11:49 AM
It's quite easy, yes... Just remember to use dispose, SWT doesn't have garbage collection! And uhm... try not to instantiate if you can avoid it anf you will go even faster.