test/java/awt/Mixing/AWT_Mixing/OpaqueOverlapping.java

Print this page




  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 import com.sun.awt.AWTUtilities;
  26 import java.awt.Frame;
  27 import java.awt.Panel;
  28 import java.awt.Point;
  29 import java.awt.Rectangle;
  30 import java.awt.Robot;
  31 import java.awt.event.InputEvent;
  32 import java.awt.event.MouseAdapter;
  33 import java.awt.event.MouseEvent;
  34 import javax.swing.JButton;
  35 import javax.swing.SwingUtilities;

  36 
  37 /**
  38  * AWT/Swing overlapping test for opaque Swing components.
  39  * <p>This test verify if AWT components are drawn correctly under opaque components.
  40  * <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6776743">JDK-6776743</a> for details
  41  * <p>See base class for test info.
  42  */
  43 /*
  44 @test
  45 @bug 6776743
  46 @summary Opaque overlapping test for each AWT component


  47 @run main OpaqueOverlapping
  48  */
  49 public class OpaqueOverlapping extends OverlappingTestBase {
  50 
  51     {
  52         useClickValidation = false;
  53         failMessage = "Opacity test mismatchs";
  54 
  55         // CR 6994264 (Choice autohides dropdown on Solaris 10)
  56         skipClassNames = new String[] { "Choice" };
  57     }
  58     private String testSeq;
  59     private final static String checkSeq = "010000101";
  60     private Point heavyLoc;
  61     private JButton light;
  62     private Frame frame = null;
  63 
  64     protected void prepareControls() {
  65         testSeq = "";
  66         // Create components




  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 import com.sun.awt.AWTUtilities;
  26 import java.awt.Frame;
  27 import java.awt.Panel;
  28 import java.awt.Point;
  29 import java.awt.Rectangle;
  30 import java.awt.Robot;
  31 import java.awt.event.InputEvent;
  32 import java.awt.event.MouseAdapter;
  33 import java.awt.event.MouseEvent;
  34 import javax.swing.JButton;
  35 import javax.swing.SwingUtilities;
  36 import test.java.awt.regtesthelpers.Util;
  37 
  38 /**
  39  * AWT/Swing overlapping test for opaque Swing components.
  40  * <p>This test verify if AWT components are drawn correctly under opaque components.
  41  * <p>See <a href="https://bugs.openjdk.java.net/browse/JDK-6776743">JDK-6776743</a> for details
  42  * <p>See base class for test info.
  43  */
  44 /*
  45 @test
  46 @bug 6776743
  47 @summary Opaque overlapping test for each AWT component
  48 @library ../../regtesthelpers
  49 @build Util
  50 @run main OpaqueOverlapping
  51  */
  52 public class OpaqueOverlapping extends OverlappingTestBase {
  53 
  54     {
  55         useClickValidation = false;
  56         failMessage = "Opacity test mismatchs";
  57 
  58         // CR 6994264 (Choice autohides dropdown on Solaris 10)
  59         skipClassNames = new String[] { "Choice" };
  60     }
  61     private String testSeq;
  62     private final static String checkSeq = "010000101";
  63     private Point heavyLoc;
  64     private JButton light;
  65     private Frame frame = null;
  66 
  67     protected void prepareControls() {
  68         testSeq = "";
  69         // Create components