21 * questions.
22 */
23
24 import java.awt.AWTException;
25 import java.awt.Dimension;
26 import java.awt.Point;
27 import java.awt.Rectangle;
28 import java.awt.Robot;
29 import javax.swing.Box;
30 import javax.swing.BoxLayout;
31 import javax.swing.JComboBox;
32 import javax.swing.JFrame;
33 import javax.swing.JPanel;
34 import javax.swing.JScrollPane;
35 import javax.swing.SwingUtilities;
36 import javax.swing.UIManager;
37 import javax.swing.UIManager.LookAndFeelInfo;
38 import javax.swing.UnsupportedLookAndFeelException;
39 import javax.swing.WindowConstants;
40
41 /* @test
42 * @bug 8136998
43 * @summary Checks that JComboBox does not prevent mouse-wheel scrolling JScrollPane.
44 * @library ../../regtesthelpers
45 * @build Util
46 * @run main bug8136998
47 * @author Alexey Ivanov
48 */
49 public class bug8136998 {
50
51 private static final String[] ITEMS = new String[] {
52 "A", "B", "C", "D", "E", "F"
53 };
54
55 private final Robot robot;
56
57 private JFrame frame;
58 private JComboBox comboBox;
59 private JScrollPane scrollPane;
60
61 public static void main(String[] args) throws Exception {
|
21 * questions.
22 */
23
24 import java.awt.AWTException;
25 import java.awt.Dimension;
26 import java.awt.Point;
27 import java.awt.Rectangle;
28 import java.awt.Robot;
29 import javax.swing.Box;
30 import javax.swing.BoxLayout;
31 import javax.swing.JComboBox;
32 import javax.swing.JFrame;
33 import javax.swing.JPanel;
34 import javax.swing.JScrollPane;
35 import javax.swing.SwingUtilities;
36 import javax.swing.UIManager;
37 import javax.swing.UIManager.LookAndFeelInfo;
38 import javax.swing.UnsupportedLookAndFeelException;
39 import javax.swing.WindowConstants;
40
41 /*
42 * @test
43 * @key headful
44 * @bug 8136998
45 * @summary Checks that JComboBox does not prevent mouse-wheel scrolling JScrollPane.
46 * @library ../../regtesthelpers
47 * @build Util
48 * @run main bug8136998
49 * @author Alexey Ivanov
50 */
51 public class bug8136998 {
52
53 private static final String[] ITEMS = new String[] {
54 "A", "B", "C", "D", "E", "F"
55 };
56
57 private final Robot robot;
58
59 private JFrame frame;
60 private JComboBox comboBox;
61 private JScrollPane scrollPane;
62
63 public static void main(String[] args) throws Exception {
|