java.applet.AppletContext Java Examples

The following examples show how to use java.applet.AppletContext. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Applet.java    From pdfxtk with Apache License 2.0 5 votes vote down vote up
public Applet() {
   if(STANDALONE)
     setStub(new AppletStub() {
  public void appletResize(int width, int height) {}
  
  public AppletContext getAppletContext() {
    return null;
  }
  
  public URL getCodeBase() {
    return null;
  }
  
  public URL getDocumentBase() {
    return null;
  }
  
  public String getParameter(String key) {
    return (String)params.get(key);
  }
  
  public boolean isActive() {
    return active;
  }
});
   Preferences.addStore(new AppletPreferences(this));

   setBackground(new Color(0xC0C0C0));
 }
 
Example #2
Source File: Beans.java    From Java8CN with Apache License 2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #3
Source File: Beans.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #4
Source File: Beans.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #5
Source File: Beans.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #6
Source File: Beans.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #7
Source File: Beans.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #8
Source File: JarClassLoader.java    From hccd with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Call this method to initialize an applet from your launcher class
 * <code>MyAppletLauncher.init()</code> method.
 *
 * @param sClass class name in form "MyClass" for default package
 * or "com.abc.MyClass" for class in some package
 *
 * @param appletParent parent applet from a launcher.
 *
 * @throws Throwable wrapper for many exceptions thrown while applet
 * instantiation and calling init() method.
 */
public void initApplet(String sClass, final JApplet appletParent) throws Throwable {
    Class<?> clazz = loadClass(sClass);
    logInfo(LogArea.CONFIG, "initApplet() --> %s.init(); Loader: %s", sClass, clazz.getClassLoader());
    applet = (JApplet)clazz.newInstance();
    applet.setStub(new AppletStub() {
        @Override
        public boolean isActive() {
            return appletParent.isActive();
        }
        @Override
        public URL getDocumentBase() {
            return appletParent.getDocumentBase();
        }
        @Override
        public URL getCodeBase() {
            return appletParent.getCodeBase();
        }
        @Override
        public String getParameter(String name) {
            return appletParent.getParameter(name);
        }
        @Override
        public AppletContext getAppletContext() {
            return appletParent.getAppletContext();
        }
        @Override
        public void appletResize(int width, int height) {
            appletParent.resize(width, height);
        }
    });
    applet.init();
    appletParent.setContentPane(applet.getContentPane());
}
 
Example #9
Source File: Beans.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #10
Source File: Beans.java    From jdk-1.7-annotated with Apache License 2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #11
Source File: Beans.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #12
Source File: Game.java    From rscplus with GNU General Public License v3.0 4 votes vote down vote up
@Override
public final AppletContext getAppletContext() {
  return null;
}
 
Example #13
Source File: Beans.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #14
Source File: RSAppletStub.java    From runelite with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Override
public AppletContext getAppletContext()
{
	return null;
}
 
Example #15
Source File: Beans.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #16
Source File: Beans.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #17
Source File: Beans.java    From jdk-1.7-annotated with Apache License 2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #18
Source File: Beans.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #19
Source File: Beans.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #20
Source File: Beans.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #21
Source File: Loader.java    From osrsclient with GNU General Public License v2.0 4 votes vote down vote up
@Override
public AppletContext getAppletContext() {
	return null;
}
 
Example #22
Source File: Beans.java    From Java8CN with Apache License 2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #23
Source File: Beans.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #24
Source File: AppletStubImpl.java    From htmlunit with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public AppletContext getAppletContext() {
    return appletContextImpl_;
}
 
Example #25
Source File: Beans.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #26
Source File: Beans.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #27
Source File: Beans.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #28
Source File: Beans.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}
 
Example #29
Source File: Beans.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public AppletContext getAppletContext() {
    return context;
}
 
Example #30
Source File: Beans.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
BeansAppletStub(Applet target,
            AppletContext context, URL codeBase,
                            URL docBase) {
    this.target = target;
    this.context = context;
    this.codeBase = codeBase;
    this.docBase = docBase;
}