Hi,
This the fix for bug : https://bugs.openjdk.java.net/browse/JDK-6827800 Default button is activated even when it is invisible Root cause : Accepting Key press event even if the default button is invisible. Fix : In BasicRootPaneUI.java, accept key press only if the default button is being shown. Please review the webrev : http://cr.openjdk.java.net/~aghaisas/6827800/webrev.00/ Regards, Ajit