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

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

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

Applet.stop介绍

暂无

代码示例

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

public void stop()
{
  if (applet != null)
  {
    active = false;
    applet.stop();
    return;
  }
}

代码示例来源:origin: Spoutcraft/LegacyLauncher

@Override
public void stop() {
  if (minecraftApplet != null) {
    minecraftApplet.stop();
    active = false;
  }
}

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

@Override
public void stop() {
  wrappedApplet.stop();
  active = false;
}

代码示例来源:origin: Mojang/LegacyLauncher

public void run() {
    applet.stop();
  }
});

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

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

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

@Override
public synchronized void stop() {
  invokeCallback(stopProc, new IRubyObject[] {});
  super.stop();
}

代码示例来源:origin: mikera/tyrant

public void stop() {
  super.stop();
  setInstance(null);
  Game.messagepanel = null;
  Game.thread = null;
}

代码示例来源: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: 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.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.stop();
applet.destroy();

相关文章