< prev index next >

test/javax/swing/JInternalFrame/8069348/bug8069348.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


  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 import java.awt.BorderLayout;
  25 import java.awt.Color;
  26 import java.awt.Graphics;
  27 import java.awt.Rectangle;
  28 import java.awt.Robot;
  29 import java.awt.event.InputEvent;
  30 import javax.swing.JDesktopPane;
  31 import javax.swing.JFrame;
  32 import javax.swing.JInternalFrame;
  33 import javax.swing.JPanel;
  34 import javax.swing.SwingUtilities;
  35 import static sun.awt.OSInfo.*;
  36 
  37 /**
  38  * @test

  39  * @bug 8069348
  40  * @summary SunGraphics2D.copyArea() does not properly work for scaled graphics
  41  * @author Alexandr Scherbatiy
  42  * @modules java.desktop/sun.awt
  43  * @run main/othervm -Dsun.java2d.uiScale=2 bug8069348
  44  * @run main/othervm -Dsun.java2d.opengl=true -Dsun.java2d.uiScale=2 bug8069348
  45  * @run main/othervm -Dsun.java2d.d3d=true -Dsun.java2d.uiScale=2 bug8069348
  46  */
  47 public class bug8069348 {
  48 
  49     private static final int WIN_WIDTH = 500;
  50     private static final int WIN_HEIGHT = 500;
  51 
  52     private static final Color DESKTOPPANE_COLOR = Color.YELLOW;
  53     private static final Color FRAME_COLOR = Color.ORANGE;
  54 
  55     private static JFrame frame;
  56     private static JInternalFrame internalFrame;
  57 
  58     public static void main(String[] args) throws Exception {




  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 import java.awt.BorderLayout;
  25 import java.awt.Color;
  26 import java.awt.Graphics;
  27 import java.awt.Rectangle;
  28 import java.awt.Robot;
  29 import java.awt.event.InputEvent;
  30 import javax.swing.JDesktopPane;
  31 import javax.swing.JFrame;
  32 import javax.swing.JInternalFrame;
  33 import javax.swing.JPanel;
  34 import javax.swing.SwingUtilities;
  35 import static sun.awt.OSInfo.*;
  36 
  37 /**
  38  * @test
  39  * @key headful
  40  * @bug 8069348
  41  * @summary SunGraphics2D.copyArea() does not properly work for scaled graphics
  42  * @author Alexandr Scherbatiy
  43  * @modules java.desktop/sun.awt
  44  * @run main/othervm -Dsun.java2d.uiScale=2 bug8069348
  45  * @run main/othervm -Dsun.java2d.opengl=true -Dsun.java2d.uiScale=2 bug8069348
  46  * @run main/othervm -Dsun.java2d.d3d=true -Dsun.java2d.uiScale=2 bug8069348
  47  */
  48 public class bug8069348 {
  49 
  50     private static final int WIN_WIDTH = 500;
  51     private static final int WIN_HEIGHT = 500;
  52 
  53     private static final Color DESKTOPPANE_COLOR = Color.YELLOW;
  54     private static final Color FRAME_COLOR = Color.ORANGE;
  55 
  56     private static JFrame frame;
  57     private static JInternalFrame internalFrame;
  58 
  59     public static void main(String[] args) throws Exception {


< prev index next >