jdk/test/java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java
author serb
Mon, 27 May 2013 22:31:37 +0400
changeset 17685 95517c002a75
parent 17147 e1cd5c92e81c
child 32286 5ffa8d8b4a2d
permissions -rw-r--r--
8014726: TEST_BUG: java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java should be modified Reviewed-by: serb, anthony Contributed-by: alexander.zvegintsev@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17147
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     1
/*
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     4
 *
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     7
 * published by the Free Software Foundation.
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     8
 *
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    13
 * accompanied this code).
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    14
 *
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    18
 *
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    21
 * questions.
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    22
 */
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    23
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    24
/*
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    25
 * @test
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    26
 * @bug 8012586
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    27
 * @summary verify that modal dialog will appeared above fullscreen window under Metacity WM.
17685
95517c002a75 8014726: TEST_BUG: java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java should be modified
serb
parents: 17147
diff changeset
    28
 * @library ../../regtesthelpers
95517c002a75 8014726: TEST_BUG: java/awt/WMSpecificTests/Metacity/FullscreenDialogModality.java should be modified
serb
parents: 17147
diff changeset
    29
 * @build Util
17147
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    30
 * @run main FullscreenDialogModality
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    31
 * @run main/othervm FullscreenDialogModality
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    32
 * @author vkravets
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    33
 */
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    34
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    35
import test.java.awt.regtesthelpers.Util;
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    36
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    37
import java.awt.*;
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    38
import java.lang.reflect.InvocationTargetException;
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    39
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    40
public class FullscreenDialogModality extends Frame {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    41
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    42
    static Robot robot = null;
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    43
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    44
    public void enterFS() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    45
        GraphicsDevice gd = getGraphicsConfiguration().getDevice();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    46
        final boolean fs = gd.isFullScreenSupported();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    47
        System.out.println("FullscreenSupported: " + (fs ? "yes" : "no"));
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    48
        gd.setFullScreenWindow(this);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    49
        try {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    50
            // Give the system time to set the FS window and display it
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    51
            // properly
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    52
            Thread.sleep(2000);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    53
        } catch (Exception e) {}
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    54
    }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    55
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    56
    public void exitFS() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    57
        GraphicsDevice gd = getGraphicsConfiguration().getDevice();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    58
        // reset window
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    59
        gd.setFullScreenWindow(null);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    60
        try {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    61
            // Give the system time to set the FS window and display it
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    62
            // properly
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    63
            Thread.sleep(2000);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    64
        } catch (Exception e) {}
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    65
    }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    66
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    67
    public void checkDialogModality() throws InvocationTargetException, InterruptedException {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    68
        // Dialog
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    69
        final Dialog d = new Dialog(FullscreenDialogModality.this, "Modal dialog", Dialog.ModalityType.APPLICATION_MODAL);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    70
        d.setBounds(500, 500, 160, 160);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    71
        d.setModal(true);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    72
        d.setBackground(Color.red);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    73
        EventQueue.invokeLater(new Runnable()
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    74
        {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    75
            public void run()
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    76
            {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    77
                d.setVisible(true);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    78
            }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    79
        });
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    80
        // Wait until the dialog is shown
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    81
        EventQueue.invokeLater(new Runnable() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    82
            public void run() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    83
                // Empty
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    84
            }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    85
        });
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    86
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    87
        Util.waitForIdle(robot);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    88
        try {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    89
            //Check color
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    90
            Point checkPoint = new Point(d.getX() + d.getWidth() / 2, d.getY() + d.getHeight() / 2);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    91
            Color actual = robot.getPixelColor(checkPoint.x, checkPoint.y);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    92
            System.out.println("Color = " + actual);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    93
            if (actual.getRGB() == Color.GREEN.getRGB()) {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    94
                throw new RuntimeException("Test FAILED: Modal dialog shown below fullscreen window");
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    95
            } else if (actual.getRGB() == Color.RED.getRGB()) {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    96
                System.out.println("Test PASSED: Modal dialog shown above fullscreen window");
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    97
            } else {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    98
                System.out.println("pixelColor " +
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
    99
                        Integer.toHexString(actual.getRGB()) +
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   100
                        " at coordinates (" + checkPoint.x + ", " + checkPoint.y + ")");
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   101
                throw new RuntimeException("Test FAILED: Unexpected behavior");
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   102
            }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   103
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   104
            robot.delay(2000);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   105
            Util.waitForIdle(robot);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   106
        } finally {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   107
            d.dispose();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   108
        }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   109
    }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   110
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   111
    public static void main(String args[]) throws InvocationTargetException, InterruptedException {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   112
        if (Util.getWMID() != Util.METACITY_WM) {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   113
            System.out.println("This test is only useful on Metacity");
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   114
            return;
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   115
        }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   116
        robot = Util.createRobot();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   117
        Util.waitForIdle(robot);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   118
        final FullscreenDialogModality frame = new FullscreenDialogModality();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   119
        frame.setUndecorated(true);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   120
        frame.setBackground(Color.green);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   121
        frame.setSize(500, 500);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   122
        frame.setVisible(true);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   123
        try {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   124
            robot.delay(100);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   125
            Util.waitForIdle(robot);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   126
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   127
            EventQueue.invokeAndWait(new Runnable() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   128
                public void run() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   129
                    frame.enterFS();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   130
                }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   131
            });
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   132
            robot.delay(200);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   133
            Util.waitForIdle(robot);
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   134
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   135
            frame.checkDialogModality();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   136
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   137
            EventQueue.invokeAndWait(new Runnable() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   138
                public void run() {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   139
                    frame.exitFS();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   140
                }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   141
            });
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   142
        } finally {
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   143
            frame.dispose();
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   144
        }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   145
    }
e1cd5c92e81c 8012586: [x11] Modal dialogs for fullscreen window may show behind its owner
anthony
parents:
diff changeset
   146
}