Package java.applet

Examples of java.applet.AppletContext.showDocument()


            this.logger.warning("Trying dirty fallback, calling : " + sb.toString());

            try {
                final AppletContext appletContext = getAppletContext();
                appletContext.showDocument(new URL(sb.toString()));
            } catch (final MalformedURLException e) {
                e.printStackTrace();
            }

            return null;
View Full Code Here


             if this is running as an applet then get the applet context (a handle on
             *  the web browser hosting the applet)
             */
            if (parentApplication == null) {
                AppletContext ctx = getAppletContext();
                ctx.showDocument(url, title);
            } else {
                /*
                 * otherwise the applet is hosted by an application so create a new
                 * web browser process and pass it the URL we want displayed
                 */
 
View Full Code Here

  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

               // 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

TOP
Copyright © 2018 www.massapi.com. 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.