Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java
index 3772b094f9..423a2db326 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet146.java
@@ -36,6 +36,11 @@ public static void main(String[] args) {
new Thread(){
@Override
public void run(){
+ // wait for shell to be opened
+ try {
+ Thread.sleep(100);
+ } catch (InterruptedException e) {}
+
String string = "Love the method.";
for (int i = 0; i < string.length(); i++) {
char ch = string.charAt(i);

Back to the top