-1

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?

gnat
  • 6,213
  • 108
  • 53
  • 73
String
  • 3,660
  • 10
  • 43
  • 66
  • 1
    [Example](https://projects.developer.nokia.com/LWUIT_for_Series_40/browser/Apps/untested-examples/LWUITDemo/src/com/sun/lwuit/uidemo/TabsDemo.java?rev=f2e9efee6949eb4f487bbf37fc93efd863fef9b7) might be helpful for you :) – Lucifer Aug 08 '12 at 10:38
  • But those all are to disaplay Normal Components on tab,but i want to display a form scren with List Items? – String Aug 08 '12 at 11:15
  • List & Tab both are different thing, look at your question, where you have mentioned List Items ? – Lucifer Aug 08 '12 at 11:18
  • 2
    then ask your question properly in detail. – Lucifer Aug 08 '12 at 11:29

1 Answers1

0

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();
Kalai Selvan Ravi
  • 2,846
  • 2
  • 16
  • 28
  • 1
    when should i add my form to tabobj,after finishing lines of code and form.show() or if we add before that also ,it will work? – String Aug 09 '12 at 09:57
  • 1
    You shouldn't add a form to another form unless you REALLY know what you are doing! Its very bad practice! You need to use a container for the entries. – Shai Almog Aug 09 '12 at 16:25
  • Hi Shai Almog,can you answer my question?i need to add my Forms having list of items to the Tabs,First Tab Should Display default FormScreen and from Second Tab onwords we need to display Form Screen,when the user Clicked on Tabs? – String Aug 10 '12 at 04:38