001    /*
002     * Calculator Main 
003     *
004     * Developed for "Rethinking CS101", a project of Lynn Andrea Stein's.
005     * For more information, see <a href="http://www.cs101.org/">the
006     * CS101 homepage</a> or email <las@olin.edu>.
007     *
008     * Copyright (C) 1996 Massachusetts Institute of Technology.
009     * Please do not redistribute without obtaining permission.
010     */
011    package calculator;
012    
013    /**
014     * This is a basic skeleton application which launches the necessary
015     * code for a four-function calculator.  It relies on a (Runnable)
016     * ButtonHandler to repeatedly call getButton() and consume the
017     * buttonIDs that the CalculatorGUI object produces. <p>
018     *
019     *
020     * @see Calculator
021     * @see CalculatorGUI
022     * @see ButtonHandler
023     * @see cs101.util.semaphore.IntBuffer
024     *
025     */
026    
027    public class Main  {
028    
029        public static void main (String[] argv) {
030        
031            new ButtonHandler( new CalculatorGUI() );
032    
033        }
034    }
035    
036    /* Comments:
037     *
038     * History:
039     *     $Log: Main.java,v $
040     *     Revision 1.2  2004/03/26 21:04:11  gus
041     *     take ownership
042     *
043     *     Revision 1.1  2003/07/10 21:14:43  jon
044     *     Initial commit of spring03 calculator source.
045     *
046     *     Revision 1.1.1.1  2002/06/05 21:56:24  root
047     *     CS101 comes to Olin finally.
048     *
049     *     Revision 1.2  1997/07/16 14:15:22  tparnell
050     *     *** empty log message ***
051     *
052     *     Revision 1.1  1996/10/04 16:20:23  las
053     *     Transformed Calculator into an application and made it a package.  See
054     *     STAFF_SETUP for which files are public.  To run, use Calculator.Main.
055     *
056     *     Specifics:
057     *         Added Main.java, which starts the calculator program (both
058     *     CalculatorGUI and ButtonHandler);
059     *         Made Calculator an interface;
060     *         Moved GUI implementation (previously in Calculator) to
061     *     CalculatorGUI.
062     *         Added clear button, which looks pretty gross right now.  (It can
063     *     be deleted in a single line, though.)
064     *
065     *
066     */
067    
068