How to display a Form Screen on LWUIT Tabs?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 22:50:39

问题


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?

I need to display first tab as default with Form Screen?


回答1:


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();


来源:https://stackoverflow.com/questions/11862237/how-to-display-a-form-screen-on-lwuit-tabs

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