java.applet.Applet.setStub()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(5.7k)|赞(0)|评价(0)|浏览(234)

本文整理了Java中java.applet.Applet.setStub()方法的一些代码示例,展示了Applet.setStub()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Applet.setStub()方法的具体详情如下:
包路径:java.applet.Applet
类名称:Applet
方法名:setStub

Applet.setStub介绍

暂无

代码示例

代码示例来源:origin: runelite/runelite

rs.setStub(new RSAppletStub(config));
return rs;

代码示例来源:origin: stackoverflow.com

stub.addParameter(args[0], args[1]);
ParamApplet pa = new ParamApplet();
pa.setStub(stub);

代码示例来源:origin: tomsik68/mclauncher-api

public void createApplet() {
  try {
    this.minecraft = ((Applet) this.loader.loadClass("net.minecraft.client.MinecraftApplet").newInstance());
    this.minecraft.setStub(this);
  } catch (Exception e) {
    e.printStackTrace();
  }
}

代码示例来源:origin: stackoverflow.com

Class applet2 = Class.forName("Applet2");
Applet appletToLoad = (Applet)applet2.newInstance();
appletToLoad.setStub(this);
setLayout(new GridLayout(1,0));
add(appletToLoad);
appletToLoad.init();
appletToLoad.start();

代码示例来源:origin: joel-costigliola/assertj-swing

private void appletStub(@Nonnull AppletStub newAppletStub) {
 checkNotNull(newAppletStub);
 stub = newAppletStub;
 applet.setStub(stub);
 setUpApplet();
}

代码示例来源:origin: stackoverflow.com

if (strp.matches(strp) && stru.matches(stru))
{
  Class applet2 = Class.forName("register"); // give complete name of register class including package name
  Applet appletToLoad = (Applet)applet2.newInstance();
  appletToLoad.setStub(this);
  setLayout( new GridLayout(1,0));
  add(appletToLoad);
  appletToLoad.init();
  appletToLoad.start();
}
else
{
   JOptionPane.showMessageDialog(null,"User name or password are not correct.");
   return;
}

代码示例来源:origin: javanettasks/httpunit

public Applet getApplet() throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
  if (_applet == null) {
    ClassLoader cl = new URLClassLoader( getClassPath(), null );
    Object o = cl.loadClass( getMainClassName() ).newInstance();
    if (!(o instanceof Applet)) throw new RuntimeException( getMainClassName() + " is not an Applet" );
    _applet = (Applet) o;
    _applet.setStub( new AppletStubImpl( this ) );
  }
  return _applet;
}

代码示例来源:origin: org.kohsuke.httpunit/httpunit

public Applet getApplet() throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
  if (_applet == null) {
    ClassLoader cl = new URLClassLoader( getClassPath(), null );
    Object o = cl.loadClass( getMainClassName() ).newInstance();
    if (!(o instanceof Applet)) throw new RuntimeException( getMainClassName() + " is not an Applet" );
    _applet = (Applet) o;
    _applet.setStub( new AppletStubImpl( this ) );
  }
  return _applet;
}

代码示例来源:origin: httpunit/httpunit

public Applet getApplet() throws MalformedURLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
  if (_applet == null) {
    ClassLoader cl = new URLClassLoader( getClassPath(), null );
    Object o = cl.loadClass( getMainClassName() ).newInstance();
    if (!(o instanceof Applet)) throw new RuntimeException( getMainClassName() + " is not an Applet" );
    _applet = (Applet) o;
    _applet.setStub( new AppletStubImpl( this ) );
  }
  return _applet;
}

代码示例来源:origin: stackoverflow.com

Applet applet = new TheRealApplet();
applet.setStub(this);
this.setLayout( new BorderLayout() );
add( applet, BorderLayout.CENTER );
applet.init();
applet.start();

代码示例来源:origin: stackoverflow.com

AppletStub stub = new AppletStub() {
  // lots of code including defining the parameter 'myParameter'
};
Applet a = new Applet();
a.setStub(stub);
a.init();
// ...

代码示例来源:origin: IanDarwin/javasrc

ai.setStub(aa);

代码示例来源:origin: ATLauncher/ATLauncher

public void replace(Applet applet) {
  this.wrappedApplet = applet;
  applet.setStub(this);
  applet.setSize(getWidth(), getHeight());
  this.setLayout(new BorderLayout());
  this.add(applet, "Center");
  applet.init();
  active = true;
  applet.start();
  validate();
}

代码示例来源:origin: KokaKiwi/MCLauncher

public void replace(Applet applet)
{
  this.applet = applet;
  applet.setStub(this);
  applet.setSize(getWidth(), getHeight());
  
  setLayout(new BorderLayout());
  add(applet, "Center");
  
  applet.init();
  active = true;
  applet.start();
  validate();
}

代码示例来源:origin: tomsik68/mclauncher-api

public void replace(Applet applet) {
  this.minecraft = applet;
  applet.setStub(this);
  applet.setSize(getWidth(), getHeight());
  setLayout(new BorderLayout());
  add(applet, "Center");
  applet.init();
  this.active = true;
  applet.start();
  validate();
}

代码示例来源:origin: org.jenkins-ci/htmlunit

final Class<Applet> appletClass = (Class<Applet>) appletClassLoader_.loadClass(appletClassName);
applet_ = appletClass.newInstance();
applet_.setStub(new AppletStubImpl(this));
applet_.init();
applet_.start();

代码示例来源:origin: org.jvnet.hudson/htmlunit

final Class<Applet> appletClass = (Class<Applet>) appletClassLoader_.loadClass(appletClassName);
applet_ = appletClass.newInstance();
applet_.setStub(new AppletStubImpl(this));
applet_.init();
applet_.start();

代码示例来源:origin: net.disy.htmlunit/htmlunit

final Class<Applet> appletClass = (Class<Applet>) appletClassLoader_.loadClass(appletClassName);
applet_ = appletClass.newInstance();
applet_.setStub(new AppletStubImpl(this));
applet_.init();
applet_.start();

代码示例来源:origin: ATLauncher/ATLauncher

public void start(Applet mcApplet, String user, String session, Dimension winSize, boolean maximize) {
  try {
    appletWrap = new Launcher(mcApplet, new URL("http://www.minecraft.net/game"));
  } catch (MalformedURLException ignored) {
  }
  appletWrap.setParameter("username", user);
  appletWrap.setParameter("sessionid", session);
  appletWrap.setParameter("stand-alone", "true"); // Show the quit button.
  mcApplet.setStub(appletWrap);
  this.add(appletWrap);
  appletWrap.setPreferredSize(winSize);
  this.pack();
  this.setLocationRelativeTo(null);
  this.setResizable(true);
  if (maximize) {
    this.setExtendedState(MAXIMIZED_BOTH);
  }
  validate();
  appletWrap.init();
  appletWrap.start();
  setVisible(true);
}

代码示例来源:origin: org.jvnet.hudson/netx

AppletDesc appletDesc = file.getApplet();
applet.setStub(this);

相关文章