--- old/src/solaris/classes/sun/awt/X11/XChoicePeer.java 2013-06-10 21:58:42.710620300 +0400 +++ new/src/solaris/classes/sun/awt/X11/XChoicePeer.java 2013-06-10 21:58:42.487339100 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2007, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1033,15 +1033,17 @@ //fix 6252982: PIT: Keyboard FocusTraversal not working when choice's drop-down is visible, on XToolkit if (e instanceof KeyEvent){ // notify XWindow that this event had been already handled and no need to post it again - EventQueue.invokeLater(new Runnable() { - public void run() { - if(target.isFocusable() && - getParentTopLevel().isFocusableWindow() ) - { - handleJavaKeyEvent((KeyEvent)e); - } + InvocationEvent ev = new InvocationEvent(target, new Runnable() { + public void run() { + if(target.isFocusable() && + getParentTopLevel().isFocusableWindow() ) + { + handleJavaKeyEvent((KeyEvent)e); } - }); + } + }); + postEvent(ev); + return true; } else { if (e instanceof MouseEvent){ @@ -1083,11 +1085,13 @@ //convenient method //do not generate this kind of Events public boolean handleMouseEventByChoice(final MouseEvent me){ - EventQueue.invokeLater(new Runnable() { - public void run() { - handleJavaMouseEvent(me); - } - }); + InvocationEvent ev = new InvocationEvent(target, new Runnable() { + public void run() { + handleJavaMouseEvent(me); + } + }); + postEvent(ev); + return true; } --- old/src/solaris/classes/sun/awt/X11/XListPeer.java 2013-06-10 21:58:43.977707600 +0400 +++ new/src/solaris/classes/sun/awt/X11/XListPeer.java 2013-06-10 21:58:43.754427900 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1669,11 +1669,12 @@ * Do handleJavaMouseEvent on EDT */ void handleJavaMouseEventOnEDT(final MouseEvent me){ - EventQueue.invokeLater(new Runnable() { - public void run() { - handleJavaMouseEvent(me); - } - }); + InvocationEvent ev = new InvocationEvent(target, new Runnable() { + public void run() { + handleJavaMouseEvent(me); + } + }); + postEvent(ev); } /*