import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
/*
* Created on 22.12.2006
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class Main {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new GridLayout());
Text t = new Text(shell, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
t.setText("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd");
t.setLayoutData(new GridData(SWT.BEGINNING, SWT.FILL, false, true));
((GridData)t.getLayoutData()).widthHint = 50;
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
}
}