public void actionPerformed(ActionEvent e)
    {
        String action = e.getActionCommand();
        
        if(action.equals("Exit"))
            onShutdown();
        else if(action.equals("About"))
            onAbout();
        else if(action.equals("New"))
            onNew();
        else if(action.equals("Go"))
            togglePause();
        else if(action.equals("Pause"))
            togglePause();
        else if(action.equals("Zoom 2X"))
            toggleZoom((Graphics2D)getGraphics());
        else if(action.equals("Options..."))
            onOptions();
        else if(action.equals("OK"))
            setOptions();
        else if(action.equals("Close"))
            closeOptions();
    }