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:
committed by
Michael Koch
parent
037cc9c5dc
commit
09bddb9209
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user