Example: Handling Quit

public void handleQuit(ApplicationEvent event) {
    Iterator iterator = WindowList.INSTANCE.iterator();
    while (iterator.hasNext()) {
        Frame next = (Frame) iterator.next();
        next.setVisible(false);
        next.dispose();
    }
    
    RecentFileList.INSTANCE.storeRecentFiles();
    System.exit(0);
}

Previous | Next | Top | Cafe con Leche

Copyright 2005, 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 6, 2006