title: AWT components in fullscreen exclusive mode
body: <p>I'm able to use fullscreen exclusive mode with normal Swing components, but for some reason when I use AWT components I only see a black screen in fullscreen mode. Under Windows7, if I switch away from the window (ALT-TAB) I see that the window preview/thumbnail renders correctly. Upon switching back into the application I get a black screen again.</p>
  
  <p>Here is my test-case:</p>
  
  <pre><code>import java.awt.Canvas;
  import java.awt.Color;
  import java.awt.EventQueue;
  import java.awt.GraphicsDevice;
  import java.awt.GraphicsEnvironment;
  import javax.swing.JFrame;
  
  public class TestMain
  {
    public static void main(String[] arg)
    {
      EventQueue.invokeLater(new Runnable()
      {
        @Override
        public void run()
        {
          final GraphicsDevice screen = GraphicsEnvironment.getLocalGraphicsEnvironment().
            getDefaultScreenDevice();
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
          frame.getContentPane().setBackground(Color.BLUE);
          frame.getContentPane().setLayout(null);
          frame.setUndecorated(true);
  
          Canvas canvas = new Canvas();
          canvas.setBackground(Color.RED);
          canvas.setBounds(10, 10, 100, 100);
          frame.getContentPane().add(canvas);
  
          System.out.println("isFullscreenSupported=" + screen.isFullScreenSupported());
          screen.setFullScreenWindow(frame);
        }
      });
    }
  }
  </code></pre>
  
  <p>I am running Java 1.6.0_23 under Windows7 Professional 64-bit. My video card is an ATI Radeon HD 4600. Is there something wrong with my code? My video card? The JDK itself?</p>