test/java/awt/Mixing/AWT_Mixing/JScrollPaneOverlapping.java

Print this page




  26 import java.awt.GridLayout;
  27 import java.awt.Point;
  28 import java.awt.Robot;
  29 import java.awt.event.AdjustmentEvent;
  30 import java.awt.event.AdjustmentListener;
  31 import javax.swing.JFrame;
  32 import javax.swing.JPanel;
  33 import javax.swing.JScrollPane;
  34 import javax.swing.SwingUtilities;
  35 import test.java.awt.regtesthelpers.Util;
  36 
  37 /**
  38  * AWT/Swing overlapping test for {@link javax.swing.JScrollPane } component.
  39  * <p>See base class for test info.
  40  */
  41 /*
  42  * @test
  43  * @key headful
  44  * @summary Overlapping test for javax.swing.JScrollPane
  45  * @author sergey.grinev@oracle.com: area=awt.mixing
  46  * @library ../../regtesthelpers
  47  * @modules java.desktop/sun.awt
  48  *          java.desktop/java.awt.peer

  49  * @build Util
  50  * @run main JScrollPaneOverlapping
  51  */
  52 public class JScrollPaneOverlapping extends OverlappingTestBase {
  53 
  54 //    {testEmbeddedFrame = true;}
  55 
  56     private boolean horizontalClicked = false;
  57     private boolean verticalClicked = false;
  58     private Point hLoc;
  59     private Point vLoc;
  60 
  61     private JFrame f;
  62     private JPanel p;
  63     private JScrollPane scrollPane;
  64 
  65     protected void prepareControls() {
  66 
  67         f = new JFrame("JScrollPane");
  68         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);




  26 import java.awt.GridLayout;
  27 import java.awt.Point;
  28 import java.awt.Robot;
  29 import java.awt.event.AdjustmentEvent;
  30 import java.awt.event.AdjustmentListener;
  31 import javax.swing.JFrame;
  32 import javax.swing.JPanel;
  33 import javax.swing.JScrollPane;
  34 import javax.swing.SwingUtilities;
  35 import test.java.awt.regtesthelpers.Util;
  36 
  37 /**
  38  * AWT/Swing overlapping test for {@link javax.swing.JScrollPane } component.
  39  * <p>See base class for test info.
  40  */
  41 /*
  42  * @test
  43  * @key headful
  44  * @summary Overlapping test for javax.swing.JScrollPane
  45  * @author sergey.grinev@oracle.com: area=awt.mixing
  46  * @library /java/awt/patchlib  ../../regtesthelpers
  47  * @modules java.desktop/sun.awt
  48  *          java.desktop/java.awt.peer
  49  * @build java.desktop/java.awt.Helper
  50  * @build Util
  51  * @run main JScrollPaneOverlapping
  52  */
  53 public class JScrollPaneOverlapping extends OverlappingTestBase {
  54 
  55 //    {testEmbeddedFrame = true;}
  56 
  57     private boolean horizontalClicked = false;
  58     private boolean verticalClicked = false;
  59     private Point hLoc;
  60     private Point vLoc;
  61 
  62     private JFrame f;
  63     private JPanel p;
  64     private JScrollPane scrollPane;
  65 
  66     protected void prepareControls() {
  67 
  68         f = new JFrame("JScrollPane");
  69         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);