< prev index next >

src/java.desktop/share/classes/java/applet/Applet.java

Print this page

        

@@ -40,10 +40,12 @@
 import javax.accessibility.AccessibleContext;
 import javax.accessibility.AccessibleRole;
 import javax.accessibility.AccessibleState;
 import javax.accessibility.AccessibleStateSet;
 
+import com.sun.media.sound.JavaSoundAudioClip;
+
 /**
  * An applet is a small program that is intended not to be run on
  * its own, but rather to be embedded inside another application.
  * <p>
  * The {@code Applet} class must be the superclass of any

@@ -320,11 +322,11 @@
      * @return the audio clip at the specified URL.
      *
      * @since       1.2
      */
     public static final AudioClip newAudioClip(URL url) {
-        return new sun.applet.AppletAudioClip(url);
+        return JavaSoundAudioClip.create(url);
     }
 
     /**
      * Returns the {@code AudioClip} object specified by the
      * {@code URL} argument.
< prev index next >