8078855: [TEST_BUG] javax/swing/JComboBox/8032878/bug8032878.java fails in WindowsClassicLookAndFeel
authorpchopra
Fri, 22 May 2015 17:30:21 +0300
changeset 30785 e0e92b4448a4
parent 30784 28105f71beb2
child 30786 fb0d6aaea1dc
8078855: [TEST_BUG] javax/swing/JComboBox/8032878/bug8032878.java fails in WindowsClassicLookAndFeel Reviewed-by: alexsch, aivanov
jdk/test/javax/swing/JComboBox/8032878/bug8032878.java
--- a/jdk/test/javax/swing/JComboBox/8032878/bug8032878.java	Fri May 22 10:12:18 2015 -0400
+++ b/jdk/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);