如何在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.