diff options
Diffstat (limited to 'vaadin-app/src')
-rw-r--r-- | vaadin-app/src/ch/asynk/helloworld/MainLayout.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vaadin-app/src/ch/asynk/helloworld/MainLayout.java b/vaadin-app/src/ch/asynk/helloworld/MainLayout.java index 29504cb..d4481c1 100644 --- a/vaadin-app/src/ch/asynk/helloworld/MainLayout.java +++ b/vaadin-app/src/ch/asynk/helloworld/MainLayout.java @@ -21,11 +21,11 @@ public class MainLayout extends VerticalLayout { public MainLayout(Context context) { ctx = context; // - final AbstractComponent ctrlPanel = buildPanel(); - ctrlPanel.setWidth(250,UNITS_PIXELS); - ctrlPanel.setHeight(300,UNITS_PIXELS); - addComponent(ctrlPanel); - setComponentAlignment(ctrlPanel, Alignment.MIDDLE_CENTER); + final AbstractComponent pa = buildPanel(); + pa.setWidth(250,UNITS_PIXELS); + pa.setHeight(300,UNITS_PIXELS); + addComponent(pa); + setComponentAlignment(pa, Alignment.MIDDLE_CENTER); // } |