问题
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