Mercurial > projects > dwt2
comparison org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet133.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 | 93b0e7382fd5 |
comparison
equal
deleted
inserted
replaced
28:69b1fa94a4a8 | 29:4e5843b771cc |
---|---|
85 open(){ | 85 open(){ |
86 display = new Display(); | 86 display = new Display(); |
87 shell = new Shell(display); | 87 shell = new Shell(display); |
88 shell.setLayout(new FillLayout()); | 88 shell.setLayout(new FillLayout()); |
89 shell.setText("Print Text"); | 89 shell.setText("Print Text"); |
90 text = new Text(shell, SWT.BORDER | DWT.MULTI | DWT.V_SCROLL | DWT.H_SCROLL); | 90 text = new Text(shell, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL); |
91 | 91 |
92 Menu menuBar = new Menu(shell, SWT.BAR); | 92 Menu menuBar = new Menu(shell, SWT.BAR); |
93 shell.setMenuBar(menuBar); | 93 shell.setMenuBar(menuBar); |
94 MenuItem item = new MenuItem(menuBar, SWT.CASCADE); | 94 MenuItem item = new MenuItem(menuBar, SWT.CASCADE); |
95 item.setText("&File"); | 95 item.setText("&File"); |