From 0da37a98c925935fcf990e39f015bf03ffb442ef Mon Sep 17 00:00:00 2001 From: Joonas Lehtinen Date: Wed, 7 Feb 2007 12:20:25 +0000 Subject: [PATCH] Added corporate theme, reorganized comments svn changeset:515/svn branch:toolkit --- src/com/itmill/toolkit/demo/Calc.java | 13 +++++-------- 1 file 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"); } -- 2.39.5