< prev index next >

test/jdk/java/awt/Mixing/AWT_Mixing/MixingFrameResizing.java

Print this page




  22  */
  23 
  24 import java.awt.Color;
  25 import java.awt.Dimension;
  26 import java.awt.Point;
  27 import java.awt.Robot;
  28 import java.awt.event.InputEvent;
  29 import javax.swing.JFrame;
  30 import javax.swing.SpringLayout;
  31 import javax.swing.SwingUtilities;
  32 import test.java.awt.regtesthelpers.Util;
  33 
  34 /**
  35  * AWT/Swing overlapping test.
  36  * <p>This test puts heavyweight component into JFrame and verifies that it's being drawn correctly after resizing the frame.
  37  * <p>See base class for test info.
  38  */
  39 /*
  40  * @test
  41  * @key headful
  42  * @bug 6777370
  43  * @summary Issues when resizing the JFrame with HW components
  44  * @author sergey.grinev@oracle.com: area=awt.mixing
  45  * @library /java/awt/patchlib  ../../regtesthelpers
  46  * @modules java.desktop/sun.awt
  47  *          java.desktop/java.awt.peer
  48  * @build java.desktop/java.awt.Helper
  49  * @build Util
  50  * @run main MixingFrameResizing
  51  */
  52 public class MixingFrameResizing extends OverlappingTestBase {
  53 
  54     {testEmbeddedFrame = true;}
  55 
  56     private JFrame frame = null;
  57     private Point lLoc;
  58     private Point lLoc2;
  59     private Dimension size;
  60 
  61     protected void prepareControls() {
  62         if(frame != null) {




  22  */
  23 
  24 import java.awt.Color;
  25 import java.awt.Dimension;
  26 import java.awt.Point;
  27 import java.awt.Robot;
  28 import java.awt.event.InputEvent;
  29 import javax.swing.JFrame;
  30 import javax.swing.SpringLayout;
  31 import javax.swing.SwingUtilities;
  32 import test.java.awt.regtesthelpers.Util;
  33 
  34 /**
  35  * AWT/Swing overlapping test.
  36  * <p>This test puts heavyweight component into JFrame and verifies that it's being drawn correctly after resizing the frame.
  37  * <p>See base class for test info.
  38  */
  39 /*
  40  * @test
  41  * @key headful
  42  * @bug 6777370 8221823
  43  * @summary Issues when resizing the JFrame with HW components
  44  * @author sergey.grinev@oracle.com: area=awt.mixing
  45  * @library /java/awt/patchlib  ../../regtesthelpers
  46  * @modules java.desktop/sun.awt
  47  *          java.desktop/java.awt.peer
  48  * @build java.desktop/java.awt.Helper
  49  * @build Util
  50  * @run main MixingFrameResizing
  51  */
  52 public class MixingFrameResizing extends OverlappingTestBase {
  53 
  54     {testEmbeddedFrame = true;}
  55 
  56     private JFrame frame = null;
  57     private Point lLoc;
  58     private Point lLoc2;
  59     private Dimension size;
  60 
  61     protected void prepareControls() {
  62         if(frame != null) {


< prev index next >