Hi Ian,
Sorry for the late reply
The code which you wrote above is the same effect i am trying to make,
but i do it like:

a) Parse an xml file which has 6 or 7 enteries, so i make 6 to 7
vertical panels
b) Each entry calls another xml file which has 20 to 30 textboxes in
tht. It prints the textboxes on it
c) now after adding all textboxes to the vertical panel, I add submit
button to each vertical panel

so first time it comes it shows on top but later it shows on bottom
I will try to give a sample demo so you could see that problem
yourself soon


On Aug 24, 12:31 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> 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 <coolrahul18...@gmail.com>
>
>
>
> > 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 google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to