0

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

public void paint(Graphics g){
g.setColor(44,255,44);
 g.fillRect(0,0, getWidth (), getHeight ());
form = new Form("");
form.append("acfascca");

}
gnat
  • 6,213
  • 108
  • 53
  • 73
RNZN
  • 107
  • 3
  • 12

2 Answers2

0

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.

Community
  • 1
  • 1
bharath
  • 14,283
  • 16
  • 57
  • 95
0

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

J. Steen
  • 15,470
  • 15
  • 56
  • 63
Suraj Air
  • 2,063
  • 4
  • 22
  • 33