jdk/test/javax/swing/JInternalFrame/6725409/bug6725409.java
changeset 5954 fc070edf8e98
parent 5506 202f599c92aa
child 27764 4e79ff3e0602
equal deleted inserted replaced
5953:33ad0303d717 5954:fc070edf8e98
     1 /*
     1 /*
     2  * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    41         try {
    41         try {
    42             UIManager.setLookAndFeel(
    42             UIManager.setLookAndFeel(
    43                     new com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel());
    43                     new com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel());
    44         } catch(UnsupportedLookAndFeelException e) {
    44         } catch(UnsupportedLookAndFeelException e) {
    45             System.out.println("The test is for Windows LaF only");
    45             System.out.println("The test is for Windows LaF only");
    46             System.exit(0);
    46             return;
    47         }
    47         }
    48 
    48 
    49         final bug6725409 bug6725409 = new bug6725409();
    49         final bug6725409 bug6725409 = new bug6725409();
    50         try {
    50         try {
    51             SwingUtilities.invokeAndWait(new Runnable() {
    51             SwingUtilities.invokeAndWait(new Runnable() {