Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet130a.d @ 29:4e5843b771cc
First snippets buildable on windows
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 22 Mar 2009 19:55:00 +0100 |
parents | 69b1fa94a4a8 |
children | 8ae65ae167f5 |
comparison
equal
deleted
inserted
replaced
28:69b1fa94a4a8 | 29:4e5843b771cc |
---|---|
47 | 47 |
48 public static void main(String[] args) { | 48 public static void main(String[] args) { |
49 Display display = new Display(); | 49 Display display = new Display(); |
50 Shell shell = new Shell(display); | 50 Shell shell = new Shell(display); |
51 shell.setLayout(new GridLayout()); | 51 shell.setLayout(new GridLayout()); |
52 Text text = new Text(shell, SWT.MULTI | DWT.BORDER | DWT.V_SCROLL); | 52 Text text = new Text(shell, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL); |
53 text.setLayoutData(new GridData(GridData.FILL_BOTH)); | 53 text.setLayoutData(new GridData(GridData.FILL_BOTH)); |
54 int[] nextId = new int[1]; | 54 int[] nextId = new int[1]; |
55 Button b = new Button(shell, SWT.PUSH); | 55 Button b = new Button(shell, SWT.PUSH); |
56 b.setText("invoke long running job"); | 56 b.setText("invoke long running job"); |
57 | 57 |