< prev index next >

test/jdk/java/awt/event/KeyEvent/ExtendedModifiersTest/ExtendedModifiersTest.java

Print this page




  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 /*
  26  * @test
  27  * @key headful
  28  * @bug 8043126 8145116
  29  * @summary Check whether
  30  *          1. correct extended modifiers are returned
  31  *             by KeyEvent.getModifiersEx()
  32  *          2. InputEvent.getModifiersExText() returns
  33  *             correct extended modifier keys description
  34  *
  35  * @library /lib/testlibrary/ ../../helpers/lwcomponents/
  36  * @library /test/lib
  37  * @build LWComponent
  38  * @build LWButton
  39  * @build LWList
  40  * @build ExtendedRobot
  41  * @run main/timeout=600 ExtendedModifiersTest
  42  */
  43 import java.awt.Button;
  44 import java.awt.Color;
  45 import java.awt.Component;
  46 import java.awt.EventQueue;
  47 import java.awt.Frame;
  48 import java.awt.GridLayout;
  49 import java.awt.List;
  50 import java.awt.Point;
  51 import java.awt.TextArea;
  52 import java.awt.TextField;
  53 import java.awt.event.InputEvent;
  54 import java.awt.event.KeyEvent;
  55 import java.awt.event.KeyListener;




  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 /*
  26  * @test
  27  * @key headful
  28  * @bug 8043126 8145116
  29  * @summary Check whether
  30  *          1. correct extended modifiers are returned
  31  *             by KeyEvent.getModifiersEx()
  32  *          2. InputEvent.getModifiersExText() returns
  33  *             correct extended modifier keys description
  34  *
  35  * @library /lib/client/ ../../helpers/lwcomponents/
  36  * @library /test/lib
  37  * @build LWComponent
  38  * @build LWButton
  39  * @build LWList
  40  * @build ExtendedRobot
  41  * @run main/timeout=600 ExtendedModifiersTest
  42  */
  43 import java.awt.Button;
  44 import java.awt.Color;
  45 import java.awt.Component;
  46 import java.awt.EventQueue;
  47 import java.awt.Frame;
  48 import java.awt.GridLayout;
  49 import java.awt.List;
  50 import java.awt.Point;
  51 import java.awt.TextArea;
  52 import java.awt.TextField;
  53 import java.awt.event.InputEvent;
  54 import java.awt.event.KeyEvent;
  55 import java.awt.event.KeyListener;


< prev index next >