大家可以在这边http://java.sun.com/javame/technology/lwuit/ 下载...

新版本中的新特性:

LWUIT1.3 新增了一下新特性:

      1、触屏手机虚拟键盘支持。

      2、在1.3版中即使那些没有焦点的组件也能够滚动了,以前的版本中例如在Form中创建一个Label,Lael里面装一张1024*768的图片,这个Label只能够显示屏幕范围内的图片,超出屏幕范围的图片则不能够显示,因为Label是无法获得焦点,就没有滚动效果,所以旧版本中不能够显示大图。

      3、菜单支持可按左右手习惯替换。

      4、添加了两个新的组件:Tree,Spinner。Tree树形组件,Spinner相当于Combobox形式的选择组件,Spinner和Combobox同样都继承自List。

      5、添加了TableLayout

      6、重新实现Combobox,重新设计了ListCellRenderer的Painter

      7、对触摸设备的支持有了改良,在列表滚动时可以提现出来

      8、把SVG也融入到Resource Editor中 ,但是大多数手机还都是不支持SVG的。

从今年5月份开始研究使用lwuit到现在,个人对这套框架还是比较喜欢的,源码开放更使得我们可以比较轻易的扩展出自己想要的控件。新版本增加的这些新特性像触屏虚拟键盘,像tablelayout都是很不错的,重要的是在对触屏设备也有了更好的支持,增加了这些新特性,也使得源码包越来越大,原先的349到现在的391kb。总之还是不错的。

  • Bidi support (contributed by Telmap) - allows using LWUIT with Right To Left languages such as Arabic, Hebrew
  • Lightweight Virtual keyboard support - allowing for customizable touch screen input
  • Pixel based scrolling - allowing scroll to work as expected even when components/containers exceed screen bounds and not just for focusable components
  • Table layout and table component - allowing complex tabular UI's including support for features such as spanning rows/columns
  • Tree component - supporting nested elements and expanding
  • Spinner component for date, time and numeric input within a range
  • Reimplementation of the ComboBox widget
  • SVG Support integrated into the Theme Creator (formerly LWUIT Designer/Resource Editor)
  • Touch device improvements: button menus, improved kinetic scrolling, tactile touch (vibration on touch)
  • Resource file specification
  • Redesigned the list renderer "rendering" logic so that it paints the backgrounds of the renderers first, and then the selection and foreground.

个版本的LWUIT.jar只有349k,1.3版本的增加到391k,确实长胖了不少。如果我要用1.3的话,我不会用它的jar,只会参考一下它的源码,如果有需要,就把1.3源码中的类整合到现在我用的这个版本的LWUIT中。

posted on 2009-12-24 09:23  tatung zhang  阅读(665)  评论(0编辑  收藏  举报