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?):

  1. jtabbedpane
  2. jdesktoppane containing jinternalframe instances
  3. cardlayout
  4. (see linked answer..)

Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -