Can I have CustomItem and Canvas class on same Screen in j2me

可紊 提交于 2019-12-12 02:57:14

问题


Can I have CustomItem object and Canvas class on same screen in j2me?

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?


回答1:


As long as Tab Menu extends Canvas, there is no way to integrate it into Form with MIDP 2 API.

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.



来源:https://stackoverflow.com/questions/9273257/can-i-have-customitem-and-canvas-class-on-same-screen-in-j2me

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!