Skip to content
Permalink
Browse files
8245668: closed test javax/swing/JComboBox/4765319/bug4765319.java fa…
…ils on windows

Reviewed-by: kizune
  • Loading branch information
prsadhuk committed Jun 3, 2020
1 parent b4943a3 commit 5aea3f02503935a2f3177ba921e3d7ae4d0c91a9
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1713,7 +1713,7 @@ public boolean accept(Object c) {
return (c != null && ((JComboBox)c).isPopupVisible());
} else if (getName() == ENTER) {
JRootPane root = SwingUtilities.getRootPane((JComboBox)c);
if (root != null) {
if (root != null && (c != null && !((JComboBox)c).isPopupVisible())) {
InputMap im = root.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
ActionMap am = root.getActionMap();
if (im != null && am != null) {

0 comments on commit 5aea3f0

Please sign in to comment.