globalManager = manager;
if (currentRepaintManagers == null) currentRepaintManagers = new HashMap();  ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); currentRepaintManagers.put(threadGroup, manager);
  public static void setCurrentManager(RepaintManager manager)  {    globalManager = manager;  }