Commit 09bddb92 by Michael Koch Committed by Michael Koch

AppletContext.java, [...]: Jalopied and checkstyle clean.

2004-09-23  Michael Koch  <konqueror@gmx.de>

	* java/applet/AppletContext.java,
	java/applet/Applet.java,
	java/applet/AppletStub.java,
	java/applet/AudioClip.java:
	Jalopied and checkstyle clean.

From-SVN: r87972
parent 037cc9c5
2004-09-23 Michael Koch <konqueror@gmx.de>
* java/applet/AppletContext.java,
java/applet/Applet.java,
java/applet/AppletStub.java,
java/applet/AudioClip.java:
Jalopied and checkstyle clean.
2004-09-23 Mark Wielaard <mark@klomp.org> 2004-09-23 Mark Wielaard <mark@klomp.org>
* java/util/Collections.java * java/util/Collections.java
......
/* Applet.java -- Java base applet class /* Applet.java -- Java base applet class
Copyright (C) 1999, 2002 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -48,6 +48,7 @@ import java.io.ObjectInputStream; ...@@ -48,6 +48,7 @@ import java.io.ObjectInputStream;
import java.net.MalformedURLException; import java.net.MalformedURLException;
import java.net.URL; import java.net.URL;
import java.util.Locale; import java.util.Locale;
import javax.accessibility.AccessibleContext; import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole; import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleState; import javax.accessibility.AccessibleState;
...@@ -228,11 +229,11 @@ public class Applet extends Panel ...@@ -228,11 +229,11 @@ public class Applet extends Panel
{ {
try try
{ {
return getImage(new URL(url, name)); return getImage(new URL(url, name));
} }
catch (MalformedURLException e) catch (MalformedURLException e)
{ {
return null; return null;
} }
} }
...@@ -284,11 +285,11 @@ public class Applet extends Panel ...@@ -284,11 +285,11 @@ public class Applet extends Panel
{ {
try try
{ {
return getAudioClip(new URL(url, name)); return getAudioClip(new URL(url, name));
} }
catch (MalformedURLException e) catch (MalformedURLException e)
{ {
return null; return null;
} }
} }
...@@ -343,7 +344,7 @@ public class Applet extends Panel ...@@ -343,7 +344,7 @@ public class Applet extends Panel
AudioClip ac = getAudioClip(url); AudioClip ac = getAudioClip(url);
try try
{ {
ac.play(); ac.play();
} }
catch (Exception ignored) catch (Exception ignored)
{ {
...@@ -364,7 +365,7 @@ public class Applet extends Panel ...@@ -364,7 +365,7 @@ public class Applet extends Panel
{ {
try try
{ {
getAudioClip(url, name).play(); getAudioClip(url, name).play();
} }
catch (Exception ignored) catch (Exception ignored)
{ {
...@@ -500,7 +501,7 @@ public class Applet extends Panel ...@@ -500,7 +501,7 @@ public class Applet extends Panel
{ {
AccessibleStateSet s = super.getAccessibleStateSet(); AccessibleStateSet s = super.getAccessibleStateSet();
if (isActive()) if (isActive())
s.add(AccessibleState.ACTIVE); s.add(AccessibleState.ACTIVE);
return s; return s;
} }
} // class AccessibleApplet } // class AccessibleApplet
......
/* AppletContext.java -- access the applet's runtime environment /* AppletContext.java -- access the applet's runtime environment
Copyright (C) 1999, 2002 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -39,8 +39,8 @@ exception statement from your version. */ ...@@ -39,8 +39,8 @@ exception statement from your version. */
package java.applet; package java.applet;
import java.awt.Image; import java.awt.Image;
import java.io.InputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream;
import java.net.URL; import java.net.URL;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Iterator; import java.util.Iterator;
......
/* AppletStub.java -- low level interface to the browser /* AppletStub.java -- low level interface to the browser
Copyright (C) 1999, 2002 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -35,6 +35,7 @@ this exception to your version of the library, but you are not ...@@ -35,6 +35,7 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */ exception statement from your version. */
package java.applet; package java.applet;
import java.net.URL; import java.net.URL;
......
/* AudioClip.java -- play an audio clip in an applet /* AudioClip.java -- play an audio clip in an applet
Copyright (C) 1999, 2002 Free Software Foundation, Inc. Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -38,6 +38,7 @@ exception statement from your version. */ ...@@ -38,6 +38,7 @@ exception statement from your version. */
package java.applet; package java.applet;
/** /**
* This interface provides a simple mechanism for playing audio clips. * This interface provides a simple mechanism for playing audio clips.
* If multiple clips are played at once, the browser combines them into a * If multiple clips are played at once, the browser combines them into a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment