@Override
    public void actionPerformed(ActionEvent e) {
        //Handle open button action
        if (e.getSource() == openButton)
        {
            openButtonAction();
        }
        else if ((e.getSource() == pathText))
        {
            if (currentState != State.PROCESSING)
                pathTextEnterPressed();
        }
        else if (e.getSource() == processButton)
        {
            processButtonAction();
        }
        else if (e.getSource() == stopButton)
        {
            stopButtonAction();
        }
        else if (e.getSource() == cutButton)
        {
            cutButtonAction();
        }
    }