本文整理了Java中com.jme3.app.Application.stop()
方法的一些代码示例,展示了Application.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Application.stop()
方法的具体详情如下:
包路径:com.jme3.app.Application
类名称:Application
方法名:stop
[英]Requests the context to close, shutting down the main loop and making necessary cleanup operations. Same as calling stop(false)
[中]请求关闭上下文,关闭主循环并执行必要的清理操作。与呼叫停止相同(错误)
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Requests the context to close, shutting down the main loop
* and making necessary cleanup operations.
*
* Same as calling stop(false)
*
* @see #stop(boolean)
*/
public void stop(){
stop(false);
}
代码示例来源:origin: info.projectkyoto/mms-engine
/**
* Internal use only.
*/
public void handleError(String errMsg, Throwable t){
logger.log(Level.SEVERE, errMsg, t);
// user should add additional code to handle the error.
stop(); // stop the application
}
代码示例来源:origin: us.ihmc.thirdparty.jme/jme3-desktop
@Override
public void destroy(){
System.out.println("applet:destroyStart");
SwingUtilities.invokeLater(new Runnable(){
public void run(){
removeAll();
System.out.println("applet:destroyRemoved");
}
});
app.stop(true);
System.out.println("applet:destroyDone");
appToApplet.remove(app);
}
内容来源于网络,如有侵权,请联系作者删除!