< prev index next >

test/javax/swing/JComboBox/8033069/bug8033069NoScrollBar.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.awt.AWTException;
  25 import java.awt.Dimension;
  26 import java.awt.GridLayout;
  27 import java.awt.Point;
  28 import java.awt.Robot;
  29 import java.awt.event.InputEvent;
  30 import javax.swing.JComboBox;
  31 import javax.swing.JFrame;
  32 import javax.swing.JPanel;
  33 import javax.swing.SwingUtilities;
  34 import javax.swing.UIManager;
  35 import javax.swing.UIManager.LookAndFeelInfo;
  36 import javax.swing.UnsupportedLookAndFeelException;
  37 
  38 /* @test


  39  * @bug 8033069
  40  * @summary Checks that JComboBox popup does not close when mouse wheel is
  41  *          rotated over combo box and over its popup. The case where popup
  42  *          has no scroll bar.
  43  * @library ../../regtesthelpers
  44  * @build Util
  45  * @run main bug8033069NoScrollBar
  46  * @author Alexey Ivanov
  47  */
  48 public class bug8033069NoScrollBar implements Runnable {
  49 
  50     private static final String[] NO_SCROLL_ITEMS = new String[] {
  51         "A", "B", "C", "D", "E", "F"
  52     };
  53 
  54     private final Robot robot;
  55 
  56     private final String[] items;
  57 
  58     private JFrame frame;




  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.awt.AWTException;
  25 import java.awt.Dimension;
  26 import java.awt.GridLayout;
  27 import java.awt.Point;
  28 import java.awt.Robot;
  29 import java.awt.event.InputEvent;
  30 import javax.swing.JComboBox;
  31 import javax.swing.JFrame;
  32 import javax.swing.JPanel;
  33 import javax.swing.SwingUtilities;
  34 import javax.swing.UIManager;
  35 import javax.swing.UIManager.LookAndFeelInfo;
  36 import javax.swing.UnsupportedLookAndFeelException;
  37 
  38 /*
  39  * @test
  40  * @key headful
  41  * @bug 8033069
  42  * @summary Checks that JComboBox popup does not close when mouse wheel is
  43  *          rotated over combo box and over its popup. The case where popup
  44  *          has no scroll bar.
  45  * @library ../../regtesthelpers
  46  * @build Util
  47  * @run main bug8033069NoScrollBar
  48  * @author Alexey Ivanov
  49  */
  50 public class bug8033069NoScrollBar implements Runnable {
  51 
  52     private static final String[] NO_SCROLL_ITEMS = new String[] {
  53         "A", "B", "C", "D", "E", "F"
  54     };
  55 
  56     private final Robot robot;
  57 
  58     private final String[] items;
  59 
  60     private JFrame frame;


< prev index next >