< prev index next >

test/java/awt/Component/PrintAllXcheckJNI/PrintAllXcheckJNI.java

Print this page

        

@@ -28,18 +28,20 @@
   @summary Component.printAll Invalid local JNI handle
   @author Dmitry Cherepanov: area=awt.component
   @run  main/othervm -Xcheck:jni PrintAllXcheckJNI
 */
 
-import java.awt.*;
+import java.awt.Frame;
+import java.awt.Graphics2D;
 import java.awt.image.BufferedImage;
 
 public class PrintAllXcheckJNI
 {
     public static void main(String []s)
     {
         Frame frame = new Frame();
+        frame.setBounds(100, 100, 100,100);
         frame.setVisible(true);
 
         BufferedImage img = new BufferedImage(frame.getWidth(),
                                               frame.getHeight(),
                                               BufferedImage.TYPE_INT_RGB);
< prev index next >