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

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

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

Applet.destroy介绍

暂无

代码示例

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

public void destroy () {
    remove(canvas);
    super.destroy();
  }
}

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

public void destroy () {
    remove(canvas);
    super.destroy();
  }
}

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

public void destroy()
{
  if (applet != null)
  {
    applet.destroy();
    return;
  }
}

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

public void destroy() {
  wrappedApplet.destroy();
}

代码示例来源:origin: freehep/freehep-vectorgraphics

public void destroy() {
  super.destroy();
  System.err.println("destroy");
}

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

/**
 * Stops and destroys the {@code Applet} loaded in this viewer. This method should be called before closing or
 * disposing this viewer.
 */
public void unloadApplet() {
 applet.stop();
 applet.destroy();
 loaded = false;
}

代码示例来源:origin: com.badlogicgames.gdx/gdx-backend-lwjgl

public void destroy () {
    remove(canvas);
    super.destroy();
  }
}

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

JFrame frame = new JFrame();
 frame.setSize(400, 300);
 final Applet applet = new MyCustomApplet();
 frame.getContentPane().add(applet);
 frame.addWindowListener(new WindowAdapter() {
   public void windowClosing(WindowEvent we) {
     applet.stop();
     applet.destroy();
     System.exit(0);
   }
 });
 frame.setVisible(true);
 applet.init();
 applet.start();

代码示例来源:origin: org.scijava/j3dutils

@Override
  public void windowClosing(WindowEvent winEvent)
  {
if (JMainFrame.this.applet != null) {
  JMainFrame.this.applet.destroy();
}
hide();
try {
  dispose();
} catch (IllegalStateException e) {}
if (_doExit) {
  System.exit(0);
}
  }
});

代码示例来源:origin: org.slick2d/slick2d-core

/**
* @see java.applet.Applet#destroy()
*/
public void destroy() {
 if (displayParent != null) {
   remove(displayParent);
 }
 super.destroy();
 
 Log.info("Clear up");
}

代码示例来源:origin: org.scijava/j3dutils

@Override
    public void windowClosing(WindowEvent winEvent) {
  if (MainFrame.this.applet != null) {
    MainFrame.this.applet.destroy();
  }
  Window w = winEvent.getWindow();
  w.hide();
  try {
    w.dispose();
  } catch (IllegalStateException e) {}
  if (_doExit) {
    System.exit(0);
  }
  }
});

代码示例来源:origin: org.netbeans.api/org-jruby

@Override
public synchronized void destroy() {
  try {
    invokeCallback(destroyProc, new IRubyObject[] {});
  } finally {
    facade.destroy();
    final Ruby runtime = this.runtime;
    this.runtime = null;
    startProc = null;
    stopProc = null;
    destroyProc = null;
    paintProc = null;
    priorGraphics = null;
    wrappedGraphics = null;
    runtime.tearDown();
    super.destroy();
  }
}

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

/**
 * Stop the application and destroy its resources.
 */
public void destroy() {
  if (appletStopped)
    return;
  appletStopped = true;
  try {
    applet.stop();
    applet.destroy();
  }
  catch (Exception ex) {
    if (JNLPRuntime.isDebug())
      ex.printStackTrace();
  }
  environment.destroy();
  super.destroy();
}

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

applet.destroy();

相关文章