swing - Java: System.exit() parameters -
i having simple question, questionable. situation.
in application, can open new windows clicking new button. when click "x" (close) button, first ask whether want save work. if no, use system.exit(0) exit. case is, closes open "new" windows. want close window user selected option "no save". how can this? please help!
it text editor, notepad. uses "new" open new "windows"."
alternatives (all mentioned in or linked answer the use of multiple jframes, good/bad practice?):
jtabbedpanejdesktoppanecontainingjinternalframeinstancescardlayout- (see linked answer..)
Comments
Post a Comment