public void actionPerformed(ActionEvent e) {
        if (e.getSource() == evalButton) {
            evaluateRegex();
        } else if (e.getSource() == nextMatchButton) {
            jumpToNextMatch();
        } else if (e.getSource() == prevMatchButton) {
            jumpToPrevMatch();
        }
    }