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
This commit is contained in:
parent
037cc9c5dc
commit
09bddb9209
5 changed files with 23 additions and 12 deletions
|
@ -1,3 +1,11 @@
|
|||
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>
|
||||
|
||||
* java/util/Collections.java
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* 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.
|
||||
|
||||
|
@ -48,6 +48,7 @@ import java.io.ObjectInputStream;
|
|||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.util.Locale;
|
||||
|
||||
import javax.accessibility.AccessibleContext;
|
||||
import javax.accessibility.AccessibleRole;
|
||||
import javax.accessibility.AccessibleState;
|
||||
|
@ -228,11 +229,11 @@ public class Applet extends Panel
|
|||
{
|
||||
try
|
||||
{
|
||||
return getImage(new URL(url, name));
|
||||
return getImage(new URL(url, name));
|
||||
}
|
||||
catch (MalformedURLException e)
|
||||
{
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -284,11 +285,11 @@ public class Applet extends Panel
|
|||
{
|
||||
try
|
||||
{
|
||||
return getAudioClip(new URL(url, name));
|
||||
return getAudioClip(new URL(url, name));
|
||||
}
|
||||
catch (MalformedURLException e)
|
||||
{
|
||||
return null;
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -343,7 +344,7 @@ public class Applet extends Panel
|
|||
AudioClip ac = getAudioClip(url);
|
||||
try
|
||||
{
|
||||
ac.play();
|
||||
ac.play();
|
||||
}
|
||||
catch (Exception ignored)
|
||||
{
|
||||
|
@ -364,7 +365,7 @@ public class Applet extends Panel
|
|||
{
|
||||
try
|
||||
{
|
||||
getAudioClip(url, name).play();
|
||||
getAudioClip(url, name).play();
|
||||
}
|
||||
catch (Exception ignored)
|
||||
{
|
||||
|
@ -500,7 +501,7 @@ public class Applet extends Panel
|
|||
{
|
||||
AccessibleStateSet s = super.getAccessibleStateSet();
|
||||
if (isActive())
|
||||
s.add(AccessibleState.ACTIVE);
|
||||
s.add(AccessibleState.ACTIVE);
|
||||
return s;
|
||||
}
|
||||
} // class AccessibleApplet
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* 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.
|
||||
|
||||
|
@ -39,8 +39,8 @@ exception statement from your version. */
|
|||
package java.applet;
|
||||
|
||||
import java.awt.Image;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* 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.
|
||||
|
||||
|
@ -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
|
||||
exception statement from your version. */
|
||||
|
||||
|
||||
package java.applet;
|
||||
|
||||
import java.net.URL;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* 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.
|
||||
|
||||
|
@ -38,6 +38,7 @@ exception statement from your version. */
|
|||
|
||||
package java.applet;
|
||||
|
||||
|
||||
/**
|
||||
* This interface provides a simple mechanism for playing audio clips.
|
||||
* If multiple clips are played at once, the browser combines them into a
|
||||
|
|
Loading…
Add table
Reference in a new issue