ublic class DropMidlet extends MIDlet { public static DropMidlet midlet private static MainCanvas m_MainCanvas //定义MainCanvas的引用 public DropMidlet() { super() //初始化,继承MIDlet类的构造 midlet = this }