AppletContext ctxt = getAppletContext(); ctxt.showDocument("http://www.example.com/child_applet.html", "_top");
/** * @return the collection of {@code Applet}s within the {@code AppletContext}. */ @RunsInEDT @Nonnull public Enumeration<Applet> getApplets() { Enumeration<Applet> applets = applet.getAppletContext().getApplets(); return applets != null ? applets : enumeration(Collections.<Applet> emptyList()); } }
public void setTitle(String _s) { System.out.println("setTitle("+_s+")"); AppletContext ac=getAppletContext(); if(ac!=null) ac.showStatus(_s); }
if (this.url != null) getAppletContext().showStatus("Link: " + this.url.toString()); return true; if (this.url != null) getAppletContext().showStatus(""); return true; if (this.url != null) getAppletContext().showDocument(this.url, this.target); return true;
private Applet getSpectrumApplet() { if (spectrumApplet == null) { String s = jcpApplet.getParameter("spectrumRenderer"); if ((s != null) && (s.length() > 0)) { spectrumApplet = jcpApplet.getAppletContext().getApplet(s); } } return spectrumApplet; }
/** * Returns the {@code JApplet} of the given its name in the {@code AppletContext}. * * @param name the name of the {@code JApplet}. * @return the {@code Applet} with the given name. */ @RunsInEDT public Applet getApplet(@Nonnull String name) { return applet.getAppletContext().getApplet(name); }
String link = "http://www."+source.getLabel()+".com"; try { AppletContext a = getAppletContext(); URL url = new URL(link); a.showDocument(url,"_blank"); }
if (topComponent instanceof Applet) { try { Enumeration<Applet> applets = ((Applet) topComponent).getAppletContext().getApplets(); while (applets.hasMoreElements()) { containers.add(applets.nextElement());
public void showStatus(String s) { aa.getAppletContext().showStatus(s); } }
String link = "http://www.google.com"; URL u = new URL(link); AppletContext a = getAppletContext(); a.showDocument(u,"_self");
if (topComponent instanceof Applet) { try { Enumeration<Applet> applets = ((Applet) topComponent).getAppletContext().getApplets(); while (applets.hasMoreElements()) { containers.add(applets.nextElement());
AppletContext a = getAppletContext(); URL url = new URL(link_to_your_servlet); a.showDocument(url,"_blank");
if (topComponent instanceof Applet) { try { Enumeration<Applet> applets = ((Applet) topComponent).getAppletContext().getApplets(); while (applets.hasMoreElements()) { containers.add(applets.nextElement());
public void showDocument(URL doc) { if(isLaunchedByJavaWebStart && Desktop.isDesktopSupported()) try { Desktop.getDesktop().browse(doc.toURI()); return; } catch (Exception e) { e.printStackTrace(); } getAppletContext().showDocument(doc, "_blank"); }
if (topComponent instanceof Applet) { try { Enumeration<Applet> applets = ((Applet) topComponent).getAppletContext().getApplets(); while (applets.hasMoreElements()) { containers.add(applets.nextElement());
import java.applet.*; import java.net.*; public class InJava4 extends Applet{ public void init(){ String msg = "Hello from Java (using javascript alert)"; try { getAppletContext().showDocument (new URL("javascript:doAlert(\"" + msg +"\")")); } catch (MalformedURLException me) { } } }
if (topComponent instanceof Applet) { try { Enumeration applets = ((Applet)topComponent).getAppletContext().getApplets(); while (applets.hasMoreElements()) { containers.add(applets.nextElement());
public void actionPerformed(ActionEvent e) { if (listURL != null) getAppletContext().showDocument(listURL); } });
public void actionPerformed(ActionEvent e) { if (targetURL != null) { // showStatus("Going to " + target); getAppletContext().showDocument(targetURL); } } });
public boolean platformRequest(String url) { try { getAppletContext().showDocument(new URL(url), "mini"); } catch (Exception e) { } return false; } };