Dim cnv as Canvas
Dim pnl As Panel
pnl.Initialize("MoveableObject")
pnl.Color = Colors.rgb(34,127,0) 'Green Grass
---> cnv.Initialize(pnl)
At execution time this line is throwing a Java Null Pointer exception. I've never had this problem before using a canvas to draw on.
Any ideas?