13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
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 /*
25 @test
26 @key headful
27 @bug 4199622
28 @requires (os.family == "windows")
29 @summary RFE: JComboBox shouldn't send ActionEvents for keyboard navigation
30 @author Vladislav Karnaukhov
31 @library /test/lib
32 @modules java.desktop/com.sun.java.swing.plaf.windows
33 @build jdk.test.libr.Platform
34 @run main bug4199622
35 */
36
37 import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
38 import jdk.test.lib.Platform;
39
40 import javax.swing.*;
41 import javax.swing.plaf.metal.MetalLookAndFeel;
42 import java.awt.*;
43 import java.awt.event.ActionEvent;
44 import java.awt.event.ActionListener;
45 import java.awt.event.KeyEvent;
46 import java.lang.reflect.InvocationTargetException;
47
48 public class bug4199622 extends JFrame implements ActionListener {
49
50 static final int nElems = 20;
51 static JComboBox<String> cb = null;
52
53 bug4199622(LookAndFeel laf) {
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
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 /*
25 @test
26 @key headful
27 @bug 4199622
28 @requires (os.family == "windows")
29 @summary RFE: JComboBox shouldn't send ActionEvents for keyboard navigation
30 @author Vladislav Karnaukhov
31 @library /test/lib
32 @modules java.desktop/com.sun.java.swing.plaf.windows
33 @build jdk.test.lib.Platform
34 @run main bug4199622
35 */
36
37 import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
38 import jdk.test.lib.Platform;
39
40 import javax.swing.*;
41 import javax.swing.plaf.metal.MetalLookAndFeel;
42 import java.awt.*;
43 import java.awt.event.ActionEvent;
44 import java.awt.event.ActionListener;
45 import java.awt.event.KeyEvent;
46 import java.lang.reflect.InvocationTargetException;
47
48 public class bug4199622 extends JFrame implements ActionListener {
49
50 static final int nElems = 20;
51 static JComboBox<String> cb = null;
52
53 bug4199622(LookAndFeel laf) {
|