LWUIT成功运行在黑莓上!

通过在独立线程上运行并调整LWUIT分配(移除M3G等帮助类和3D过渡类),成功实现了LWUIT在黑莓模拟器上的运行。在JDE环境下设置LWUIT作为库项目,并让LWUIT midlet项目依赖于该库。此外,还讨论了如何使用BlackBerry UiApplication类处理软键事件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 


原文:

 

Success! LWUIT on Blackberry

Posted by wsnyder6 on July 09, 2008 at 03:41 PM | Comments (20) 

    This will be short and sweet.

    To work around a race condition (see this thread), LWUIT needs to run on a separate thread on the Blackberry. Taking this into effect, together with a modified LWUIT distribution (removing references to M3G helper classes and the 3D Transition classes), I've finally got the demo to work on a simulator.

    Granted, this in the JDE, not NetBeans. I need to figure that out yet. In the JDE, make sure you have the modified LWUIT dist set up as a library type project, and then make your a LWUIT midlet project dependent on that library.

    Oh yeah, since LWUIT really relies on the presence of soft keys, you may want to use the BlackBerry UiApplication class to catch key events and wheel events, then translate those to the corresponding UI action. But you can also keep the same q/w and o/p softkeys in place.

    Proof that it works!


翻译:

 

      LWUIT成功运行在黑莓上!

      这将是短暂而甜蜜的。

      要解决这个问题(见本线),LWUIT需要运行在黑莓的一个独立的线程。考虑到这一点的影响,加上修改LWUIT分配(删除涉及M3G等帮助类和3d过渡类),我终于完成了在模拟器上工作的Demo。

      当然,这是在JDE,而不是NetBeans的。我依然需要指出。在JDE里面,确认你修改的LWUIT在项目中以库的形式设立,然后让你的LWUIT midlet项目依赖于这个库。

      噢,LWUIT真正的存在依靠软键,您可能会想要使用BlackBerry UiApplication类捕捉按键事件和滚轮事件,然后把这些转换为相应的UI动作。但您也可以保留相同的q/w和o/p软键代替。

 

      下面是它的运行效果!

 

 LWUIT在黑莓上运行的效果图

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值