Re: Java ME + SE Application Development

[email protected] Thu, 10 Jul 2008 03:44:02 PDT
Newsgroups gmane.comp.java.sun.kvm
Message-ID <18979795.131911215686676722.JavaMail.tomcat@sdcst12.sjc.collab.net>
Hi,

There are a number of things to consider, in particular that the user interaction will be very different between desktop and a mobile device - meaning that even if you use the same UI toolkit you will need to be very conscious about screen elements, layout, traversal, input methods, etc.

But the toolkit part of the job got much easier with the introduction of LWUIT (https://lwuit.dev.java.net/). Currently the library is built for MIDP platforms but it can be ported to Java SE as well giving you a common toolkit across multiple platforms. In fact, we have an alpha version of LWUIT for use in the LWUIT resource editor tool but in order to use LWUIT for general applications on Java SE that port needs more work. But using LWUIT as the common toolkit layer for all your platforms would simplify things a lot.

As for conditional compilation - Java of course doesn't support that directly, but there are multiple external (preprocessing-)tools that do. I am not sure which of these work with Eclipse but NetBeans certainly is a good choice and supports "configurations" and "abilities" and has conditional compilation features built-in that preprocess the application code based on the selected configurations. It works quite well - you should give it a try.

Hope that helps. Cheers,

-- Terrence
[Message sent by forum member 'terrencebarr' (terrencebarr)]

http://forums.java.net/jive/thread.jspa?messageID=285630

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".