How to I programmatically properly exit a NetBeans Platform application when the TopComponent has been declared in an XML file?
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();.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With