Need help closing a MDIFrame

Help
2012-03-14
2013-04-25
  • The problem i'm having is that i must close a MDIFrame without using the "System.exit()" function, cause the application that uses the MDIFrame is started by another java application, which must keep running after i close the other program.
    Any ideas? Or maybe if it isn't possible, at least tell me that i can't do it.

    Thank you.

     
  • mcarniel
    mcarniel
    2013-04-25

    It depends on you: when un click File->Exit or press X a callback is called:
    MDIController.stopApplication
    What this method contains, depends only on you!
    Therefore, you can use
    window.setVisible(false);
    window.dispose();

    Instead of System.exit(0);

    ...These instructions are well known to a Swing programmer, so please study more Swing toolkit, which is assumed you should already know!!!