Examples of showDocument()


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

Examples of java.applet.AppletContext.showDocument()

             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

Examples of java.applet.AppletContext.showDocument()

  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

Examples of java.applet.AppletContext.showDocument()

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

Examples of javax.jnlp.BasicService.showDocument()

          if (service != null) {
            try {
              // Display Find models page in browser
              final URL findModelsUrl = new URL(preferences.getLocalizedString(
                  ImportedFurnitureWizardStepsPanel.class, "findModelsButton.url"));
              documentShown = service.showDocument(findModelsUrl);
            } catch (MalformedURLException ex) {
              // Document isn't shown
            }
          }
          if (!documentShown) {
View Full Code Here

Examples of javax.jnlp.BasicService.showDocument()

   */
  private void setBrowserPage(URL url) {
    try {
      // Lookup the javax.jnlp.BasicService object
      BasicService service = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
      service.showDocument(url);
    } catch (UnavailableServiceException ex) {
      // Too bad : service is unavailable
    }
  }
}
View Full Code Here

Examples of javax.jnlp.BasicService.showDocument()

  public void help() {
    try {
      // Lookup the javax.jnlp.BasicService object
      final BasicService service = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
      String helpIndex = this.application.getUserPreferences().getLocalizedString(HomeAppletController.class, "helpIndex");
      service.showDocument(new URL(helpIndex));
    } catch (UnavailableServiceException ex) {
      // Too bad : service is unavailable            
    } catch (MalformedURLException ex) {
      ex.printStackTrace();
    }
View Full Code Here

Examples of javax.jnlp.BasicService.showDocument()

      if (service.isWebBrowserSupported()) {
        // Add a listener that displays hyperlinks content in browser
        messagePane.addHyperlinkListener(new HyperlinkListener() {
          public void hyperlinkUpdate(HyperlinkEvent ev) {
            if (ev.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
              service.showDocument(ev.getURL());
            }
          }
        });
      }
    } catch (UnavailableServiceException ex) {
View Full Code Here

Examples of javax.jnlp.BasicService.showDocument()

        try {
            BasicService bs = (BasicService) ServiceManager.lookup(
                    "javax.jnlp.BasicService");

            open = bs.showDocument(
                    new URL((String) urls.get(ContactUtil.BASE_URL)));
            Log.debug(CLASS_NAME, "showBrowser is " + open);
        } catch (UnavailableServiceException e) {
            Log.error(CLASS_NAME, "", e);
            DialogFactory.showErrMsg(getParent(),
View Full Code Here

Examples of javax.jnlp.BasicService.showDocument()

//             Running in sandbox, try using WebStart service
            BasicService basicService =
                    (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");

            if (basicService.isWebBrowserSupported()) {
                return basicService.showDocument(uri.toURL());
            }
        }

        return false;
    }
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.