4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 @bug 8154043 8172509
27 @summary Fields not reachable anymore by tab-key, because of new tabbing
28 behaviour of radio button groups.
29 @run main ButtonGroupLayoutTraversalTest
30 */
31 import java.awt.BorderLayout;
32 import java.awt.Color;
33 import java.awt.GridLayout;
34 import java.awt.Robot;
35 import java.awt.event.FocusAdapter;
36 import java.awt.event.FocusEvent;
37 import java.awt.event.KeyEvent;
38 import javax.swing.JFrame;
39 import javax.swing.SwingUtilities;
40 import javax.swing.UIManager;
41 import javax.swing.JPanel;
42 import javax.swing.ButtonGroup;
43 import javax.swing.JComponent;
44 import javax.swing.JRadioButton;
45 import javax.swing.JToggleButton;
46 import javax.swing.LayoutFocusTraversalPolicy;
47 import javax.swing.UnsupportedLookAndFeelException;
48
49 public class ButtonGroupLayoutTraversalTest {
50
|
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
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 8154043 8172509
28 * @summary Fields not reachable anymore by tab-key, because of new tabbing
29 * behaviour of radio button groups.
30 * @run main ButtonGroupLayoutTraversalTest
31 */
32
33 import java.awt.BorderLayout;
34 import java.awt.Color;
35 import java.awt.GridLayout;
36 import java.awt.Robot;
37 import java.awt.event.FocusAdapter;
38 import java.awt.event.FocusEvent;
39 import java.awt.event.KeyEvent;
40 import javax.swing.JFrame;
41 import javax.swing.SwingUtilities;
42 import javax.swing.UIManager;
43 import javax.swing.JPanel;
44 import javax.swing.ButtonGroup;
45 import javax.swing.JComponent;
46 import javax.swing.JRadioButton;
47 import javax.swing.JToggleButton;
48 import javax.swing.LayoutFocusTraversalPolicy;
49 import javax.swing.UnsupportedLookAndFeelException;
50
51 public class ButtonGroupLayoutTraversalTest {
52
|