# HG changeset patch # User pchopra # Date 1432305021 -10800 # Node ID a6258600dfe037ac359567660d8a12710490fdb3 # Parent 68d30424a687a7f9ab19b9366c65ff8c639525d8 8078855: [TEST_BUG] javax/swing/JComboBox/8032878/bug8032878.java fails in WindowsClassicLookAndFeel Reviewed-by: alexsch, aivanov diff -r 68d30424a687 -r a6258600dfe0 test/javax/swing/JComboBox/8032878/bug8032878.java --- a/test/javax/swing/JComboBox/8032878/bug8032878.java Wed May 26 12:00:45 2021 +0300 +++ b/test/javax/swing/JComboBox/8032878/bug8032878.java Fri May 22 17:30:21 2015 +0300 @@ -22,7 +22,7 @@ */ /* @test - * @bug 8032878 + * @bug 8032878 8078855 * @summary Checks that JComboBox as JTable cell editor processes key events * even where setSurrendersFocusOnKeystroke flag in JTable is false and * that it does not lose the first key press where the flag is true. @@ -36,6 +36,7 @@ import java.awt.event.KeyEvent; import javax.swing.*; import javax.swing.text.JTextComponent; +import javax.swing.plaf.metal.MetalLookAndFeel; public class bug8032878 implements Runnable { private static final String ONE = "one"; @@ -53,6 +54,8 @@ private volatile String text; public static void main(String[] args) throws Exception { + UIManager.setLookAndFeel(new MetalLookAndFeel()); + final bug8032878 test = new bug8032878(); test.test(false);