ThreadGroup parent; Thread thread = Thread.currentThread(); threadPriority = thread.getPriority(); rootThreadGroup = thread.getThreadGroup(); while ((parent = rootThreadGroup.getParent()) != null) { rootThreadGroup = parent; } rootThreadGroup = new ThreadGroup(rootThreadGroup, "Java3D");  return null; }
synchronized (rootThreadGroup) { env.inputsched = new InputDeviceScheduler( rootThreadGroup, env); env.inputsched.setPriority(threadPriority); } return null; }
                public Object run() {		    ThreadGroup parent;		    Thread thread = Thread.currentThread();		    threadPriority = thread.getPriority();		    rootThreadGroup = thread.getThreadGroup();		    while ((parent = rootThreadGroup.getParent()) != null) {			rootThreadGroup = parent;		    }		    rootThreadGroup = new ThreadGroup(rootThreadGroup,						      "Java3D");		    // use the default maximum group priority		    return null;		}