/**
 * ALaCarteProgram.java
 *
 *
 * Caitlin Ross 
 * 100735219
 */
 
import java.awt.event.*;

public class ALaCarteProgram {
	
	private static RecipeBrowser frame;
	
    public static void main(String[] args) {
        frame = new RecipeBrowser();
        frame.setVisible(true);
        frame.addWindowListener(new WindowListener(){
        	public void windowOpened(WindowEvent e){
        	}
        	public void windowClosed(WindowEvent e){
        		frame.getController().saveOnExit();
        		System.exit(1);
        	}
			public void windowClosing(WindowEvent e){
        		frame.getController().saveOnExit();
        		System.exit(1);
			}
			public void windowActivated(WindowEvent e){
			}
			public void windowDeactivated(WindowEvent e){
			}
			public void windowIconified(WindowEvent e){
			}
			public void windowDeiconified(WindowEvent e){
			}
        });
    }
    
}