objectdraw
Class JInitializer

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--objectdraw.JInitializer
All Implemented Interfaces:
java.lang.Runnable

public class JInitializer
extends java.lang.Thread

JInitializer is a thread that keeps trying to call WindowController's callBegin method and will try until it succeeds. This exists because the applet sometimes would try to add something to a Canvas when the Canvas did not exist yet (thus its Graphics was null).


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JInitializer(JWindowController windowController)
          Constructs a new JInitializer.
 
Method Summary
 void run()
          Tries callBegin until the JWindowController is set up and ready to have begin called on it.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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

JInitializer

public JInitializer(JWindowController windowController)
Constructs a new JInitializer.
Method Detail

run

public void run()
Tries callBegin until the JWindowController is set up and ready to have begin called on it.
Overrides:
run in class java.lang.Thread