Package java.applet

Examples of java.applet.AppletContext


  public void show_document(URL url, String target)
  {
    if (container instanceof Applet)
    {
      AppletContext browser = ((Applet) container).getAppletContext();
      browser.showDocument(url, target);
    }
    IO.errmes("show_document only works with applets");
  }
View Full Code Here


               // use site name to locate corresponding URL
               URL newDocument = sites.get( object );

               // get applet container
               AppletContext browser = getAppletContext();

               // tell applet container to change pages
               browser.showDocument( newDocument );
            } // end method valueChanged
         } // end anonymous inner class
      ); // end call to addListSelectionListener

      add( new JScrollPane( siteChooser ), BorderLayout.CENTER );
View Full Code Here

    };
  }

  private static AppletContext getStubAppletContext(final Applet target)
  {
    return new AppletContext() {
      public AudioClip getAudioClip(URL url)
      {
        return null;
      }
View Full Code Here

TOP

Related Classes of java.applet.AppletContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.