Mercurial > projects > dwt2
diff org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet217.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 | 9f4c18c268b2 |
line wrap: on
line diff
--- a/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet217.d Sun Mar 22 15:17:04 2009 +0100 +++ b/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet217.d Sun Mar 22 19:55:00 2009 +0100 @@ -75,9 +75,9 @@ Font font = new Font(display, "Tahoma", 32f, SWT.NORMAL); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); - styledText = new StyledText(shell, SWT.WRAP | DWT.BORDER); + styledText = new StyledText(shell, SWT.WRAP | SWT.BORDER); styledText.setFont(font); - styledText.setLayoutData(new GridData(SWT.FILL, DWT.FILL, true, true)); + styledText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); styledText.setText(text); controls = new Control[2]; Button button = new Button(styledText, SWT.PUSH);