< prev index next >

test/java/awt/Focus/TypeAhead/TestFocusFreeze.java

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


   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        6183877 6216005 6225560
  27    @library    ../../regtesthelpers
  28    @build      Util
  29    @summary    Tests that keyboard input doesn't freeze due to type-ahead problems
  30    @author     Denis.Mikhalkin, Anton.Tarasov: area=awt.focus
  31    @run        main TestFocusFreeze
  32 */

  33 
  34 import java.awt.Component;
  35 import java.awt.DefaultKeyboardFocusManager;
  36 import java.awt.KeyboardFocusManager;
  37 import java.awt.Robot;
  38 import java.awt.event.ActionEvent;
  39 import java.awt.event.ActionListener;
  40 import java.awt.event.KeyEvent;
  41 import java.util.concurrent.atomic.AtomicBoolean;
  42 import javax.swing.JButton;
  43 import javax.swing.JDialog;
  44 import javax.swing.JFrame;
  45 import test.java.awt.regtesthelpers.Util;
  46 
  47 public class TestFocusFreeze {
  48     private static JFrame frame;
  49     private static JDialog dialog;
  50     private static JButton dlgButton;
  51     private static JButton frameButton;
  52     private static AtomicBoolean lock = new AtomicBoolean(false);




   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        6183877 6216005 6225560
  28  * @library    ../../regtesthelpers
  29  * @build      Util
  30  * @summary    Tests that keyboard input doesn't freeze due to type-ahead problems
  31  * @author     Denis.Mikhalkin, Anton.Tarasov: area=awt.focus
  32  * @run        main TestFocusFreeze
  33  */
  34 
  35 import java.awt.Component;
  36 import java.awt.DefaultKeyboardFocusManager;
  37 import java.awt.KeyboardFocusManager;
  38 import java.awt.Robot;
  39 import java.awt.event.ActionEvent;
  40 import java.awt.event.ActionListener;
  41 import java.awt.event.KeyEvent;
  42 import java.util.concurrent.atomic.AtomicBoolean;
  43 import javax.swing.JButton;
  44 import javax.swing.JDialog;
  45 import javax.swing.JFrame;
  46 import test.java.awt.regtesthelpers.Util;
  47 
  48 public class TestFocusFreeze {
  49     private static JFrame frame;
  50     private static JDialog dialog;
  51     private static JButton dlgButton;
  52     private static JButton frameButton;
  53     private static AtomicBoolean lock = new AtomicBoolean(false);


< prev index next >