Need help closing a MDIFrame

  • Matheus Dal Piba de Lima Mohr

    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:
    What this method contains, depends only on you!
    Therefore, you can use

    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!!!


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks