Search code examples
canvasjava-melwuit

Canvas and LWUIT in J2ME


In my application I have to add TextField,Label and Button in the Tab View of the Canvas Class.

How can I add LWUIT components into Canvas Class?


Solution

  • I think that you can solve this building the Form in this way.

    It seems that you want to have a TabView on the top of your Form.To do that, you can use a Form with a BorderLayout and put the Label,TextField and the Button inside a Container and set this Containerto the NORTHposition of the BorderLayout. It will be close to be a TabView