< prev index next >

test/javax/swing/SwingUtilities/4917669/bug4917669.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


   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 
  38 public class bug4917669 {
  39 
  40     private static volatile boolean passed = false;
  41     private static JFrame mainFrame;
  42 
  43     public static void main(String[] args) throws Exception {
  44         Robot robot = new Robot();
  45         robot.setAutoDelay(500);
  46 




   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 
  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         Robot robot = new Robot();
  46         robot.setAutoDelay(500);
  47 


< prev index next >