test/java/awt/FullScreen/TranslucentWindow/TranslucentWindow.java

Print this page

        

@@ -40,10 +40,11 @@
     public static void main(String args[]) {
         GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
         GraphicsDevice gd = ge.getDefaultScreenDevice();
 
         Frame f = new Frame("Test frame");
+        f.setUndecorated(true);
         f.setBounds(100, 100, 320, 240);
 
         // First, check it can be made fullscreen window without any effects applied
         gd.setFullScreenWindow(f);
         ((SunToolkit)Toolkit.getDefaultToolkit()).realSync();