< prev index next >

test/javax/swing/JOptionPane/6428694/bug6428694.java

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


   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 @test
  25 @bug 6428694
  26 @summary Checks that double click closes JOptionPane's input dialog.
  27 @library ../../../../lib/testlibrary
  28 @build ExtendedRobot
  29 @author Mikhail Lapshin
  30 @run main bug6428694

  31 */
  32 
  33 import javax.swing.JFrame;
  34 import javax.swing.SwingUtilities;
  35 import javax.swing.JOptionPane;
  36 import java.awt.*;
  37 import java.awt.event.InputEvent;
  38 
  39 public class bug6428694 {
  40     private static JFrame frame;
  41     private static boolean mainIsWaitingForDialogClosing;
  42     private static ExtendedRobot robot;
  43     private static volatile boolean testPassed;
  44 
  45     public static void main(String[] args) throws Exception {
  46         robot = new ExtendedRobot();
  47         try {
  48             SwingUtilities.invokeLater(new Runnable() {
  49                 public void run() {
  50                     bug6428694.setupUI();




   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  * @test
  25  * @key headful
  26  * @bug 6428694
  27  * @summary Checks that double click closes JOptionPane's input dialog.
  28  * @library ../../../../lib/testlibrary
  29  * @build ExtendedRobot
  30  * @author Mikhail Lapshin
  31  * @run main bug6428694
  32 */
  33 
  34 import javax.swing.JFrame;
  35 import javax.swing.SwingUtilities;
  36 import javax.swing.JOptionPane;
  37 import java.awt.*;
  38 import java.awt.event.InputEvent;
  39 
  40 public class bug6428694 {
  41     private static JFrame frame;
  42     private static boolean mainIsWaitingForDialogClosing;
  43     private static ExtendedRobot robot;
  44     private static volatile boolean testPassed;
  45 
  46     public static void main(String[] args) throws Exception {
  47         robot = new ExtendedRobot();
  48         try {
  49             SwingUtilities.invokeLater(new Runnable() {
  50                 public void run() {
  51                     bug6428694.setupUI();


< prev index next >