KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > base > view > IpanemaWelcomeArea


1 /*
2  * Created on Nov 4, 2004
3  * by Alexander Bieber
4  *
5  */

6
7 package com.nightlabs.ipanema.base.view;
8
9 import org.eclipse.swt.SWT;
10 import org.eclipse.swt.layout.GridData;
11 import org.eclipse.swt.layout.GridLayout;
12 import org.eclipse.swt.widgets.Composite;
13 import org.eclipse.swt.widgets.Label;
14 /**
15  * @author Alexander Bieber
16  */

17 public class IpanemaWelcomeArea extends Composite{
18     
19     private Label label;
20
21     public IpanemaWelcomeArea(
22             Composite parent,
23             int style
24     ) {
25         super(parent, style);
26         initialize();
27     }
28     
29     private void initialize() {
30         GridData gridData4 = new GridData();
31         GridLayout gridLayoutStatic = new GridLayout();
32         label = new Label(this, SWT.NONE);
33         label.setText("Hallo Ipanema");
34         this.setLayout(gridLayoutStatic);
35         gridLayoutStatic.numColumns = 1;
36         gridData4.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL;
37         gridData4.grabExcessHorizontalSpace = true;
38         label.setLayoutData(gridData4);
39         setSize(new org.eclipse.swt.graphics.Point(214,62));
40     }
41     
42
43 }
44
Popular Tags