title: How to use Exit button in Swing Application?
body: <p>I am new in Java  Form Application development using Swing. What is the suitable code for exit button that will exit the application?</p>
  
  <p><strong>For example:</strong>
  In C# (.NET Framework) we use <code>Application.Exit();</code> as the code for exit what button. What is the equivalent code in Java to exit an application?</p>