jdk/src/share/classes/java/awt/Window.java

Print this page
rev 5693 : 7192977: Issue in toolkit thread
Reviewed-by: skoivu, rupashka, art

*** 1204,1214 **** if (EventQueue.isDispatchThread()) { action.run(); } else { try { ! EventQueue.invokeAndWait(action); } catch (InterruptedException e) { System.err.println("Disposal was interrupted:"); e.printStackTrace(); } --- 1204,1214 ---- if (EventQueue.isDispatchThread()) { action.run(); } else { try { ! EventQueue.invokeAndWait(this, action); } catch (InterruptedException e) { System.err.println("Disposal was interrupted:"); e.printStackTrace(); }