Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet94.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 | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
28:69b1fa94a4a8 | 29:4e5843b771cc |
---|---|
39 public static void main( String[] args) { | 39 public static void main( String[] args) { |
40 Display display = new Display (); | 40 Display display = new Display (); |
41 Clipboard cb = new Clipboard(display); | 41 Clipboard cb = new Clipboard(display); |
42 Shell shell = new Shell (display); | 42 Shell shell = new Shell (display); |
43 shell.setLayout(new FormLayout()); | 43 shell.setLayout(new FormLayout()); |
44 Text text = new Text(shell, SWT.BORDER | DWT.MULTI | DWT.V_SCROLL | DWT.H_SCROLL); | 44 Text text = new Text(shell, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL); |
45 | 45 |
46 Button copy = new Button(shell, SWT.PUSH); | 46 Button copy = new Button(shell, SWT.PUSH); |
47 copy.setText("Copy"); | 47 copy.setText("Copy"); |
48 copy.addListener (SWT.Selection, new class() Listener { | 48 copy.addListener (SWT.Selection, new class() Listener { |
49 public void handleEvent (Event e) { | 49 public void handleEvent (Event e) { |