org.soder_shef.life
Class SetupGameOfLifeThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.soder_shef.life.SetupGameOfLifeThread
All Implemented Interfaces:
java.lang.Runnable

public class SetupGameOfLifeThread
extends java.lang.Thread

Example of setting up a game of life in its own window using threads. This one uses a separate event handler class to handle handle mouse clicks.


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SetupGameOfLifeThread(int cols, int rows, int cellSize)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetupGameOfLifeThread

public SetupGameOfLifeThread(int cols,
                             int rows,
                             int cellSize)
Method Detail

run

public void run()