changeset 14472:a6258600dfe0

8078855: [TEST_BUG] javax/swing/JComboBox/8032878/bug8032878.java fails in WindowsClassicLookAndFeel Reviewed-by: alexsch, aivanov
author pchopra
date Fri, 22 May 2015 17:30:21 +0300
parents 68d30424a687
children 18b7da5618f5
files test/javax/swing/JComboBox/8032878/bug8032878.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);