7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 /*
26 * @test
27 * @bug 4917669
28 * @summary 1.4 REGRESSION: MenuItem accelerator doesn't work if parent menu is in JDialog
29 * @author Alexander Zuev
30 * @library ../../regtesthelpers
31 * @run main bug4917669
32 */
33
34 import javax.swing.*;
35 import java.awt.event.*;
36 import java.awt.*;
37 import sun.awt.SunToolkit;
38
39 public class bug4917669 {
40
41 private static volatile boolean passed = false;
42 private static JFrame mainFrame;
43
44 public static void main(String[] args) throws Exception {
45 SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
46 Robot robot = new Robot();
|
7 * under the terms of the GNU General Public License version 2 only, as
8 * published by the Free Software Foundation.
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 /*
26 * @test
27 * @key headful
28 * @bug 4917669
29 * @summary 1.4 REGRESSION: MenuItem accelerator doesn't work if parent menu is in JDialog
30 * @author Alexander Zuev
31 * @library ../../regtesthelpers
32 * @run main bug4917669
33 */
34
35 import javax.swing.*;
36 import java.awt.event.*;
37 import java.awt.*;
38 import sun.awt.SunToolkit;
39
40 public class bug4917669 {
41
42 private static volatile boolean passed = false;
43 private static JFrame mainFrame;
44
45 public static void main(String[] args) throws Exception {
46 SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit();
47 Robot robot = new Robot();
|