< prev index next >

test/javax/swing/JMenu/4213634/bug4213634.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.Robot;
  26 import java.awt.event.ActionEvent;
  27 import java.awt.event.ActionListener;
  28 import java.awt.event.KeyEvent;
  29 import java.lang.reflect.InvocationTargetException;
  30 import javax.swing.JButton;
  31 import javax.swing.JFrame;
  32 import javax.swing.JMenu;
  33 import javax.swing.JMenuBar;
  34 import javax.swing.JMenuItem;
  35 import javax.swing.JTextArea;
  36 import javax.swing.SwingUtilities;
  37 
  38 /* @test


  39  * @bug 4213634 8017187
  40  * @author Scott Violet
  41  * @library ../../regtesthelpers
  42  * @build Util
  43  * @run main bug4213634
  44  */
  45 
  46 
  47 public class bug4213634 {
  48 
  49     private JMenu menu;
  50 
  51     private JFrame frame;
  52 
  53     public static void main(String[] args) throws Throwable {
  54         new bug4213634();
  55     }
  56 
  57     bug4213634() throws AWTException, InterruptedException, InvocationTargetException {
  58         SwingUtilities.invokeAndWait(new Runnable() {




  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.Robot;
  26 import java.awt.event.ActionEvent;
  27 import java.awt.event.ActionListener;
  28 import java.awt.event.KeyEvent;
  29 import java.lang.reflect.InvocationTargetException;
  30 import javax.swing.JButton;
  31 import javax.swing.JFrame;
  32 import javax.swing.JMenu;
  33 import javax.swing.JMenuBar;
  34 import javax.swing.JMenuItem;
  35 import javax.swing.JTextArea;
  36 import javax.swing.SwingUtilities;
  37 
  38 /*
  39  * @test
  40  * @key headful
  41  * @bug 4213634 8017187
  42  * @author Scott Violet
  43  * @library ../../regtesthelpers
  44  * @build Util
  45  * @run main bug4213634
  46  */
  47 
  48 
  49 public class bug4213634 {
  50 
  51     private JMenu menu;
  52 
  53     private JFrame frame;
  54 
  55     public static void main(String[] args) throws Throwable {
  56         new bug4213634();
  57     }
  58 
  59     bug4213634() throws AWTException, InterruptedException, InvocationTargetException {
  60         SwingUtilities.invokeAndWait(new Runnable() {


< prev index next >