]> git.llucax.com Git - z.facultad/75.62/c2tp1.git/blobdiff - src/Sorteo.java
MVC en 4.3
[z.facultad/75.62/c2tp1.git] / src / Sorteo.java
index 2b2741cbef141ac7d326b31b8bbbf2ad3bd2b639..14a2a41ee235a8c513b4f183eb93eb684b526751 100644 (file)
@@ -1,6 +1,7 @@
 
 import java.util.*;
-               
+import java.lang.Thread;
+
 public class Sorteo extends Observable
 {
        Random r = new Random ();
@@ -22,6 +23,10 @@ public class Sorteo extends Observable
                        n = r.nextInt (100);
                        setChanged ();
                        notifyObservers ();
+                       try {
+                               Thread.sleep (500);
+                       }
+                       catch (Exception e) {}
                }
        }
 }