问题描述
我可以在j2me的同一屏幕上拥有CustomItem对象和Canvas类吗?
Can I have CustomItem object and Canvas class on same screen in j2me?
我创建了一个Tab菜单,它扩展了Canvas,然后创建了一个自定义Header类,它扩展了CustomItem类,因此我希望它以一种形式集成.我可以吗?
I created a Tab Menu which extends Canvas and then a custom Header class which extends CustomItem class so I want it to integrate in one form. Can I do it?
推荐答案
只要 Tab菜单扩展了Canvas,就无法通过 MIDP 2 API .
As long as Tab Menu extends Canvas, there is no way to integrate it into Form with MIDP 2 API.
要将其集成到Form中,我可能只需重新设计 Tab Menu 即可扩展CustomItem而不是Canvas.这样一来,便可以将其与 Header CustomItem 标头一起显示在同一表单屏幕上.
To integrate it into Form I would probably just redesign that Tab Menu to extend CustomItem instead of Canvas. That way would make it possible to have it on same form screen along with your Header CustomItem.
这篇关于我可以在j2me的同一屏幕上拥有CustomItem和Canvas类吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!