test/java/awt/Mixing/AWT_Mixing/JScrollPaneOverlapping.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 import java.awt.Dimension;
  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 
  36 /**
  37  * AWT/Swing overlapping test for {@link javax.swing.JScrollPane } component.
  38  * <p>See base class for test info.
  39  */
  40 /*
  41 @test
  42 @summary Overlapping test for javax.swing.JScrollPane
  43 @author sergey.grinev@oracle.com: area=awt.mixing


  44 @run main JScrollPaneOverlapping
  45  */
  46 public class JScrollPaneOverlapping extends OverlappingTestBase {
  47 
  48 //    {testEmbeddedFrame = true;}
  49 
  50     private boolean horizontalClicked = false;
  51     private boolean verticalClicked = false;
  52     private Point hLoc;
  53     private Point vLoc;
  54 
  55     private JFrame f;
  56     private JPanel p;
  57     private JScrollPane scrollPane;
  58 
  59     protected void prepareControls() {
  60 
  61         f = new JFrame("JScrollPane");
  62         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  63         f.setSize(120, 120);




  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 import java.awt.Dimension;
  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 @summary Overlapping test for javax.swing.JScrollPane
  44 @author sergey.grinev@oracle.com: area=awt.mixing
  45 @library ../../regtesthelpers
  46 @build Util
  47 @run main JScrollPaneOverlapping
  48  */
  49 public class JScrollPaneOverlapping extends OverlappingTestBase {
  50 
  51 //    {testEmbeddedFrame = true;}
  52 
  53     private boolean horizontalClicked = false;
  54     private boolean verticalClicked = false;
  55     private Point hLoc;
  56     private Point vLoc;
  57 
  58     private JFrame f;
  59     private JPanel p;
  60     private JScrollPane scrollPane;
  61 
  62     protected void prepareControls() {
  63 
  64         f = new JFrame("JScrollPane");
  65         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  66         f.setSize(120, 120);