开发者

Need help regarding lwuit

I have project, already developed using canvas and lib used is LCDUI. It's for nokia keyboard supported devices. Now I want to incorporate sa开发者_如何学运维me application for touch devices. I have used touch methods like pointerpressed, etc.

For normal functionality that worked pretty well. But it creates problem in commands.

My application is in fullscreen mode. Commands I have created using user defined menu list. Probles is that I can not directly identify that which command has been clicked. Setting coordinates for every command is not thr feasible solution for me.

I come across the new lib LWUIT, but i found out that it supports only forms(Can't we use on canvas?). and integrating LCDUI and LWUIT is also not possible(please give suggestion that can we use both in same application?).

Is it possible to create form under canvas itself? Any other lib support available?

thank you.


If you want to use LWUIT, then it has a Painter mechanism for custom background painting. I assume you can have a Form with its background painted as you like using Painter.

Some help can be found here: Using Styles, Themes and Painters with LWUIT


LWUIT is made to override every component. You also have a basic painter class to draw lines and basic geomotry in all sorts of colors you desire. So if you combine those two, you can do some very nice stuff.

So if you override your component with an actionlistener it should generate events, which you can then catch in a parent component who has an actionperformed function.

hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜