< prev index next >

test/java/awt/datatransfer/ImageTransfer/ImageTransferTest.java

Print this page
rev 14836 : 8159690: [TESTBUG] Mark headful tests with @key headful.
   1 /*
   2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   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.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 import java.awt.*;
  27 import java.awt.datatransfer.*;
  28 import java.awt.image.BufferedImage;
  29 import java.io.IOException;
  30 import java.util.Vector;
  31 
  32 /*
  33  * @test

  34  * @summary To check Whether java.awt.Image can be transferred through the
  35  *          system clipboard
  36  * @author Jitender(jitender.singh@eng.sun.com) area=AWT
  37  * @author dmitriy.ermashov@oracle.com
  38  * @library ../../../../lib/testlibrary
  39  * @build ExtendedRobot
  40  * @run main ImageTransferTest
  41  */
  42 
  43 public class ImageTransferTest  {
  44 
  45     TestFrame frame1, frame2;
  46     Image image1, image2;
  47     DataFlavor imageFlavor;
  48 
  49     public static void main(String[] args) throws Exception {
  50         new ImageTransferTest().doTest();
  51     }
  52 
  53     class TestFrame extends Frame {


   1 /*
   2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   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.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 import java.awt.*;
  27 import java.awt.datatransfer.*;
  28 import java.awt.image.BufferedImage;
  29 import java.io.IOException;
  30 import java.util.Vector;
  31 
  32 /*
  33  * @test
  34  * @key headful
  35  * @summary To check Whether java.awt.Image can be transferred through the
  36  *          system clipboard
  37  * @author Jitender(jitender.singh@eng.sun.com) area=AWT
  38  * @author dmitriy.ermashov@oracle.com
  39  * @library ../../../../lib/testlibrary
  40  * @build ExtendedRobot
  41  * @run main ImageTransferTest
  42  */
  43 
  44 public class ImageTransferTest  {
  45 
  46     TestFrame frame1, frame2;
  47     Image image1, image2;
  48     DataFlavor imageFlavor;
  49 
  50     public static void main(String[] args) throws Exception {
  51         new ImageTransferTest().doTest();
  52     }
  53 
  54     class TestFrame extends Frame {


< prev index next >