gnu.x11.test
Class Sync

java.lang.Object
  extended by gnu.app.Application
      extended by gnu.x11.Application
          extended by gnu.x11.test.Graphics
              extended by gnu.x11.test.Sync
All Implemented Interfaces:
java.lang.Runnable

public class Sync
extends Graphics
implements java.lang.Runnable

Test multi-threading and synchronization.

See Also:
screenshot, text output, help output

Field Summary
static java.util.Random random
           
 java.lang.Thread thread
           
 
Fields inherited from class gnu.x11.test.Graphics
event, leave_display_open, window
 
Fields inherited from class gnu.x11.Application
display, option
 
Fields inherited from class gnu.app.Application
exit_now, help_option
 
Constructor Summary
Sync(java.lang.String[] args)
           
 
Method Summary
 void dispatch_event()
           
protected  void exit()
           
static void main(java.lang.String[] args)
           
 void run()
           
 
Methods inherited from class gnu.x11.test.Graphics
about, exec, paint
 
Methods inherited from class gnu.app.Application
about
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

public static final java.util.Random random

thread

public java.lang.Thread thread
Constructor Detail

Sync

public Sync(java.lang.String[] args)
Method Detail

dispatch_event

public void dispatch_event()
Overrides:
dispatch_event in class Graphics

exit

protected void exit()
Overrides:
exit in class gnu.app.Application

run

public void run()
Specified by:
run in interface java.lang.Runnable

main

public static void main(java.lang.String[] args)