Bug 115092 Snippet 203 doesn't use all texts
I'd guess that the line layout.setText(texts[0]); in SWT snippet 203 should be layout.setText(texts[i]);
examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet203.java
TextLayout layout = new TextLayout(display);
		layout.setText(texts[0]);
		layout.setIndent(30);
		layout.setJustify(true);
		layout.setAlignment(alignments[i]);		
		layouts[i] = layout;
	}
	shell.addListener(SWT.Paint, new Listener() {
		public void handleEvent(Event event) {
			Point point = new Point(10, 10);
			int width = shell.getClientArea().width - 2 * point.x;
			for (int i = 0; i < layouts.length; i++) {
				TextLayout layout = layouts[i];
				layout.setWidth(width);
				layout.draw(event.gc, point.x, point.y);
				point.y += layout.getBounds().height + 10;
			}			
		}
	});
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch()) display.sleep();
	}
	for (int i = 0; i < layouts.length; i++) {
		layouts[i].dispose();		
	}
	display.dispose();
}
}