/[classpath]/classpath/java/applet/Applet.java
ViewVC logotype

Diff of /classpath/java/applet/Applet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mark, Sat Jun 26 16:06:47 2004 UTC revision 1.9.2.1 by gnu_andrew, Fri Jan 14 10:24:05 2005 UTC
# Line 1  Line 1 
1  /* Applet.java -- Java base applet class  /* Applet.java -- Java base applet class
2     Copyright (C) 1999, 2002 Free Software Foundation, Inc.     Copyright (C) 1999, 2002, 2004  Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 48  import java.io.ObjectInputStream; Line 48  import java.io.ObjectInputStream;
48  import java.net.MalformedURLException;  import java.net.MalformedURLException;
49  import java.net.URL;  import java.net.URL;
50  import java.util.Locale;  import java.util.Locale;
51    
52  import javax.accessibility.AccessibleContext;  import javax.accessibility.AccessibleContext;
53  import javax.accessibility.AccessibleRole;  import javax.accessibility.AccessibleRole;
54  import javax.accessibility.AccessibleState;  import javax.accessibility.AccessibleState;
# Line 228  public class Applet extends Panel Line 229  public class Applet extends Panel
229    {    {
230      try      try
231        {        {
232          return getImage(new URL(url, name));          return getImage(new URL(url, name));
233        }        }
234      catch (MalformedURLException e)      catch (MalformedURLException e)
235        {        {
236          return null;          return null;
237        }        }
238    }    }
239    
# Line 284  public class Applet extends Panel Line 285  public class Applet extends Panel
285    {    {
286      try      try
287        {        {
288          return getAudioClip(new URL(url, name));          return getAudioClip(new URL(url, name));
289        }        }
290      catch (MalformedURLException e)      catch (MalformedURLException e)
291        {        {
292          return null;          return null;
293        }        }
294    }    }
295    
# Line 343  public class Applet extends Panel Line 344  public class Applet extends Panel
344      AudioClip ac = getAudioClip(url);      AudioClip ac = getAudioClip(url);
345      try      try
346        {        {
347          ac.play();          ac.play();
348        }        }
349      catch (Exception ignored)      catch (Exception ignored)
350        {        {
# Line 364  public class Applet extends Panel Line 365  public class Applet extends Panel
365    {    {
366      try      try
367        {        {
368          getAudioClip(url, name).play();          getAudioClip(url, name).play();
369        }        }
370      catch (Exception ignored)      catch (Exception ignored)
371        {        {
# Line 500  public class Applet extends Panel Line 501  public class Applet extends Panel
501      {      {
502        AccessibleStateSet s = super.getAccessibleStateSet();        AccessibleStateSet s = super.getAccessibleStateSet();
503        if (isActive())        if (isActive())
504          s.add(AccessibleState.ACTIVE);          s.add(AccessibleState.ACTIVE);
505        return s;        return s;
506      }      }
507    } // class AccessibleApplet    } // class AccessibleApplet

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.9.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26