kmort
kmort

Reputation: 2928

How do I exit a NetBeans Platform GUI application?

How to I programmatically properly exit a NetBeans Platform application when the TopComponent has been declared in an XML file?

Upvotes: 2

Views: 1566

Answers (1)

peterh
peterh

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

Related Questions