diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/jogamp/java3d/utils/applet/JMainFrame.java | 4 | ||||
-rw-r--r-- | src/main/java/org/jogamp/java3d/utils/applet/MainFrame.java | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/org/jogamp/java3d/utils/applet/JMainFrame.java b/src/main/java/org/jogamp/java3d/utils/applet/JMainFrame.java index 80270d6..c79951e 100644 --- a/src/main/java/org/jogamp/java3d/utils/applet/JMainFrame.java +++ b/src/main/java/org/jogamp/java3d/utils/applet/JMainFrame.java @@ -308,7 +308,9 @@ public class JMainFrame extends JFrame // I suspect that in a future release, JavaSoft will add an // audio content handler which encapsulates this, and then // we can just do a getContent just like for images. - return new sun.applet.AppletAudioClip( url ); + // JDK 11 would use this: return com.sun.media.sound.JavaSoundAudioClip.create( url ); + // however that is not available prior to jdk 10, so it is better to simply un-support this method + throw new UnsupportedOperationException(); } @Override diff --git a/src/main/java/org/jogamp/java3d/utils/applet/MainFrame.java b/src/main/java/org/jogamp/java3d/utils/applet/MainFrame.java index 348b4e1..5a6a387 100644 --- a/src/main/java/org/jogamp/java3d/utils/applet/MainFrame.java +++ b/src/main/java/org/jogamp/java3d/utils/applet/MainFrame.java @@ -357,7 +357,9 @@ public class MainFrame extends Frame implements // I suspect that in a future release, JavaSoft will add an // audio content handler which encapsulates this, and then // we can just do a getContent just like for images. - return new sun.applet.AppletAudioClip( url ); + // JDK 11 would use this: return com.sun.media.sound.JavaSoundAudioClip.create( url ); + // however that is not available prior to jdk 10, so it is better to simply un-support this method + throw new UnsupportedOperationException(); } @Override |