Hi Rahul,
I tried the code below but it seems to work OK. Is it the kind of effect you
are trying to get?


        VerticalPanel[] v1 = new VerticalPanel[5];
        TabPanel tabpanel = new TabPanel();
        for(int j = 0; j < 5; j++)
        {
            v1[j] = new VerticalPanel();
            tabpanel.add(v1[j], " [XXX] ");
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new TextBox());
            v1[j].add(new Button("Submit"));
        }
        RootPanel.get().add(tabpanel);
        tabpanel.selectTab(0);

Ian

http://examples.roughian.com


2009/8/24 Rahul <[email protected]>

>
> Hi Ian,
> Sorry for the late reply, I was out of office for last few days
>
> here is part of the code
>        for ( j = 0; j < URLs.getLength()-1; j++)
>                                        {
>                                                v1[j] = new VerticalPanel();
>                                                String str =
> URLs.item(j).getAttributes().toString();
>                                        //      System.out.println(str);
>
>  tabpanel.add(v1[j],str.substring(13,16));
>
>  fucn(v1[j],str.substring(13,16),drag);
>
>  v1[j].setTitle(str.substring(13,16));
>                                            b1 = new Button ("Submit");
>                                            b1.addClickHandler(handler2);
>                                            v1[j].add(b1);
>
>
>                                        //end of for loop
>                                        }
>
>
> the button b1 is an public button
>
> Sincerely,
> Rahul
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to