while (next_in == next_out) wait();
ClasspathToolkit tk = ((ClasspathToolkit) Toolkit.getDefaultToolkit()); long curr = System.currentTimeMillis();
  public synchronized AWTEvent getNextEvent()    throws InterruptedException  {		if (next != null)			return next.getNextEvent();		while (next_in == next_out)			wait();		AWTEvent res = queue[next_out];		if (++next_out == queue.length)			next_out = 0;		return res;	}