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 import java.awt.*;
25 import java.util.ArrayList;
26 import java.util.concurrent.CountDownLatch;
27 import javax.swing.JFrame;
28 import javax.swing.JLabel;
29 import javax.swing.JTabbedPane;
30
31 import static javax.swing.UIManager.*;
32 import static javax.swing.SwingUtilities.*;
33
34 /*
35 * @test
36 * @bug 8007563
37 * @summary Tests JTabbedPane background
38 * @author Sergey Malenkov
39 */
40
41 public class Test8007563 implements Runnable {
42 private static final ArrayList<String> LIST = new ArrayList<>();
43 private static final LookAndFeelInfo[] INFO = getInstalledLookAndFeels();
44 private static final CountDownLatch LATCH = new CountDownLatch(INFO.length);
45 private static Robot ROBOT;
46
47 public static void main(String[] args) throws Exception {
48 ROBOT = new Robot();
49 invokeLater(new Test8007563());
50 LATCH.await();
51 if (!LIST.isEmpty()) {
52 throw new Error(LIST.toString());
53 }
54 }
55
|
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 import java.awt.*;
25 import java.util.ArrayList;
26 import java.util.concurrent.CountDownLatch;
27 import javax.swing.JFrame;
28 import javax.swing.JLabel;
29 import javax.swing.JTabbedPane;
30
31 import static javax.swing.UIManager.*;
32 import static javax.swing.SwingUtilities.*;
33
34 /*
35 * @test
36 * @key headful
37 * @bug 8007563
38 * @summary Tests JTabbedPane background
39 * @author Sergey Malenkov
40 */
41
42 public class Test8007563 implements Runnable {
43 private static final ArrayList<String> LIST = new ArrayList<>();
44 private static final LookAndFeelInfo[] INFO = getInstalledLookAndFeels();
45 private static final CountDownLatch LATCH = new CountDownLatch(INFO.length);
46 private static Robot ROBOT;
47
48 public static void main(String[] args) throws Exception {
49 ROBOT = new Robot();
50 invokeLater(new Test8007563());
51 LATCH.await();
52 if (!LIST.isEmpty()) {
53 throw new Error(LIST.toString());
54 }
55 }
56
|