diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-02-07 12:20:25 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-02-07 12:20:25 +0000 |
commit | 0da37a98c925935fcf990e39f015bf03ffb442ef (patch) | |
tree | 7262dd393375f53edf5f973b4942ac6da85f2e75 /src/com/itmill/toolkit/demo/Calc.java | |
parent | c242ff0cdeb410087a306231bf75ad2ce1e574fd (diff) | |
download | vaadin-framework-0da37a98c925935fcf990e39f015bf03ffb442ef.tar.gz vaadin-framework-0da37a98c925935fcf990e39f015bf03ffb442ef.zip |
Added corporate theme, reorganized comments
svn changeset:515/svn branch:toolkit
Diffstat (limited to 'src/com/itmill/toolkit/demo/Calc.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/Calc.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/com/itmill/toolkit/demo/Calc.java b/src/com/itmill/toolkit/demo/Calc.java index 75ddd976f9..fb6f7272d5 100644 --- a/src/com/itmill/toolkit/demo/Calc.java +++ b/src/com/itmill/toolkit/demo/Calc.java @@ -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"); } |