开发者

Canvas J2mE list form

How can I create create a form/list using canvas and add TextField to it?

public void paint(Graphics g){
g.setColor(44,255,4开发者_高级运维4);
 g.fillRect(0,0, getWidth (), getHeight ());
form = new Form("");
form.append("acfascca");

}


See this article Drawing TextField on Canvas j2me. But i feel If you are starting new project means you can go with LWUIT Framework. Also see this discussion.


Canvas is a low level API, hence I don't think it supports adding of Form to it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜