12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @key headful
27 * @bug 8054358
28 * @summary Check whether a set of dialogs created with a toolkit excluded Frame
29 * parent has a proper modal blocking behavior. Also show a document modal
30 * dialog and check if it blocks the document properly.
31 *
32 * @library ../helpers ../../../../lib/testlibrary/
33 * @build ExtendedRobot
34 * @build Flag
35 * @build TestDialog
36 * @build TestFrame
37 * @run main/timeout=500 MultipleDialogs1Test
38 */
39
40
41 import java.awt.*;
42 import java.util.ArrayList;
43 import java.util.List;
44 import java.util.Collections;
45 import java.util.Iterator;
46
47 public class MultipleDialogs1Test {
48
49 private volatile CustomFrame frame;
50 private List<CustomDialog> dialogList;
51
52 private static int delay = 500;
|
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @key headful
27 * @bug 8054358
28 * @summary Check whether a set of dialogs created with a toolkit excluded Frame
29 * parent has a proper modal blocking behavior. Also show a document modal
30 * dialog and check if it blocks the document properly.
31 *
32 * @library ../helpers /lib/testlibrary/
33 * @library /test/lib
34 * @build ExtendedRobot
35 * @build Flag
36 * @build TestDialog
37 * @build TestFrame
38 * @run main/timeout=500 MultipleDialogs1Test
39 */
40
41
42 import java.awt.*;
43 import java.util.ArrayList;
44 import java.util.List;
45 import java.util.Collections;
46 import java.util.Iterator;
47
48 public class MultipleDialogs1Test {
49
50 private volatile CustomFrame frame;
51 private List<CustomDialog> dialogList;
52
53 private static int delay = 500;
|