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.
精彩评论