Reputation: 2928
How to I programmatically properly exit a NetBeans Platform application when the TopComponent has been declared in an XML file?
Upvotes: 2
Views: 1566
Reputation: 19235
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();
.
Upvotes: 9