Reputation: 321
I want to build an app for different Platforms and I want to used canvas (build a framework on top of the canvas and do such a things like drawing shapes, lines and more) i am using Codenameone java platform for cross platform but i cant add a canvas and draw on it in Codenameone. how is it possible to do something like this? Thanks in advance.
Upvotes: 0
Views: 390
Reputation: 52770
Just derive component and override paint(Graphics)
to draw. Place it in the center of a border layout form.
You can also override paint in Form
but you would run into some issues.
Upvotes: 1