2362N/A * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 430N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 430N/A * This code is free software; you can redistribute it and/or modify it 430N/A * under the terms of the GNU General Public License version 2 only, as 430N/A * published by the Free Software Foundation. 430N/A * This code is distributed in the hope that it will be useful, but WITHOUT 430N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 430N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 430N/A * version 2 for more details (a copy is included in the LICENSE file that 430N/A * accompanied this code). 430N/A * You should have received a copy of the GNU General Public License version 430N/A * 2 along with this work; if not, write to the Free Software Foundation, 430N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 430N/A * @summary Here are a few assertions worth verification: 430N/A * - the fullscreen window is positioned at 0,0 430N/A * - the fs window appears on the correct screen 430N/A * - if the exclusive FS mode is supported, no other widndow should 430N/A * overlap the fs window (including the taskbar). 430N/A * You could, however, alt+tab out of a fullscreen window, or at least 430N/A * minimize it (if you've entered the fs mode with a Window, you'll need 430N/A * to minimize the owner frame). 430N/A * Note that there may be issues with FS exclusive mode with ddraw and 430N/A * multiple fullscreen windows (one per device). 430N/A * - if display mode is supported that it did change 430N/A * - that the original display mode is restored once 430N/A * the ws window is disposed 430N/A * All of the above should work with and w/o DirectDraw 430N/A * (-Dsun.java2d.noddraw=true) on windows, and w/ and w/o opengl on X11 430N/A// cb = new Checkbox("Exit FS on window dispose"); 430N/A// cb.addItemListener(new ItemListener() { 430N/A// public void itemStateChanged(ItemEvent e) { 430N/A// setNullOnDispose = ((Checkbox)e.getSource()).getState(); 430N/A "[-dm][-usewindow][-setnull]");