if (globalManager == null) globalManager = new RepaintManager(); return globalManager;
if (currentRepaintManagers == null) currentRepaintManagers = new HashMap(); ThreadGroup threadGroup = Thread.currentThread().getThreadGroup(); RepaintManager currentManager = (RepaintManager) currentRepaintManagers.get(threadGroup); if (currentManager == null) { currentManager = new RepaintManager(); currentRepaintManagers.put(threadGroup, currentManager); } return currentManager;
  public static RepaintManager currentManager(Component component)  {    if (globalManager == null)      globalManager = new RepaintManager();    return globalManager;  }