JSR-296: The Swing Application Framework - Java
JSR-296: The Swing Application Framework - Java
JSR-296: The Swing Application Framework - Java
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
May I Exit? <strong>Application</strong> Exit Listeners●●To quit the app, call exit()<strong>The</strong> exit() method checks exitListeners firstpublic interface ExitListener extends EventListener {boolean canExit(EventObject e);void willExit(EventObject e);}●If they all return true:●●call <strong>Application</strong>.shutdown()System.exit()2007 <strong>Java</strong>One SM Conference | Session TS-3942 | 21