]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix FeatureBrowser Accordion example tab captions
authorHenri Sara <henri.sara@itmill.com>
Tue, 26 May 2009 08:11:41 +0000 (08:11 +0000)
committerHenri Sara <henri.sara@itmill.com>
Tue, 26 May 2009 08:11:41 +0000 (08:11 +0000)
svn changeset:8011/svn branch:6.0

src/com/vaadin/demo/featurebrowser/AccordionExample.java

index 8fb2c95d62bce0c64a68786ffd744de8239963ef..68cd94faf782443851f99a4d9df0c2c8152838d7 100644 (file)
@@ -21,12 +21,12 @@ public class AccordionExample extends CustomComponent {
         for (int i = 0; i < 5; i++) {
             // Create a root component for a accordion tab
             VerticalLayout layout = new VerticalLayout();
-            accordion.addComponent(layout);
-
             // The accordion tab label is taken from the caption of the root
             // component. Notice that layouts can have a caption too.
             layout.setCaption("Tab " + (i + 1));
 
+            accordion.addComponent(layout);
+
             // Add some components in each accordion tab
             Label label = new Label("These are the contents of Tab " + (i + 1)
                     + ".");