test/javax/swing/MultiUIDefaults/4300666/bug4300666.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2013 Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -20,21 +20,19 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
 /* @test
-   @bug 4300666
+   @bug 4300666 7105119
    @summary Printing UIDefaults throws NoSuchElementExcept
    @author Andrey Pikalev
-   @run applet bug4300666.html
 */
 
 import javax.swing.*;
 
+public class bug4300666 {
 
-public class bug4300666 extends JApplet {
-
-    public void init() {
+    public static void main(String[] args) {
         UIDefaults d = UIManager.getDefaults();
         d.toString();
     }
 }