if (!manager.dispatchEvent (evt)) queue.dispatchEvent(evt); } catch (ThreadDeath death) {  return;
if (!manager.dispatchEvent(evt)) { queue.dispatchEvent(evt); } } catch (ThreadDeath death) {  System.out.println("dispatch thread:threaddeath"); return; } catch (InterruptedException ie) {  System.out.println("dispatch thread:interrupted"); return; } catch (Throwable x) { System.out.println("dispatch thread:exception"); x.printStackTrace(); System.err.println("Exception during event dispatch:"); x.printStackTrace(System.err); }
  public void run()  {    while (true)      {        try	{				AWTEvent evt = queue.getNextEvent();	  if (isInterrupted ())	    {	      // We are interrupted when we should finish executing	      return;	    }          KeyboardFocusManager manager;          manager = KeyboardFocusManager.getCurrentKeyboardFocusManager ();          // Try to dispatch this event to the current keyboard focus          // manager.  It will dispatch all FocusEvents, all          // WindowEvents related to focus, and all KeyEvents,          // returning true.  Otherwise, it returns false and we          // dispatch the event normally.          if (!manager.dispatchEvent (evt))				queue.dispatchEvent(evt);	}        catch (ThreadDeath death)        {          // If someone wants to kill us, let them.          return;        }	catch (InterruptedException ie)	{	  // We are interrupted when we should finish executing	  return;	}	catch (Throwable x)	{				System.err.println("Exception during event dispatch:");				x.printStackTrace(System.err);			}		}	}