]> source.dussan.org Git - vaadin-framework.git/commitdiff
Added corporate theme, reorganized comments
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 7 Feb 2007 12:20:25 +0000 (12:20 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 7 Feb 2007 12:20:25 +0000 (12:20 +0000)
svn changeset:515/svn branch:toolkit

src/com/itmill/toolkit/demo/Calc.java

index 75ddd976f913b9d7b8075418071ffd2685c0549d..fb6f7272d5a692670d64a1c8475a54516a650c87 100644 (file)
@@ -44,10 +44,7 @@ public class Calc
         */
        public void init() {
 
-               /*
-                * Create a new {@link com.itmill.toolkit.ui.GridLayout GridLayout}
-                * to hold the UI components needed by the calculator.
-                */
+                //Create a new layout for the components used by the calculator
                GridLayout layout = new GridLayout(4, 5);
 
                //Create a new label component for displaying the result
@@ -62,11 +59,11 @@ public class Calc
                        layout.addComponent(new Button(captions[i], this));
                }
 
-               /*
-                * Create the main window with a caption and add it to the
-                * application.
-                */
+               // Create the main window with a caption and add it to the application.
                addWindow(new Window("Calculator", layout));
+               
+               //Set the application to use Corporate -theme
+               setTheme("corporate");
 
        }