如何在LWUIT选项卡上显示表单屏幕? [英] How to display a Form Screen on LWUIT Tabs?
本文介绍了如何在LWUIT选项卡上显示表单屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在表单上有列表项,当用户单击选项卡时,我必须在选项卡上显示该表单.
I have list items on form, I have to display that form on tabs, when the user clicked on a tab.
如何在form.show()
之后或之前将表单添加到标签?
How to add that form to tab, after form.show()
or before?
我需要在表单屏幕"中将第一个标签显示为默认值吗?
I need to display first tab as default with Form Screen?
推荐答案
您可以在标签"中显示表单.表单也是一个组成部分.
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();
这篇关于如何在LWUIT选项卡上显示表单屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文