/[classpath]/classpath/javax/swing/Timer.java
ViewVC logotype

Diff of /classpath/javax/swing/Timer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mkoch, Fri Oct 22 17:46:47 2004 UTC revision 1.15 by mkoch, Tue Jan 18 09:43:45 2005 UTC
# Line 72  public class Timer implements Serializab Line 72  public class Timer implements Serializab
72    /** DOCUMENT ME! */    /** DOCUMENT ME! */
73    private Waker waker;    private Waker waker;
74    
75      private Runnable drainer = new Runnable()
76        {
77          public void run()
78          {
79            drainEvents();
80          }
81        };
82    
83    /**    /**
84     * DOCUMENT ME!     * DOCUMENT ME!
85     */     */
# Line 81  public class Timer implements Serializab Line 89  public class Timer implements Serializab
89        {        {
90          queue++;          queue++;
91          if (queue == 1)          if (queue == 1)
92            SwingUtilities.invokeLater(new Runnable()            SwingUtilities.invokeLater(drainer);
               {  
                 public void run()  
                 {  
                   drainEvents();  
                 }  
               });  
   
93        }        }
94    }    }
95    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26