简体   繁体   中英

How do I exit a NetBeans Platform GUI application?

如何在XML文件中声明TopComponent时以编程方式正确退出NetBeans平台应用程序?

I'm not sure what you mean by "when the TopComponent has been declared in an XML file" but the answer for how to properly exit a NetBeans Platform application is:

LifecycleManager.getDefault().exit();

What you definitely should not do is the normal Java way: System.exit(); .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM