How to display a Form Screen on LWUIT Tabs?

前端 未结 1 772
终归单人心
终归单人心 2021-01-29 09:46

I have list items on form, I have to display that form on tabs, when the user clicked on a tab.

How to add that form to tab, after form.show() or before?

1条回答
  •  有刺的猬
    2021-01-29 10:18

    You can display form in Tabs. Form is also a component.

    Form frmObj = new Form("Tabs Example");
    Form frmOne = new Form("One");
    Form frmTwo = new Form("Two");
    
    Tabs tabObj = new Tabs();
    tabObj.addTab("Form One",frmOne);
    tabObj.addTab("Form Two",frmTwo );
    frmObj.addComponent(tabObj);
    frmObj.show();
    

    0 讨论(0)
提交回复
热议问题